From a43f393643259c87f7f4883300d43c4cde4b9004 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 3 Jan 2023 09:01:07 +0100 Subject: [PATCH] profiles: Add bison to bootstrap use flags This is to fix the following error during stage2 SDK build: [[ (3/3) Emerging packages ]] !!! The ebuild selected to satisfy "app-alternatives/yacc" has unmet requirements. - app-alternatives/yacc-1-r2::portage-stable USE="-bison -byacc -reference" The following REQUIRED_USE flag constraints are unsatisfied: exactly-one-of ( bison byacc reference ) (dependency required by "sys-devel/binutils-2.39-r4::portage-stable" [ebuild]) (dependency required by "sys-devel/gcc-11.3.1_p20221209::portage-stable" [ebuild]) (dependency required by "sys-libs/glibc-2.36-r5::coreos" [ebuild]) (dependency required by "sys-libs/glibc:2.2" [argument]) --- .../coreos-overlay/profiles/coreos/base/make.defaults | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults index bf61ba59f4..995c5b3a69 100644 --- a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults +++ b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults @@ -46,6 +46,11 @@ BOOTSTRAP_USE="${BOOTSTRAP_USE} curl_ssl_openssl ssl" # Add `xml` USE flag to avoid build failures from sys-apps/portage 3.0.28 BOOTSTRAP_USE="${BOOTSTRAP_USE} xml" +# Add `bison` USE flag, so we pick a proper yacc alternative from +# app-alternatives/yacc (normally bison is enabled by default, but +# it's disabled during building stage2 for some reason). +BOOTSTRAP_USE="${BOOTSTRAP_USE} bison" + # Set SELinux policy POLICY_TYPES="targeted mcs mls"