8.2.10 SRC_URI has:
> If a simple filename rather than a full URI is provided, the package manager can only use mirrors to download the file.
This is weird, half-broken in Portage (requires specific configuration in make.conf to work) and we really, really prefer people using mirror://gentoo when we want that behavior.
Let's either kill that in a future EAPI, or retroactively. Since pkgcheck checks for this, we know that the tree is clean (except for two ebuilds just committed by Chewi, that are going to be fixed soonish).
As per our discussion, would it then follow that a simple filename would do what RESTRICT="fetch" does now but just for that file? I guess that would make the option obsolete. Does fetch restriction on a full URI ever make sense?
(In reply to James Le Cuirot from comment #1)
> As per our discussion, would it then follow that a simple filename would do
> what RESTRICT="fetch" does now but just for that file? I guess that would
> make the option obsolete. Does fetch restriction on a full URI ever make
Since this can't be made working retroactively (because of Portage implementation), I think we'll just go directly for selective fetch restriction (#371413).
IMHO we should ban this retroactively, not as part of EAPI 8. Especially, if the feature neither works in practice, nor is used in the tree.
The bug has been referenced in the following commit(s):
Author: Michał Górny <firstname.lastname@example.org>
AuthorDate: 2019-12-22 18:52:00 +0000
Commit: Ulrich Müller <email@example.com>
CommitDate: 2019-12-30 14:35:25 +0000
ebuild-vars: Remove 'simple filename' mirror fetching
The feature of using 'simple filename' to fetch from mirrors
is ill-defined (which mirrors?). The Portage implementation works only
if GENTOO_MIRRORS are explicitly set. It's not used in any ebuilds.
Let's remove it retroactively from the specification.
Signed-off-by: Michał Górny <firstname.lastname@example.org>
Signed-off-by: Ulrich Müller <email@example.com>
ebuild-vars.tex | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)