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.
Created attachment 117777 [details] g-cpan output heres the complete output
for me too this bug appear
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).
(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?
Created attachment 137624 [details, diff] patch to g-cpan and ebuild Thank you niko for taking the time to fix this.
Created attachment 138933 [details, diff] Do not try to unpack an archive more than once in a single run
*** Bug 205562 has been marked as a duplicate of this bug. ***
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.
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
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.
*** Bug 280550 has been marked as a duplicate of this bug. ***
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.