summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* eclass: canonicalize debug-print-function callsDavid Seifert2024-10-081-3/+3
| | | | | Closes: https://github.com/gentoo/gentoo/pull/37652 Signed-off-by: David Seifert <soap@gentoo.org>
* remove ia64 archArthur Zamarin2024-09-121-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* eclass/acct-group.eclass: use $PN to construct make.conf override varsMichael Orlitzky2024-05-131-4/+6
| | | | | | | | | | | | If (after upcasing and replacing hyphens by underscores) ACCT_GROUP_NAME is set to something that isn't valid in a bash variable name, the eclass will crash: it uses ACCT_GROUP_NAME to construct the make.conf override variables in pkg_pretend() and src_install(). This commit constructs the variable names using PN instead of ACCT_GROUP_NAME. In ::gentoo, the two are equivalent, but in an overlay this allows weirder group names at the expense of slightly mismatched variable names. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* acct-group.eclass: make ACCT_GROUP_NAME writableMichael Orlitzky2024-05-131-4/+4
| | | | | | | | | | | The ACCT_GROUP_NAME variable is set to $PN by Gentoo policy. Prior to this commit, it was also marked "readonly", preventing it from being changed in an ebuild. In an overlay, and combined with the package naming restrictions in the PMS, this has the unfortunate side effect of prohibiting some otherwise-valid group names. We drop the "readonly" to allow those groups to be managed (in overlays) using GLEP81 packages. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* acct-user.eclass: include exit status in death messageMike Gilbert2023-06-261-1/+1
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-group.eclass: fix UnknownKeywordsSam James2023-05-271-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* acct-group.eclass: alpha, ia64, s390, m68k lack stable keywordsSam James2023-04-231-1/+1
| | | | | | We dropped them to ~arch a while ago. Signed-off-by: Sam James <sam@gentoo.org>
* acct-group.eclass: add ~arm64-macos to KEYWORDSSam James2023-04-231-1/+1
| | | | | Bug: https://bugs.gentoo.org/904474 Signed-off-by: Sam James <sam@gentoo.org>
* acct-group.eclass: fix spellingSam James2023-03-261-1/+1
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* acct-group.eclass: Quote argument of ":" commandUlrich Müller2023-03-261-4/+4
| | | | | | This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass: standardize prologue/epilogueDavid Seifert2023-03-171-4/+5
| | | | | Closes: https://github.com/gentoo/gentoo/pull/30061 Signed-off-by: David Seifert <soap@gentoo.org>
* acct-group.eclass: Don't modify groups when EPREFIX is non-emptyJames Le Cuirot2022-12-271-1/+1
| | | | | | | | This was happening when running a prefix as root, which we don't really support, but also when building a prefixed system under ROOT. Closes: https://bugs.gentoo.org/779181 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* acct-user.eclass: add myself as a maintainerMike Gilbert2022-10-191-0/+1
| | | | | | For bug visibility. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-group.eclass: inline groupaddMike Gilbert2022-10-191-3/+25
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-group.eclass: Revert "inline groupadd"Michał Górny2022-10-191-27/+3
| | | | | Reverts: acd0e195b2fba241d5eac52e34676a4a00493c2b Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-group.eclass: inline groupaddMike Gilbert2022-10-191-3/+27
| | | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-group.eclass: add keyword ~loongWANG Xuerui2022-04-251-2/+2
| | | | | See: https://github.com/gentoo/gentoo/pull/25183 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-3/+3
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* acct-group.eclass: EAPI 8 supportDavid Michael2021-06-241-9/+10
| | | | | | | | | | | | | | | | | | Update the documentation to describe how to depend on GLEP 81 packages with EAPI 8. There is no NSS module for resolving the accounts installed in $SYSROOT, so acct-* packages might also need need to be in $BROOT e.g. for fowners which directly calls chown. - BDEPEND so the build system can resolve names when building packages in nonempty $SYSROOT at src_install time. - IDEPEND so the build system can resolve names when installing binary packages in nonempty $ROOT at pkg_preinst time. - RDEPEND so the target system can use the accounts. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* acct-group.eclass: Support ACCT_GROUP_ID overrideMichał Górny2021-01-091-10/+29
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/acct-group.eclass: drop x86-macosFabian Groffen2021-01-061-1/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* eclass: [QA] Revert multiple meaningless doc changesMichał Górny2020-12-281-5/+0
| | | | | | | | | | | Revert multiple meaningless eclass documentation changes, notably adding a lot of placeholders and documenting implementation details. These changes were aimed at silencing (valid) documentation warnings without actually providing valuable documentation to the end users. While some of these changes were beneficial, it would take a lot of effort to review them all and the author is unwilling to fix his mistakes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/*: drop ppc-aix m68k-mintFabian Groffen2020-12-271-1/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* eclass/acct-group: fixup documentationAaron Bauman2020-12-161-0/+5
| | | | Signed-off-by: Aaron Bauman <bman@gentoo.org>
* acct-*.eclass: Create sysusers.d filesMichał Górny2020-09-051-2/+16
| | | | | | Thanks to David Michael for the initial patch and upstream fixes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-{group,user}: remove sh keywordMikle Kolyada2020-03-261-1/+1
| | | | Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* acct-*.eclass: Remove *-fbsd keywordsMichał Górny2019-10-111-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-{group,user}.eclass: Add @SUPPORTED_EAPIS.Ulrich Müller2019-08-201-1/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* acct-*.eclass: Allow dynamic UID/GID assignment via -1Michał Górny2019-08-171-0/+4
| | | | | | | | | | | | | | | | Allow a special value of '-1' to dynamically assign UID/GID for the user or group. This is intended to be used in overlays where proper assignment does not take place but whose owners wish to switch to acct-* packages. While technically it is possible to choose a free UID/GID, it could be taken afterwards by some Gentoo package and unnecessarily introduce a conflict. Using '999' was also suggested (as the first dynamic UID/GID) but it would cause issues for people enabling ACCT_*_ENFORCE_ID. To avoid this, '-1' does not trigger collision checks. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-group.eclass: Do not enforce GID unless requestedMichał Górny2019-07-091-1/+2
| | | | | | | | | | Correct the enewgroup call not to enforce specified GID unless ACCT_GROUP_ENFORCE_ID is set. Reported-by: Toralf Förster <toralf@gentoo.org> Tested-by: Marek Szuba <marecki@gentoo.org> Closes: https://bugs.gentoo.org/689100 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-group.eclass: Fix typo in error message.Ulrich Müller2019-07-081-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* acct-group.eclass: Remove HOMEPAGEMichał Górny2019-07-081-1/+0
| | | | | Suggested-by: Ulrich Müller <ulm@gentoo.org Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-group.eclass: A new eclass to maintain group accountsMichał Górny2019-06-201-0/+124
A GLEP 81-compliant eclass to create group packages. Signed-off-by: Michał Górny <mgorny@gentoo.org>