Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140084 - g-cpan doesn't expand shell variables in make.conf
Summary: g-cpan doesn't expand shell variables in make.conf
Status: RESOLVED FIXED
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: 2006-07-12 00:30 UTC by Moshe Kamensky
Modified: 2006-07-12 08:56 UTC (History)
0 users

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


Attachments
bug140084.patch (bug140084.patch,952 bytes, patch)
2006-07-12 03:06 UTC, Christian Hartmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Moshe Kamensky 2006-07-12 00:30:49 UTC
When I try to use g-cpan to install a module, I get

 * g-cpan: No write access to DISTDIR: No such file or directory
 * g-cpan: Cleaning temporary overlay

The problem appears to be that when the script reads make.conf it does not 
perform the substitution a shell would do, so the value for DISTDIR is
'${PORTDIR}/distfiles'.

g-cpan version is 0.14.0_rc3.

emerge --info:

Gentoo Base System version 1.12.1
Portage 2.1.1_pre2-r7 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo i686)
=================================================================
                       System Settings
=================================================================
System uname: 2.6.17-gentoo i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -Os -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=prescott -Os -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.intergenia.de http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="he_IL.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="he en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/break-my-gentoo-main/bmg-main"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm asf avi berkdb bidi bitmap-fonts bzip2 cairo cdb cddb cli crypt css dbus dga directfb djvu dlloader dri dv dvd dvdr dvdread dvi eds emboss encode esd exif fam fbcon fftw firefox foomaticdb fortran gdbm gif glade glep gpm gs gstreamer gtk gtk2 hal idn ieee1394 imagemagick imlib isdnlog ithreads jpeg latex libg++ libwww lirc lm_sensors logrotate mad maildir mailwrapper mikmod mmx mmxext mozilla mp3 mpeg ncurses nethack nls nptl nptlonly nsplugin nvidia offensive ogg opengl oss pam pcmcia pcre pdf pdflib perl pmu png postscript pppd python quicktime readline reflection rtc sdl session smp spell spl sse sse2 ssl svg svga sysfs t1lib tcltk tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode urandom usb v4l v4l2 vcd vim vorbis win32codecs x264 xml xml2 xmms xorg xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_he linguas_en_GB lirc_devices_audio_alsa userland_GNU video_cards_fbdev video_cards_nv video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-12 00:31:48 UTC
Not portage.
Comment 2 Christian Hartmann (RETIRED) gentoo-dev 2006-07-12 03:06:02 UTC
Created attachment 91553 [details, diff]
bug140084.patch

Patch to fix that issue :)
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2006-07-12 08:56:17 UTC
committed to svn, thanks! I hope to have this available for download in the next week (I think we may be at a point where there are no more rc's).