summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-08-19 18:54:35 +0200
committerFabian Groffen <grobian@gentoo.org>2024-08-19 18:54:35 +0200
commita075ebb0f6e2b47034e3d69fdf30a06e6f61af8a (patch)
treee42750a8a569072b7af983abd358900de00de228
parentscripts/bootstrap-prefix: workaround binutils being dep-cleaned (diff)
downloadprefix-master.tar.gz
prefix-master.tar.bz2
prefix-master.zip
scripts/bootstrap-prefix: avoid USE=cet with binutils during bootstrapHEADmaster
the host compiler used may not support CET, causing binutils to fail, so wait for that later when we got our own compiler Thanks hsk17 for the analysis and proposed fix. Bug: https://bugs.gentoo.org/936629 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/bootstrap-prefix.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 928a789603..e51c4783e5 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -2027,6 +2027,10 @@ bootstrap_stage2() {
echo "sys-devel/gcc -pie" >> "${ROOT}"/tmp/etc/portage/package.use
fi
+ # don't use CET, we don't know if the host compiler supports it
+ echo "sys-devel/binutils -cet" >> \
+ "${ROOT}"/tmp/etc/portage/profile/package.use.force
+
emerge_pkgs --nodeps "${pkgs[@]}" || return 1
# Debian multiarch supported by RAP needs ld to support sysroot.