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
Not portage.
Created attachment 91553 [details, diff] bug140084.patch Patch to fix that issue :)
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).