Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454450 - perl ebuilds could warn if they fail AND PERL5LIB is set
Summary: perl ebuilds could warn if they fail AND PERL5LIB is set
Status: RESOLVED DUPLICATE of bug 543042
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: perl-eclass
  Show dependency tree
 
Reported: 2013-01-28 17:46 UTC by Raphaël Droz
Modified: 2015-03-21 22:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Droz 2013-01-28 17:46:17 UTC
I just found the reason I had so many trouble re-emerging perl-core ebuilds today after having recompiled perl +ithreads.

* unpriv user has PERL5LIB set to ~/.perl/modules/lib/perl5
* when using su, the variable is still set
* when running emerge, the variable is still set
* if you happen to have bad/outdated/...  perl modules, emerge may fail in many ways.
In such cases, that would help if perl-related ebuilds could warn about this.
Another option is to simply unset PERL5LIB before ebuild actually runs.

(In my case, I had an outdated version of JSON::PP in ~, so the "Writing Makefile" step warned, or even failed (eg: MP3-Info) and many other strange dependency issues)


Reproducible: Sometimes

Steps to Reproduce:
1. setup PERL5LIB
2. download an outdated version of JSON::PP using CPAN, in $PERL5LIB
3. emerge MP3-Info
Actual Results:  
Writing Makefile for MP3::Info
JSON::PP 2.27103 is not available
 at /usr/lib64/perl5/vendor_perl/5.12.4/CPAN/Meta/Converter.pm line 22
 at /usr/lib64/perl5/vendor_perl/5.12.4/ExtUtils/MM_Any.pm line 1278
 * ERROR: dev-perl/MP3-Info-1.240.0 failed (configure phase):

Expected Results:  
emerge should ignore $PERL5LIB and succeed, or at least warn about this variable being set.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2014-12-03 23:34:09 UTC
Reasonable idea, since this is a fair way of shooting yourself in the foot.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2015-03-21 22:48:55 UTC

*** This bug has been marked as a duplicate of bug 543042 ***