Skip to content

Commit 5588802

Browse files
committed
scripts/bootstrap-prefix: define PORTAGE_INST_{UID,GID}
Based on the patch by Etienne Buira <[email protected]> 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 <[email protected]>
1 parent 6759c9f commit 5588802

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/bootstrap-prefix.sh

+9
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,15 @@ bootstrap_setup() {
306306
echo
307307
echo 'ACCEPT_KEYWORDS="~ppc-macos"'
308308
fi
309+
310+
if is-rap ; then
311+
# https://bugs.gentoo.org/933100
312+
# mainline Portage doesn't set these like Prefix branch
313+
# does, so hardwire the IDs here
314+
echo
315+
echo "PORTAGE_INST_UID=$(id --user)"
316+
echo "PORTAGE_INST_GID=$(id --group)"
317+
fi
309318
} > "${MAKE_CONF_DIR}/0100_bootstrap_prefix_make.conf"
310319
fi
311320

0 commit comments

Comments
 (0)