commit: 044a7d78ed7fb9a04ff6933e82ab8d1588731ca8
Author: Paul Walker <paulwalker <AT> paulwalker <DOT> dev>
AuthorDate: Wed Dec 3 18:23:20 2025 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Dec 4 07:11:49 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=044a7d78
scripts/bootstrap-prefix: set PORTAGE_USERNAME and PORTAGE_GRPNAME
Portage requires these variables to be set to grab the proper GID for running
chown on edb files.
Signed-off-by: Paul Walker <paulwalker <AT> paulwalker.dev>
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
scripts/bootstrap-prefix.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index e128a51e98..fe70d89192 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -319,6 +319,8 @@ bootstrap_setup() {
# mainline Portage doesn't set these like
Prefix branch
# does, so hardwire the IDs here
echo
+ echo "PORTAGE_USERNAME=$(id --name --user)"
+ echo "PORTAGE_GRPNAME=$(id --name --group)"
echo "PORTAGE_INST_UID=$(id --user)"
echo "PORTAGE_INST_GID=$(id --group)"
fi