Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 137458

Summary: www-apache/mod_perl-2.0.1-r2 cannot load perl modules due to an incorrect @INC
Product: Gentoo Linux Reporter: falcon
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jakub
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: A patch which updates the @INC in the aforementioned perl script
The signature to the patch I proposed.

Description falcon 2006-06-20 22:53:42 UTC
Apache with mod_perl 2.0.1-r2 is prevented from loading after perl-cleaner is run, because the required ModPerl/Util.pm has moved, or something has changed the apache2-mod_perl-startup.pl @INC variable to exclude its search path.  Therefore, I have added an include statement for it, and am posting a patch.
Comment 1 falcon 2006-06-20 22:55:07 UTC
Created attachment 89685 [details, diff]
A patch which updates the @INC in the aforementioned perl script

A GPG signature is attached.
Comment 2 falcon 2006-06-20 22:55:47 UTC
Created attachment 89686 [details]
The signature to the patch I proposed.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-21 01:07:56 UTC
Well no, this fix is wrong, you cannot hardcode versions there, and you cannot hardcode threaded/non-threaded there... Wouldn't work on my system, e.g. 

Also, mod_perl works just fine here, I' say your problem is somewhere else.
Comment 4 Christian Hartmann (RETIRED) gentoo-dev 2006-06-21 03:35:26 UTC
Tried reemerging mod_perl?
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2006-06-21 15:31:56 UTC
If you upgrade perl, you have to rebuild mod_perl. It links and builds based on the system libperl, so if that changes you need to reinstall. FWIW, you also must rebuild if you change from using ithreads to not (or vice versa).
Comment 6 falcon 2006-06-21 16:15:01 UTC
After remerging mod_perl, everything works again.