Skip Menu |

This queue is for tickets about the XML-SAX CPAN distribution.

Report information
The Basics
Id: 62289
Status: resolved
Priority: 0/
Queue: XML-SAX

People
Owner: grantm [...] cpan.org
Requestors: xenoterracide [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: Justin Davis <jrcd83 [...] gmail.com>
Subject: XML::Sax appears to be wanting XML::Sax installed before it's installed
Date: Tue, 19 Oct 2010 20:14:12 -0500
To: bugs-xml-sax [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
Result: PASS Can't locate XML/SAX.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/site_perl/5.10.1 /usr/share/perl5/site_perl/5.10.1 /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .). BEGIN failed--compilation aborted. make: *** [install_sax_pureperl] Error 2 make: *** Waiting for unfinished jobs.... make[1]: Entering directory `/home/xenoterracide/.cpanplus/5.12.1/pacman/build/perl-xml-sax-0.96/src/XML-SAX-0.96/XML-SAX-Base' make[1]: Leaving directory `/home/xenoterracide/.cpanplus/5.12.1/pacman/build/perl-xml-sax-0.96/src/XML-SAX-0.96/XML-SAX-Base' Aborting... [ERROR] makepkg returned abnormal status: 2 [ERROR] Unable to create a new distribution object for 'XML::SAX' -- cannot continue -- Caleb Cushing http://xenoterracide.com
From: dmaestro
This happened to me, too, today. It happens when using CPAN config variable 'make_install_arg' set to '-j3' on my dual-core system. Unsetting this using 'o conf make_install_arg ""' is a good work-around. On Tue Oct 19 21:14:21 2010, XENO wrote: Show quoted text
> Result: PASS > Can't locate XML/SAX.pm in @INC (@INC contains: > /usr/lib/perl5/site_perl /usr/share/perl5/site_perl > /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl > /usr/lib/perl5/core_perl /usr/share/perl5/core_perl > /usr/lib/perl5/site_perl/5.10.1 /usr/share/perl5/site_perl/5.10.1 > /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .). > BEGIN failed--compilation aborted. > make: *** [install_sax_pureperl] Error 2 > make: *** Waiting for unfinished jobs.... > make[1]: Entering directory > `/home/xenoterracide/.cpanplus/5.12.1/pacman/build/perl-xml-sax- > 0.96/src/XML-SAX-0.96/XML-SAX-Base' > make[1]: Leaving directory > `/home/xenoterracide/.cpanplus/5.12.1/pacman/build/perl-xml-sax- > 0.96/src/XML-SAX-0.96/XML-SAX-Base' > Aborting... > [ERROR] makepkg returned abnormal status: 2 > > [ERROR] Unable to create a new distribution object for 'XML::SAX' -- > cannot continue
RT-Send-CC: bugs-xml-sax [...] rt.cpan.org
I get the install error, via cpanm, when I have my bash env var MAKEFLAGS=-j5. "unset MAKEFLAGS" fixes the problem. On Fri Nov 29 12:28:09 2013, http://dmaestro12.myopenid.com/ wrote: Show quoted text
> This happened to me, too, today. It happens when using CPAN config > variable 'make_install_arg' set to '-j3' on my dual-core system. > Unsetting this using 'o conf make_install_arg ""' is a good work- > around. > > On Tue Oct 19 21:14:21 2010, XENO wrote:
> > Result: PASS > > Can't locate XML/SAX.pm in @INC (@INC contains: > > /usr/lib/perl5/site_perl /usr/share/perl5/site_perl > > /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl > > /usr/lib/perl5/core_perl /usr/share/perl5/core_perl > > /usr/lib/perl5/site_perl/5.10.1 /usr/share/perl5/site_perl/5.10.1 > > /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .). > > BEGIN failed--compilation aborted. > > make: *** [install_sax_pureperl] Error 2 > > make: *** Waiting for unfinished jobs.... > > make[1]: Entering directory > > `/home/xenoterracide/.cpanplus/5.12.1/pacman/build/perl-xml-sax- > > 0.96/src/XML-SAX-0.96/XML-SAX-Base' > > make[1]: Leaving directory > > `/home/xenoterracide/.cpanplus/5.12.1/pacman/build/perl-xml-sax- > > 0.96/src/XML-SAX-0.96/XML-SAX-Base' > > Aborting... > > [ERROR] makepkg returned abnormal status: 2 > > > > [ERROR] Unable to create a new distribution object for 'XML::SAX' -- > > cannot continue
The correct fix is, in the Makefile.PL, to change this: install_sax_pureperl : to: install_sax_pureperl : pure_install This is because the problem is an incorrectly expressed dependency chain, so the "pure perl" target tries to be fulfilled before all the things it needs have happened.
Have applied Ed's change and released as 1.00