Gentoo Archives: gentoo-user

From: David Haller <gentoo@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] What is the meaning of "mirror" URI scheme in ebuilds?
Date: Tue, 27 Mar 2018 20:00:40
Message-Id: 20180327200021.gwunupuhrxwwuqz3@grusum.endjinn.de
In Reply to: [gentoo-user] What is the meaning of "mirror" URI scheme in ebuilds? by Ian Zimmerman
1 Hello,
2
3 On Tue, 27 Mar 2018, Ian Zimmerman wrote:
4 >Example from app-editors/emacs/emacs-24.5-r5 :
5 >
6 >SRC_URI="mirror://gnu/emacs/${P}.tar.xz
7 > https://dev.gentoo.org/~ulm/emacs/${P}-patches-4.tar.xz"
8
9 It means take one of the list specified in /etc/portage/mirrors/ or
10 ${PORTAGE_DIR}/profiles/thirdpartymirrors
11
12 ==== man 5 portage =====
13 /etc/portage/
14 [..]
15 mirrors
16 Whenever portage encounters a mirror:// style URI it will
17 look up the actual hosts here. If the mirror set is not
18 found here, it will check the global mirrors file at
19 /usr/portage/profiles/thirdpartymirrors.
20 ====
21
22 See also https://wiki.gentoo.org/wiki/GENTOO_MIRRORS
23
24 So, using your example, portage looks up the mirror for mirror://gnu
25 by looking in /etc/portage/mirrors (if it exists) and
26 /usr/portage/profiles/thirdpartymirrors for a line with the word "gnu"
27 at the beginning, and then tries the mirrors specified there. I.e.:
28
29 # grep '^gnu[[:space:]]' /usr/portage/profiles/thirdpartymirrors
30 gnu http://ftpmirror.gnu.org/ http://ftp.gnu.org/gnu/
31
32 So, portage will try http://ftpmirror.gnu.org/emacs/${P}.tar.xz and
33 http://ftp.gnu.org/gnu/emacs/${P}.tar.xz to retrieve the tarball.
34
35 HTH,
36 -dnh
37
38 --
39 "one of the ill effects of Microsoft's software is having to pay for it.
40 Lusers who pirate it are escaping this particular ill effect and aren't
41 driven quite as hard toward cheaper, better choices." -- Mark Wells

Replies

Subject Author
[gentoo-user] Re: What is the meaning of "mirror" URI scheme in ebuilds? Ian Zimmerman <itz@××××××××××××.org>