Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131600 - g-cpan fails to read /etc/make.conf correctly
Summary: g-cpan fails to read /etc/make.conf correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-28 13:01 UTC by Ed Catmur
Modified: 2006-06-13 15:18 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 Ed Catmur 2006-04-28 13:01:39 UTC
# g-cpan -i Audio::MP4
 * g-cpan: You don't have permission to work in any of the portage overlays.
 * g-cpan: Please run g-cpan as a user with sufficient permissions.

# emerge --info | grep OVERLAY
PORTDIR_OVERLAY="/srv/gentoo/trees/bmg-main /srv/gentoo/trees/dangtopia /srv/gentoo/trees/gnome-experimental /srv/gentoo/trees/lila-artwork /srv/gentoo/trees/gentopia /srv/gentoo/trees/kernel-sources /srv/gentoo/trees/auto-unmask /srv/gentoo/trees/catmur.co.uk"

# ls -dl /srv/gentoo/trees/catmur.co.uk
drwxr-xr-x 50 root root 4096 2006-04-25 17:38 /srv/gentoo/trees/catmur.co.uk/

# whoami
root
Comment 1 Ed Catmur 2006-04-28 13:19:47 UTC
Worked it out - g-cpan fails to parse /etc/make.conf properly if PORTDIR_OVERLAY is over multiple lines. Putting the g-cpan overlay on the first line works, or use this patch:

--- ./g-cpan    2006/04/28 20:04:30     1.1
+++ ./g-cpan    2006/04/28 20:14:04
@@ -674,6 +674,11 @@ sub get_globals {
         next if ( substr( $line, 0, 1 ) eq '#' );
         chomp $line;

+        while ( substr ($line, -1, 1) eq '\\' ) {
+            chop $line;
+            $line .= <CONF>;
+            chomp $line;
+        }
         $line =~ tr/"'//d;    # Remove quotes to be safe

         # Now replacing defaults, if other values are set
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2006-06-13 14:50:19 UTC
this should be completely fixed in 0.14 (because we rewrote the whole thing). can you still confirm?
Comment 3 Ed Catmur 2006-06-13 15:18:51 UTC
Is fixed in 0.14.0_rc2, yes.