Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176627 - g-cpan ignores PORTDIR_OVERLAY order
Summary: g-cpan ignores PORTDIR_OVERLAY order
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 205562 280550 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-30 21:43 UTC by Weedy
Modified: 2010-02-15 07:33 UTC (History)
10 users (show)

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


Attachments
g-cpan output (g-cpan,7.25 KB, text/plain)
2007-04-30 21:45 UTC, Weedy
Details
patch to g-cpan and ebuild (blah,1.68 KB, patch)
2007-12-03 16:10 UTC, Weedy
Details | Diff
Do not try to unpack an archive more than once in a single run (unpack-only-once.patch,1.04 KB, patch)
2007-12-19 23:56 UTC, Nicolas Litchinko
Details | Diff
Once created, g-cpan uses the first found overlay that has a perl-gcpan folder (use-first-found-overlay.patch,907 bytes, patch)
2009-12-10 12:23 UTC, Sven Eden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Weedy 2007-04-30 21:43:54 UTC
according to the man page g-cpan uses the first overlay in PORTDIR_OVERLAY but it's continually putting its junk in the 2nd or 3rd (2nd mostly)

PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/toolchain_overlay /usr/local/overlays/berkano /usr/local/overlays/chewi-overlay /usr/local/overlays/java-overlay /usr/local/overlays/java-experimental /usr/local/overlays/enlightenment /usr/portage/local/layman/haskell /usr/portage/local/layman/toolchain"


Reproducible: Always

Steps to Reproduce:
1.g-cpan -avuL
2.????????
3.failure!

Actual Results:  
see attachment

Expected Results:  
use /usr/local/portage

Insufficient permissions! at /usr/lib/perl5/vendor_perl/5.8.8/Gentoo/CPAN.pm line 172. <-- this could be another bug.
Comment 1 Weedy 2007-04-30 21:45:00 UTC
Created attachment 117777 [details]
g-cpan output

heres the complete output
Comment 2 Sergiy Borodych 2007-05-01 09:45:11 UTC
for me too this bug appear
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2007-05-31 11:18:52 UTC
Acknowledged bug. I'm actively working on the next release of g-cpan, this is 
added as a test case (basically, the quirk arises because we check for a 
working overlay repeatedly and the results can get mixed - new version will 
check once, pick a working overlay, and use it from there on out).
Comment 4 Weedy 2007-10-28 16:45:07 UTC
(In reply to comment #3)
> Acknowledged bug. I'm actively working on the next release of g-cpan, this is 
> added as a test case (basically, the quirk arises because we check for a 
> working overlay repeatedly and the results can get mixed - new version will 
> check once, pick a working overlay, and use it from there on out).
> 

sooo hows that comming?
Comment 5 Weedy 2007-12-03 16:10:42 UTC
Created attachment 137624 [details, diff]
patch to g-cpan and ebuild

Thank you niko for taking the time to fix this.
Comment 6 Nicolas Litchinko 2007-12-19 23:56:49 UTC
Created attachment 138933 [details, diff]
Do not try to unpack an archive more than once in a single run
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-02-27 19:52:52 UTC
*** Bug 205562 has been marked as a duplicate of this bug. ***
Comment 8 Juergen Rose 2008-12-13 14:21:49 UTC
What about the new release? I also have here this:

Insufficient permissions! at /usr/lib/perl5/vendor_perl/5.8.8/Gentoo/CPAN.pm

problem and g-cpan is writing in all my overlay directories.
Comment 9 Joe Stroller 2009-02-12 08:29:54 UTC
Here my layman overlay(s) are organised a little differently from the OP:

  $ grep local /etc/make.conf
  PORTDIR_OVERLAY=/usr/local/portage
  source /usr/portage/local/layman/make.conf
  $ 

should they be?

Anyway, the workaround that works for me is to comment out the "source" line whilst using g-cpan
Comment 10 Sven Eden 2009-12-10 12:23:28 UTC
Created attachment 212614 [details, diff]
Once created, g-cpan uses the first found overlay that has a perl-gcpan folder

This little patch makes g-cpan look through all overlays where a subfolder "perl-gcpan" can be found and uses that overlay in the future. So once your preferred overlay is prepared (either by initial run with commenting out all other overlays (and layman "source" line) in make.conf or by a simple mkdir) the other folders will remain untouched.
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-02-15 07:12:15 UTC
*** Bug 280550 has been marked as a duplicate of this bug. ***
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-02-15 07:33:58 UTC
GCPAN_OVERLAY variable now implemented for explicit override, rather than detection. This is because other overlay authors might have perl-gcpan categories of their own, that you don't want to place files into.