Gentoo Archives: gentoo-user

From: Ian Zimmerman <itz@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: What is the meaning of "mirror" URI scheme in ebuilds?
Date: Tue, 27 Mar 2018 22:23:33
Message-Id: 20180327222312.erprykdjlfqnin7n@matica.foolinux.mooo.com
In Reply to: Re: [gentoo-user] What is the meaning of "mirror" URI scheme in ebuilds? by David Haller
1 On 2018-03-27 22:00, David Haller wrote:
2
3 > So, using your example, portage looks up the mirror for mirror://gnu
4 > by looking in /etc/portage/mirrors (if it exists) and
5 > /usr/portage/profiles/thirdpartymirrors for a line with the word "gnu"
6 > at the beginning, and then tries the mirrors specified there. I.e.:
7
8 Thanks, this helps. I have a related follow-up question.
9
10 Sometimes, the SRC_URI in fact consists of multiple URIs. What is
11 confusing about that is that in some cases the individual URI clearly
12 refer to copies of the same file (I'm guessing this provides redundant
13 locations where to download it from), while in other cases they're
14 clearly different files (for example upstream patches to be downloaded
15 separately). There are even ebuilds when _both_ cases happen at the
16 same time, such as media-libs/freetype-2.9 :
17
18 SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2
19 mirror://nongnu/freetype/${P/_/}.tar.bz2
20 utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2
21 mirror://nongnu/freetype/ft2demos-${PV}.tar.bz2 )
22 doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2
23 mirror://nongnu/freetype/${PN}-doc-${PV}.tar.bz2 )"
24
25 So, WTH is the semantics of this? How does portage know which URIs are
26 for the main tarball and which are the extras? It has to know that to
27 avoid downloading the main tarball twice.
28
29 --
30 Please don't Cc: me privately on mailing lists and Usenet,
31 if you also post the followup to the list or newsgroup.
32 To reply privately _only_ on Usenet and on broken lists
33 which rewrite From, fetch the TXT record for no-use.mooo.com.

Replies

Subject Author
Re: [gentoo-user] Re: What is the meaning of "mirror" URI scheme in ebuilds? David Haller <gentoo@×××××××.de>