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