Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168620 - dev-lang/perl-5.8.8-r2 reorder-inc-patch does not work
Summary: dev-lang/perl-5.8.8-r2 reorder-inc-patch does not work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-27 19:35 UTC by Michael Fuchs
Modified: 2007-03-03 09:42 UTC (History)
0 users

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 Michael Fuchs 2007-02-27 19:35:49 UTC
After emerging Perl 5.8.8-r2 @inc is still:

    /etc/perl
    /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux
    /usr/lib64/perl5/vendor_perl/5.8.8
    /usr/lib64/perl5/vendor_perl
    /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux
    /usr/lib64/perl5/site_perl/5.8.8
    /usr/lib64/perl5/site_perl
    /usr/lib64/perl5/5.8.8/x86_64-linux
    /usr/lib64/perl5/5.8.8
    /usr/local/lib/site_perl

If I interpreted the ebuild correctly, it should be site->vendor->core, after applying the reorder-INC.patch, which it does:

>>> Unpacking source...
>>> Unpacking perl-5.8.8.tar.bz2 to /var/tmp/portage/dev-lang/perl-5.8.8-r2/work
 ^[[32;01m*^[[0m Applying perl-prelink-lpthread.patch ...
 ^[[32;01m*^[[0m Applying perl-perldoc-emptydirs.patch ...
 ^[[32;01m*^[[0m Applying perl-5.8.8-reorder-INC.patch ...
 ^[[32;01m*^[[0m Applying perl-picdl.patch ...
 ^[[32;01m*^[[0m Applying perl-noksh.patch ...
 ^[[32;01m*^[[0m Applying perl-5.8.7-MakeMaker-RUNPATH.patch ...
 ^[[32;01m*^[[0m Applying perl-regexp-nossp.patch ...
 ^[[32;01m*^[[0m Applying perl-hppa-pa7200-configure.patch ...
 ^[[32;01m*^[[0m Applying perl-5.8.8-lib64.patch ...
 ^[[32;01m*^[[0m Applying perl-5.8.8-USE_MM_LD_RUN_PATH.patch ...
 ^[[32;01m*^[[0m Applying perl-5.8.8-links.patch ...
 ^[[32;01m*^[[0m Applying perl-5.8.8-cplusplus.patch ...




Reproducible: Always

Steps to Reproduce:
1. emerge perl
2. perl -V
3.
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2007-03-03 03:01:37 UTC
You are misunderstanding, actually. The desired order in gentoo is vendor->site->core, the idea being you can install via cpan (which defaults to site) and override core, but anything you install via portage trumps the lot.
Comment 2 Michael Fuchs 2007-03-03 09:24:16 UTC
(In reply to comment #1)
> You are misunderstanding, actually. The desired order in gentoo is
> vendor->site->core, the idea being you can install via cpan (which defaults to
> site) and override core, but anything you install via portage trumps the lot.
> 

Ok. But why does it say in the ebuild:

       # this lays the groundwork for solving the issue of what happens
        # when people (or ebuilds) install different versiosn of modules
        # that are in the core, by rearranging the @INC directory to look
        # site -> vendor -> core.
        cd ${S}; epatch ${FILESDIR}/${P}-reorder-INC.patch
...

Mike
Comment 3 Michael Fuchs 2007-03-03 09:42:52 UTC
...which btw I think would be the better way: site->vendor->core, because it would let me decide wether I want to use cpan or not. cpan often has the newer packages.

Ok, up to now I just rename vendor_perl, and just have i.e. razor residing in the original vendor path, but the normal update system/world would again break this arrangement.

I like perl, because it lets you do things in different ways, and I think gentoo should be the same.

Or at least it should give me a handy way to change @INC...

Mike