Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499958 - "ebuild ... fetch" should not fallback to ftp if that is not wanted
Summary: "ebuild ... fetch" should not fallback to ftp if that is not wanted
Status: RESOLVED UPSTREAM
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-01 10:17 UTC by Toralf Förster
Modified: 2014-02-01 18:34 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 Toralf Förster gentoo-dev 2014-02-01 10:17:09 UTC
I just have http:// in my make.conf and a restrict firewall policy -w orked well since today, while >I tried to fetch the new bind package :



tfoerste@n22 /usr/portage/net-dns/bind-tools $ ebuild bind-tools-9.9.5.ebuild fetch
>>> Downloading 'http://mirror.netcologne.de/gentoo/distfiles/bind-9.9.5.tar.gz'
--2014-02-01 11:15:35--  http://mirror.netcologne.de/gentoo/distfiles/bind-9.9.5.tar.gz
Resolving mirror.netcologne.de... 194.8.197.22, 2001:4dd0:1234:1::deb
Connecting to mirror.netcologne.de|194.8.197.22|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-02-01 11:15:36 ERROR 404: Not Found.

>>> Downloading 'http://mirror.opteamax.de/gentoo/distfiles/bind-9.9.5.tar.gz'
--2014-02-01 11:15:36--  http://mirror.opteamax.de/gentoo/distfiles/bind-9.9.5.tar.gz
Resolving mirror.opteamax.de... 194.62.23.99, 2001:67c:1420::1:50
Connecting to mirror.opteamax.de|194.62.23.99|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-02-01 11:15:36 ERROR 404: Not Found.

>>> Downloading 'http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/bind-9.9.5.tar.gz'
--2014-02-01 11:15:36--  http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/bind-9.9.5.tar.gz
Resolving linux.rz.ruhr-uni-bochum.de... 134.147.32.114
Connecting to linux.rz.ruhr-uni-bochum.de|134.147.32.114|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-02-01 11:15:36 ERROR 404: Not Found.

>>> Downloading 'http://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/bind-9.9.5.tar.gz'
--2014-02-01 11:15:36--  http://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/bind-9.9.5.tar.gz
Resolving ftp.snt.utwente.nl... 130.89.149.20, 2001:67c:2564:a120::20
Connecting to ftp.snt.utwente.nl|130.89.149.20|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-02-01 11:15:36 ERROR 404: Not Found.

>>> Downloading 'ftp://ftp.isc.org/isc/bind9/9.9.5/bind-9.9.5.tar.gz'
--2014-02-01 11:15:36--  ftp://ftp.isc.org/isc/bind9/9.9.5/bind-9.9.5.tar.gz
           => ‘/usr/portage/distfiles/bind-9.9.5.tar.gz’
Resolving ftp.isc.org... 204.152.184.110, 2001:4f8:0:2::18
Connecting to ftp.isc.org|204.152.184.110|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /isc/bind9/9.9.5 ... done.
==> SIZE bind-9.9.5.tar.gz ... 7729695
==> PASV ... couldn't connect to 204.152.184.110 port 63122: Connection timed out
Retrying.

--2014-02-01 11:16:39--  ftp://ftp.isc.org/isc/bind9/9.9.5/bind-9.9.5.tar.gz
  (try: 2) => ‘/usr/portage/distfiles/bind-9.9.5.tar.gz’
Connecting to ftp.isc.org|204.152.184.110|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /isc/bind9/9.9.5 ... done.
==> SIZE bind-9.9.5.tar.gz ... 7729695
==> PASV ...
Comment 1 Toralf Förster gentoo-dev 2014-02-01 10:42:56 UTC
FWIW a wget http://ftp.isc.org/isc/bind9/9.9.5/bind-9.9.5.tar.gz works flawlessly over a wget ftp://ftp.isc.org/isc/bind9/9.9.5/bind-9.9.5.tar.gz
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2014-02-01 16:01:06 UTC
First, this looks like it is not a portage problem.  Bind only lists an ftp:// protocol for the primary sources.  You happen to be trying to fetch the sources before they have been cached by any of the gentoo distfile mirrors.  As it shows in your output, the file was not found in the mirrors, so ended up trying to fetch the sources from the url listed in the SRC_URI.

SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz

So, you will have to wait until the sources have been added to the mirrors.
Or find an alternate method of obtaining them.

You also did not include any portage version information, nor your make.conf
Comment 3 Toralf Förster gentoo-dev 2014-02-01 16:14:07 UTC
(In reply to Brian Dolbec from comment #2)
> So, you will have to wait until the sources have been added to the mirrors.

/me wonders if sources should/could be mirrored before publishing a new ebuild ?

> You also did not include any portage version information, nor your make.conf
yes, yes
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2014-02-01 18:34:34 UTC
Sources can be mirrored before the bump in the tree.  But that is normally only done for pkgs where the maintainer creates special files, tarballs.  Even then the maintainer is suppose to host the file in his dev space.  Normally the sources are mirrored after the first day of a bump.  I don't know how many times a day the distfiles list to mirror are recalulated from the tree's ebuilds.