<p>Thank You Jason,</p><p>suggested quick-fix seems to be working although I&#39;m a bit worried about possible wrong package builds when there is no more make result check.<br></p><p>David</p><br><div class="gmail_quote">
On Tue, Dec 30, 2008 at 8:13 AM,  <span dir="ltr">&lt;<a href="mailto:woodwardj@jaos.org">woodwardj@jaos.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
David,<br>
<br>
&gt; first my apologies for posting here but cpan2tgz doesn&#39;t have standalone<br>
&gt; mailing list.<br>
<br>
No problem.<br>
<br>
&gt; Updated cpan2tgz works ok with the new version of CPAN.pm from Perl 5.10.0,<br>
&gt; I have successfully built many packages . Problems begin _after_ installing<br>
&gt; YAML or alternate YAML::Syck modules. Every attempt to create package with<br>
&gt; cpan2tgz fails with &quot;make ERROR [&lt;CPAN module name&gt;]: Inappropriate ioctl<br>
&gt; for device&quot; where &lt;CPAN module name&gt; is the name of currently built module.<br>
&gt; It even fails at modules successfully built before. After uninstalling YAML<br>
&gt; modules, cpan2tgz starts working again as expected.<br>
&gt;<br>
&gt; Any idea how to fix this problem ?<br>
<br>
Seems one of the YAML subhandlers in the CPAN module isn&#39;t returning nicely. &nbsp;The check is<br>
probably overly paranoid... you should be able patch cpan2tgz using the following to get it to<br>
work. &nbsp;Let me know if you start seeing nasty module errors being ignored after this.<br>
<br>
Index: cpan2tgz<br>
===================================================================<br>
--- cpan2tgz &nbsp; &nbsp;(revision 67)<br>
+++ cpan2tgz &nbsp; &nbsp;(working copy)<br>
@@ -148,11 +148,7 @@<br>
 &nbsp; }<br>
<br>
 &nbsp; # do an initial make so that we can get the dep info<br>
- &nbsp;eval { $pack-&gt;make() or die $!; };<br>
- &nbsp;if ( $@ ) {<br>
- &nbsp; &nbsp;print &quot;make ERROR [$module_name]: $!\n&quot;;<br>
- &nbsp; &nbsp;exit(1);<br>
- &nbsp;}<br>
+ &nbsp;$pack-&gt;make();<br>
<br>
 &nbsp; my @deps;<br>
 &nbsp; if ($ignore_installed_deps &amp;&amp; $pack-&gt;prereq_pm()) {<br>
<br>
<br>
<br>
Take care,<br>
jason<br>
<font color="#888888">--<br>
Jason Woodward<br>
<a href="mailto:woodwardj@jaos.org">woodwardj@jaos.org</a><br>
<br>
</font></blockquote></div><br>