diff options
author | 2024-07-14 15:09:51 +0200 | |
---|---|---|
committer | 2024-07-14 15:09:51 +0200 | |
commit | 55888020536b3866ff29f27d6b4e6ede77ae791f (patch) | |
tree | b5f72cf37397c27b6496196f1e9357cc9c9ea844 | |
parent | sys-libs/newlib: remove in favour of gx86 version (diff) | |
download | prefix-55888020536b3866ff29f27d6b4e6ede77ae791f.tar.gz prefix-55888020536b3866ff29f27d6b4e6ede77ae791f.tar.bz2 prefix-55888020536b3866ff29f27d6b4e6ede77ae791f.zip |
scripts/bootstrap-prefix: define PORTAGE_INST_{UID,GID}
Based on the patch by Etienne Buira <etienne.buira@free.fr> in bug #933100.
Mainline Portage doesn't set the Portage UID/GID, so define them in
make.conf during bootstrap for RAP targets.
Closes: https://bugs.gentoo.org/933100
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-x | scripts/bootstrap-prefix.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 721157f1df..024a77392a 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -306,6 +306,15 @@ bootstrap_setup() { echo echo 'ACCEPT_KEYWORDS="~ppc-macos"' fi + + if is-rap ; then + # https://bugs.gentoo.org/933100 + # mainline Portage doesn't set these like Prefix branch + # does, so hardwire the IDs here + echo + echo "PORTAGE_INST_UID=$(id --user)" + echo "PORTAGE_INST_GID=$(id --group)" + fi } > "${MAKE_CONF_DIR}/0100_bootstrap_prefix_make.conf" fi |