Talk:DISTDIR

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (~~~~), and indent successive comments with colons (:). Add new sections at the bottom of the page, under a heading (== ==). Please remember to mark sections as "open for discussion" using {{talk|open}}, so they will show up in the list of open discussions.

Source for distfiles

Talk status
This discussion is still ongoing as of 2022-01-28.

Am I right, the source of "downloaded source code archives" are: projects web-resources (SRC_URI in ebuilds) and/or GENTOO_MIRRORS (if it was impossible to download from SRC_URI)? --Vazhnov (talk) 00:51, 26 January 2022 (UTC)

Wiki is not really the place to ask such questions, forums or IRC are the right places for support questions... That said, I will answer. It is the other way around. Unless told otherwise with, Portage uses GENTOO_MIRRORS first (to alleviate load on upstream project resources and for other reasons). SRC_URI values will be used only when specified via FEATURES="mirror" in /etc/portage/make.conf. Hope this helps. --Maffblaster (talk) 02:15, 26 January 2022 (UTC)
I asked here, because I want to update the documentation page. So, it is clear where I got the information :) --Vazhnov (talk) 10:28, 26 January 2022 (UTC)
One additional bit to FEATURES="mirror", which could be seen as negative, is that all files are pulled if any are USE gated in SRC_URI. As an example, very large binary downloads for several arches are possible even if they will not be used. --Grknight (talk) 13:30, 26 January 2022 (UTC)
On double checking, FEATURES="mirror" does not affect what SRC_URI at all. It will only change how much is downloaded from $A to $AA. If mirrors are undesirable, then temporarily set GENTOO_MIRRORS="" on the command-line. --Grknight (talk) 13:42, 26 January 2022 (UTC)
Thanks for double checking on that, Brian Evans (grknight) . From reading the docs I understood mirror would download from SRC_URL only... perhaps man make.conf should be clarified. Here's what it says "mirror: Fetch everything in SRC_URI regardless of USE settings, except do not fetch anything when mirror is in RESTRICT." Is that misleading, or just me? --Maffblaster (talk) 19:06, 28 January 2022 (UTC)
It is technically correct in that it does fetch everything. The latter part only refers to RESTRICT="mirror" if it exists in the ebuild. Users cannot override this. It is a bit vague I agree. --Grknight (talk) 20:14, 28 January 2022 (UTC)
Thank you, guys — DISTDIR documentation is awesome now! --Vazhnov (talk) 19:53, 28 January 2022 (UTC)