Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107028 - emerge for mail-filter/dcc-1.3.16.ebuild fails on primary download site
Summary: emerge for mail-filter/dcc-1.3.16.ebuild fails on primary download site
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 12:08 UTC by simishag
Modified: 2005-12-11 19:39 UTC (History)
1 user (show)

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 simishag 2005-09-23 12:08:00 UTC
emerge fails if the file is downloaded from the primary download site
(rhyolite.com).  I noticed this only due to my distfiles mirror failing. 
Additional tests indicate that the ebuild works fine if the file is downloaded.

The primary dist site redirects (301) the request for 1.3.16 to the 1.3.17
source.  This changes the downloaded filename, and the ebuild fails when it
can't find the file it thought it downloaded in /usr/portage/distfiles.  

The correct behavior would be for rhyolite.com to redirect this to the old file,
which is on their site in old/, and not redir to the new one, but that is
outside our scope.  A version bump would be the best way to solve this
particular issue.

Reproducible: Always
Steps to Reproduce:
Remove GENTOO_MIRRORS from make.conf.  emerge will attempt to fetch from primary
site, which will fail.



Expected Results:  
This isn't really the fault of emerge, but perhaps emerge should complain loudly
if it encounters redirects that change the file name when downloading source,
especially on the primary site.  Maybe wget should not follow redirs when
looking for a particular version?

output of "emerge dcc":

>>> Downloading http://www.rhyolite.com/anti-spam/dcc/source/dcc-dccd-1.3.16.tar.Z
--12:00:58--  http://www.rhyolite.com/anti-spam/dcc/source/dcc-dccd-1.3.16.tar.Z
           => `/usr/portage/distfiles/dcc-dccd-1.3.16.tar.Z'
Resolving www.rhyolite.com... 192.188.61.3
Connecting to www.rhyolite.com[192.188.61.3]:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.rhyolite.com/anti-spam/dcc/source/dcc-dccd-1.3.17.tar.Z
[following]
--12:00:58--  http://www.rhyolite.com/anti-spam/dcc/source/dcc-dccd-1.3.17.tar.Z
           => `/usr/portage/distfiles/dcc-dccd-1.3.17.tar.Z'
Connecting to www.rhyolite.com[192.188.61.3]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,362,185 [application/x-tar]

100%[==========================================================================================================>]
1,362,185    105.59K/s    ETA 00:00

12:01:12 (99.06 KB/s) - `/usr/portage/distfiles/dcc-dccd-1.3.17.tar.Z' saved
[1362185/1362185]

!!! Couldn't download dcc-dccd-1.3.16.tar.Z. Aborting.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-12-11 19:39:26 UTC
fixed in cvs.