summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2024-05-08 10:41:55 -0400
committerMichael Orlitzky <mjo@gentoo.org>2024-05-13 09:13:22 -0400
commitb7643fbe45d849aee68e4a162c05f48b4f830029 (patch)
tree08b023253433d720ffbdf9a72d1712df93e7a136 /eclass/acct-user.eclass
parentwww-apps/readarr-bin: drop 0.3.26.2526 (diff)
downloadgentoo-b7643fbe45d849aee68e4a162c05f48b4f830029.tar.gz
gentoo-b7643fbe45d849aee68e4a162c05f48b4f830029.tar.bz2
gentoo-b7643fbe45d849aee68e4a162c05f48b4f830029.zip
acct-user.eclass: make ACCT_USER_NAME writable
The ACCT_USER_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 usernames. We drop the "readonly" to allow those users to be managed (in overlays) using GLEP81 packages. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'eclass/acct-user.eclass')
-rw-r--r--eclass/acct-user.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
index 66a4d6667888..765487391fbd 100644
--- a/eclass/acct-user.eclass
+++ b/eclass/acct-user.eclass
@@ -1,4 +1,4 @@
-# Copyright 2019-2023 Gentoo Authors
+# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: acct-user.eclass
@@ -58,12 +58,12 @@ inherit user-info
# << Eclass variables >>
# @ECLASS_VARIABLE: ACCT_USER_NAME
-# @INTERNAL
# @DESCRIPTION:
-# The name of the user. This is forced to ${PN} and the policy prohibits
-# it from being changed.
+# The name of the user. This is forced to ${PN} and the policy
+# prohibits it from being changed. The variable is left writable for
+# use in overlays; package naming restrictions would prohibit some
+# otherwise-valid usernames.
ACCT_USER_NAME=${PN}
-readonly ACCT_USER_NAME
# @ECLASS_VARIABLE: ACCT_USER_ID
# @REQUIRED