Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275442 - New FETCHCOMMAND and RESUMECOMMAND variables cause emerges to break
Summary: New FETCHCOMMAND and RESUMECOMMAND variables cause emerges to break
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-06-25 23:31 UTC by Linear Systems Tech Svcs.
Modified: 2009-07-02 08:22 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 Linear Systems Tech Svcs. 2009-06-25 23:31:38 UTC
While upgrading a system, I saw the following in the upgrade of portage:

 * Messages for package sys-apps/portage-2.1.6.13:

 * 
 * In portage-2.1.6, the default behavior has changed for `emerge world`
 * and `emerge system` commands. These commands will reinstall all
 * packages from the given set unless an option such as --noreplace,
 * --update, or --newuse is specified.
 * 
 * File collision protection is now enabled by default via make.globals
 * with FEATURES=protect-owned. If you want to disable collision
 * protection completely (not recommended), then you need to ensure
 * that neither protect-owned nor collision-protect are enabled.
 * 
 * If you have overridden FETCHCOMMAND or RESUMECOMMAND variables, for
 * compatibility with EAPI 2, you must ensure that these variables
 * are written such that the downloaded file will be placed at
 * \"\${DISTDIR}/\${FILE}\". Refer to make.conf(5) for information
 * about FETCHCOMMAND and RESUMECOMMAND.

Well, adding the "/\${FILE}\" to the end of the FETCHCOMMAND and RESUMECOMMAND as recommended in the output at the end of the portage emerge and the 'man 5 make.conf' breaks the pulling of the packages as it adds a directory of the same name as the package in the ${DISTDIR}.

Example: 
--15:25:38--  ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/distfiles/e2fsprogs-libs-1.41.3.tar.gz
  (try: 2) => `/usr/portage/distfiles/e2fsprogs-libs-1.41.3.tar.gz/e2fsprogs-libs-1.41.3.tar.gz'
==> CWD not required.
==> SIZE e2fsprogs-libs-1.41.3.tar.gz ... done.
==> PASV ... done.    ==> REST 24,479 ... done.    
==> RETR e2fsprogs-libs-1.41.3.tar.gz ... done.
Length: 489,551 [465,072 to go]

100%[+===================================>] 489,551       97.23K/s    ETA 00:00

15:25:43 (97.08 KB/s) - `/usr/portage/distfiles/e2fsprogs-libs-1.41.3.tar.gz/e2fsprogs-libs-1.41.3.tar.gz' saved [489,551]

!!! The command specified in the FETCHCOMMAND variable appears to have
!!! created a directory instead of a normal file.
!!! Refer to the make.conf(5) man page for information about how to
!!! correctly specify FETCHCOMMAND and RESUMECOMMAND.
 * Fetch failed for 'sys-libs/e2fsprogs-libs-1.41.3-r1', Log file:
 *  '/var/tmp/portage/sys-libs/e2fsprogs-libs-1.41.3-r1/temp/build.log'

>>> Failed to emerge sys-libs/e2fsprogs-libs-1.41.3-r1, Log file:

>>>  '/var/tmp/portage/sys-libs/e2fsprogs-libs-1.41.3-r1/temp/build.log'

 * Messages for package sys-libs/e2fsprogs-libs-1.41.3-r1:

 * Fetch failed for 'sys-libs/e2fsprogs-libs-1.41.3-r1', Log file:
 *  '/var/tmp/portage/sys-libs/e2fsprogs-libs-1.41.3-r1/temp/build.log'

Using the examples from http://www.gentoo-wiki.info/Make.conf.example still work as expected.

Reproducible: Always
Comment 1 Linear Systems Tech Svcs. 2009-06-25 23:57:23 UTC
Adding the system 'emerge --info':

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-3.4.3, glibc-2.5-r4, 2.6.25-gentoo-r7-LinearOS-20080930.01 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-LinearOS-20080930.01-x86_64-Intel-R-_Xeon-R-_CPU_5110_@_1.60GHz-with-glibc2.2.5
Timestamp of tree: Thu, 25 Jun 2009 21:30:02 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.1.7
dev-lang/python:     2.3.6-r2, 2.4.4-r5, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -mmmx -msse -msse2 -m3dnow -ffast-math -mfpmath=sse,387"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe -mmmx -msse -msse2 -m3dnow -ffast-math -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu /pub/mirrors/linux/gentoo/ http://mirror.espri.arizona.edu/gentoo/ ftp://distro. ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/ distributions/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 apm audiofile avi berkdb browserplugin bzip2 cdr cli cracklib crypt cups divx4linux dri dvd dvdr exif flash fortran gdbm gif gpm gtk gtk2 iconv imagemagick ipv6 isdnlog java jpeg junit midi ming mmx mozcalendar mozilla mozsvg mozxmlterm mudflap multilib mysql mysqli ncurses nls nptl nptlonly openmp pam pcre perl png pppd python quicktime readline reflection samba sensord session sockets speex spl sse sse2 ssl svg sysfs tcpd theora tiff unicode usb videos wmf xinerama xorg xprint zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Linear Systems Tech Svcs. 2009-06-26 00:01:00 UTC
New note:

When trying to emerge java-config-2, it complained about not having the ${FILE} variable, then when putting that back in to see if I could get through an upgrade of gnome, I get the same error of:

!!! The command specified in the FETCHCOMMAND variable appears to have
!!! created a directory instead of a normal file.

Comment 3 Zac Medico gentoo-dev 2009-06-26 02:47:46 UTC
With wget, you have to use the -O option. See /usr/share/portage/config/make.conf.example for a correct example. I guess the message should refer to that.
Comment 4 Zac Medico gentoo-dev 2009-07-02 08:22:56 UTC
This is fixed now in the portage-2.1.6.13 ebuild in cvs. Thanks for reporting.