Summary: | sys-apps/portage: document GLEP 82 (e.g. restrict-allowed) (was: dev-util/pkgcheck: UnknownRestrict for RESTRICT="primaryuri" (Portage extension)) | ||
---|---|---|---|
Product: | Portage Development | Reporter: | amano.kenji <amano.kenji> |
Component: | Documentation | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra, mgorny, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/portage/pull/874 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 902189 | ||
Bug Blocks: | 835013 |
Description
amano.kenji
2022-07-28 07:38:11 UTC
Note that primaryuri is not a required token per PMS: https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-680007.3.6 This is controlled by metadata/layout.conf restrict-allowed. I can't find any documentation about restrict-allowed in `man 5 portage` or `man 5 ebuild`. (In reply to amano.kenji from comment #3) > I can't find any documentation about restrict-allowed in `man 5 portage` or > `man 5 ebuild`. See https://www.gentoo.org/glep/glep-0082.html#configuration-keys, but indeed, Portage should document it. I've been working on the man pages recently. (In reply to amano.kenji from comment #5) > Don't forget > https://wiki.gentoo.org/wiki/Repository_format/metadata/layout.conf Good point! Done, but not done Portage yet. It seems it's better to not have `restrict-allowed` in layout.conf? The document says `If unset, all tokens are permitted.` (In reply to amano.kenji from comment #7) > It seems it's better to not have `restrict-allowed` in layout.conf? > > The document says `If unset, all tokens are permitted.` Then how are we supposed to detect when someone commits garbage? (In reply to amano.kenji from comment #7) > It seems it's better to not have `restrict-allowed` in layout.conf? > > The document says `If unset, all tokens are permitted.` I think this very much depends on your preference. For ::gentoo, absolutely not. I struggle to see where you'd really want it unset, tbh. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=3eb9a842af0ffe2e73678f8815196633952fb1b6 commit 3eb9a842af0ffe2e73678f8815196633952fb1b6 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-29 01:04:10 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-04-07 09:52:29 +0000 portage.5: document restrict-allowed, properties-allowed Note that Portage doesn't really do anything with these right now AFAICT but it may in future (not planned though) decide to ignore non-acceptable tokens, etc. Bug: https://bugs.gentoo.org/861659 Closes: https://github.com/gentoo/portage/pull/874 Signed-off-by: Sam James <sam@gentoo.org> man/portage.5 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05f0b3b184011060c86787f93e16a29002bdc54a commit 05f0b3b184011060c86787f93e16a29002bdc54a Author: Sam James <sam@gentoo.org> AuthorDate: 2023-04-07 09:59:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-04-07 09:59:55 +0000 sys-apps/portage: add 3.0.46 Closes: https://bugs.gentoo.org/861659 Closes: https://bugs.gentoo.org/877271 Closes: https://bugs.gentoo.org/898224 Closes: https://bugs.gentoo.org/899898 Closes: https://bugs.gentoo.org/902189 Closes: https://bugs.gentoo.org/903917 Closes: https://bugs.gentoo.org/903926 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-3.0.46.ebuild | 285 +++++++++++++++++++++++++++++++++ 2 files changed, 286 insertions(+) |