Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 253800

Summary: Portage does not document new FETCHCOMMAND to support SRC_URI arrows
Product: Portage Development Reporter: Robert Buchholz (RETIRED) <rbu>
Component: DocumentationAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 254662    

Description Robert Buchholz (RETIRED) gentoo-dev 2009-01-05 04:28:08 UTC
Portage 2.1.6.4's make.conf.example documents an insufficient FETCHCOMMAND which breaks when SRC_URI arrows are used.

From /usr/share/portage/config/make.conf.example:

# Fetching files
# ==============
...
# Default fetch command (5 tries, passive ftp for firewall compatibility)
#FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp \${URI} -P \${DISTDIR}"
#RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp \${URI} -P \${DISTDIR}"

Consider the following ebuild:

$ cat iw-0.1.ebuild
...
EAPI=2
...
SRC_URI="http://dl.aircrack-ng.org/${PN}.tar.bz2 -> ${P}.tar.bz2"

This will lead to this behaviour (because the file is stored as iw.tar.bz2):
>>> Downloading 'http://distfiles.gentoo.org/distfiles/iw-0.1.tar.bz2'
--2009-01-05 05:16:56--  http://distfiles.gentoo.org/distfiles/iw-0.1.tar.bz2
Resolving distfiles.gentoo.org... 64.50.236.52, 64.50.238.52, 216.165.129.135, ...
Connecting to distfiles.gentoo.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2009-01-05 05:16:57 ERROR 404: Not Found.

No digest file available and download failed.

>>> Downloading 'http://dl.aircrack-ng.org/iw.tar.bz2'
--2009-01-05 05:16:57--  http://dl.aircrack-ng.org/iw.tar.bz2
Resolving dl.aircrack-ng.org... 213.186.33.2
Connecting to dl.aircrack-ng.org|213.186.33.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10150 (9.9K) [application/x-bzip2]
Saving to: `/usr/portage/distfiles/iw.tar.bz2'

100%[==================================================================================================================================>] 10,150      46.6K/s   in 0.2s

2009-01-05 05:16:57 (46.6 KB/s) - `/usr/portage/distfiles/iw.tar.bz2' saved [10150/10150]

>>> Creating Manifest for /home/rbu/devel/gentoo/gentoo-x86/net-wireless/iw
!!! File /usr/portage/distfiles/iw-0.1.tar.bz2 doesn't exist, can't update Manifest
Comment 1 Zac Medico gentoo-dev 2009-01-08 22:06:38 UTC
Thanks, this is fixed in svn r12398.
Comment 2 Zac Medico gentoo-dev 2009-01-12 20:16:38 UTC
This is fixed in 2.1.6.5 and 2.2_rc21.