From a075ebb0f6e2b47034e3d69fdf30a06e6f61af8a Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 19 Aug 2024 18:54:35 +0200 Subject: scripts/bootstrap-prefix: avoid USE=cet with binutils during bootstrap 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 --- scripts/bootstrap-prefix.sh | 4 ++++ 1 file changed, 4 insertions(+) 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. -- cgit v1.2.3-65-gdbad