From b162980328869597b3ca817eee2dcabc268aace0 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 20 Aug 2024 20:52:30 +0200 Subject: [PATCH] scripts/bootstrap-prefix: ensure etc/portage/profile exists before writing Signed-off-by: Fabian Groffen --- scripts/bootstrap-prefix.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index e51c4783e5..facb97eb75 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -2020,10 +2020,11 @@ bootstrap_stage2() { # unless we only build the buildtool, bug #603012 echo "dev-build/cmake -server" >> "${ROOT}"/tmp/etc/portage/package.use + mkdir -p "${ROOT}"/tmp/etc/portage/profile # site-specific overrides if [[ ${CHOST} == *-solaris* ]] ; then # avoid complexities with the host toolchain - sed -i -e '/^sys-devel\/gcc pie$/d' \ - "${PORTDIR}"/profiles/base/package.use.force + echo "sys-devel/gcc -pie" >> \ + "${ROOT}"/tmp/etc/portage/profile/package.use.force echo "sys-devel/gcc -pie" >> "${ROOT}"/tmp/etc/portage/package.use fi