summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-08-20 20:52:30 +0200
committerFabian Groffen <grobian@gentoo.org>2024-08-20 20:52:30 +0200
commitb162980328869597b3ca817eee2dcabc268aace0 (patch)
tree607dbc9fe68ceef976d13a3a3452a59767910a4f
parentscripts/bootstrap-prefix: avoid USE=cet with binutils during bootstrap (diff)
downloadprefix-b162980328869597b3ca817eee2dcabc268aace0.tar.gz
prefix-b162980328869597b3ca817eee2dcabc268aace0.tar.bz2
prefix-b162980328869597b3ca817eee2dcabc268aace0.zip
scripts/bootstrap-prefix: ensure etc/portage/profile exists before writing
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/bootstrap-prefix.sh5
1 files 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