Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80466 - patch RT-3.2.1 to modify @INC
Summary: patch RT-3.2.1 to modify @INC
Status: RESOLVED DUPLICATE of bug 69671
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 07:27 UTC by Eric Brown
Modified: 2005-07-17 13:06 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 Eric Brown 2005-02-02 07:27:39 UTC
mod_perl seems to have a wacky @INC order.  Nicholas Vinen recommended the following solution in getting RT to work properly in this environment.  Not only does his patch avoid the problem, but it is a better workaround than the recommended way of deleting the default QuotedPrint.pm that comes with perl (as recommended in the gentoo install guide on wiki.bestpractical.com).

I think we should submit a patch to RT in gentoo and keep it until the mod_perl @INC bug is fixed (it has been around for a while,  and it doesn't look like it's about to be resolved).

Anyway, here's what he posted in another bug (i tried it and it works):



------- Additional Comment #5 From Nicholas Vinen  2005-02-01 12:30 PST -------

I have a highly customised installation but here is what I do (it's a bit hacky).

Edit RT's "webmux.pl" in the bin directory. (/usr/bin/webmux.pl)
Inside the topmost BEGIN { block, add something like the following:

    @INC = ('/usr/lib/perl5/site_perl/5.8.5/i686-linux',
            '/usr/lib/perl5/site_perl/5.8.5',
            '/usr/lib/perl5/site_perl/5.8.2/i686-linux',
            '/usr/lib/perl5/site_perl/5.8.2',
            '/usr/lib/perl5/site_perl',
            '/usr/lib/perl5/vendor_perl/5.8.5/i686-linux',
            '/usr/lib/perl5/vendor_perl/5.8.5',
            '/usr/lib/perl5/vendor_perl/5.8.2/i686-linux',
            '/usr/lib/perl5/vendor_perl/5.8.2',
            '/usr/lib/perl5/vendor_perl',
            '/usr/lib/perl5/5.8.5/i686-linux',
            '/usr/lib/perl5/5.8.5',
            '/usr/local/lib/site_perl',
            '/usr/lib/perl5/site_perl/5.8.2/i686-linux',
            '/usr/lib/perl5/site_perl/5.8.2',
            '.',
            '/etc/apache/',
            '/etc/apache/lib/perl');

of course 5.8.5, 5.8.2 etc. depend upon your perl version. The easiest way to generate the correct list is to run a small perl script on the shell. something like:

perl -e 'print join("\n",@INC)'

And then stick the apache paths on the end. This overrides the built in path and allows it to work. Hope that helps as a work-around for now.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-02 08:12:39 UTC
did you run the perl-cleaner after updating perl?
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2005-02-06 05:29:14 UTC
perl-cleaner isn't relevant here. Looking for the other bug to mark this a dup of...
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2005-02-06 05:29:56 UTC
*** This bug has been marked as a duplicate of 69671 ***