From: David Haller <gentoo@dhaller.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] What is the meaning of "mirror" URI scheme in ebuilds?
Date: Tue, 27 Mar 2018 22:00:21 +0200 [thread overview]
Message-ID: <20180327200021.gwunupuhrxwwuqz3@grusum.endjinn.de> (raw)
In-Reply-To: <20180327185052.sqrzhfybpph43kdb@matica.foolinux.mooo.com>
Hello,
On Tue, 27 Mar 2018, Ian Zimmerman wrote:
>Example from app-editors/emacs/emacs-24.5-r5 :
>
>SRC_URI="mirror://gnu/emacs/${P}.tar.xz
> https://dev.gentoo.org/~ulm/emacs/${P}-patches-4.tar.xz"
It means take one of the list specified in /etc/portage/mirrors/ or
${PORTAGE_DIR}/profiles/thirdpartymirrors
==== man 5 portage =====
/etc/portage/
[..]
mirrors
Whenever portage encounters a mirror:// style URI it will
look up the actual hosts here. If the mirror set is not
found here, it will check the global mirrors file at
/usr/portage/profiles/thirdpartymirrors.
====
See also https://wiki.gentoo.org/wiki/GENTOO_MIRRORS
So, using your example, portage looks up the mirror for mirror://gnu
by looking in /etc/portage/mirrors (if it exists) and
/usr/portage/profiles/thirdpartymirrors for a line with the word "gnu"
at the beginning, and then tries the mirrors specified there. I.e.:
# grep '^gnu[[:space:]]' /usr/portage/profiles/thirdpartymirrors
gnu http://ftpmirror.gnu.org/ http://ftp.gnu.org/gnu/
So, portage will try http://ftpmirror.gnu.org/emacs/${P}.tar.xz and
http://ftp.gnu.org/gnu/emacs/${P}.tar.xz to retrieve the tarball.
HTH,
-dnh
--
"one of the ill effects of Microsoft's software is having to pay for it.
Lusers who pirate it are escaping this particular ill effect and aren't
driven quite as hard toward cheaper, better choices." -- Mark Wells
next prev parent reply other threads:[~2018-03-27 20:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-27 18:50 [gentoo-user] What is the meaning of "mirror" URI scheme in ebuilds? Ian Zimmerman
2018-03-27 20:00 ` David Haller [this message]
2018-03-27 22:23 ` [gentoo-user] " Ian Zimmerman
2018-03-28 0:36 ` David Haller
2018-03-27 23:34 ` [gentoo-user] " Michael Orlitzky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180327200021.gwunupuhrxwwuqz3@grusum.endjinn.de \
--to=gentoo@dhaller.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox