Skip to content

Commit

Permalink
scripts/bootstrap-prefix: ensure etc/portage/profile exists before wr…
Browse files Browse the repository at this point in the history
…iting

Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Aug 20, 2024
1 parent a075ebb commit b162980
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/bootstrap-prefix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b162980

Please sign in to comment.