Skip to content

Commit b162980

Browse files
committed
scripts/bootstrap-prefix: ensure etc/portage/profile exists before writing
Signed-off-by: Fabian Groffen <[email protected]>
1 parent a075ebb commit b162980

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/bootstrap-prefix.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -2020,10 +2020,11 @@ bootstrap_stage2() {
20202020
# unless we only build the buildtool, bug #603012
20212021
echo "dev-build/cmake -server" >> "${ROOT}"/tmp/etc/portage/package.use
20222022

2023+
mkdir -p "${ROOT}"/tmp/etc/portage/profile # site-specific overrides
20232024
if [[ ${CHOST} == *-solaris* ]] ; then
20242025
# avoid complexities with the host toolchain
2025-
sed -i -e '/^sys-devel\/gcc pie$/d' \
2026-
"${PORTDIR}"/profiles/base/package.use.force
2026+
echo "sys-devel/gcc -pie" >> \
2027+
"${ROOT}"/tmp/etc/portage/profile/package.use.force
20272028
echo "sys-devel/gcc -pie" >> "${ROOT}"/tmp/etc/portage/package.use
20282029
fi
20292030

0 commit comments

Comments
 (0)