Several ebuilds that package FOSS programs (e.g. app-admin/chezmoi-2.49.0) set RESTRICT="mirror", presumably to force package managers to fetch the sources directly from the original location. The FAQ.md file encourages this: > - #### Can I use RESTRICT="mirror"? > > Sure, since GURU packages are not mirrored on the [Gentoo mirrors](https://devmanual.gentoo.org/general-concepts/mirrors/index.html) anyway, it makes no difference. You can use RESTRICT="mirror" to avoid unnecessary fetch attempts. This is not required by GURU nor is it prohibited, just be sure to remove it if you want to move your package to the main Gentoo repository. I see several issues with this: - It ignores part of the PMS' explanation of RESTRICT=mirror: > The package’s SRC_URI entries may not be mirrored, and mirrors should not be checked when fetching. Most of the time sources may very well be mirrored, we just choose not to. - It's not applied consistently across the repo, which may leave new contributors wondering about the meaning of RESTRICT=mirror being set. - Lastly, if we ever decide to mirror GURU sources, it'll mean extra work, the longer we allow this use case of RESTRICT=mirror to proliferate. I suggest we encourage users to configure Portage like this... echo 'GENTOO_MIRRORS=""' > /etc/portage/env/guru-global echo '*/*::guru guru-global' > /etc/portage/package.env/default ... instead, amend https://wiki.gentoo.org/wiki/Project:GURU/Information_for_End_Users and remove or edit the offending FAQ section. This solution resolves the first two issues, is not dependent on RESTRICT=mirror being set and can be overridden per package. Reproducible: Always
Context: https://github.com/gentoo/guru/commit/f4e89c5a87714b8ad2bddb1388719857a607c134#r144874823