Skip to content

Commit 63b269d

Browse files
committed
scripts/bootstrap-prefix: try and unify USE-flag disabling
As pointed out by hsk17, we have two places in which we disable different sets of USE-flags, try to unify them. In addition add http3, quic and curl_quic_openssl during bootstrap. Bug: https://bugs.gentoo.org/936629 Signed-off-by: Fabian Groffen <[email protected]>
1 parent 3f1be2a commit 63b269d

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

scripts/bootstrap-prefix.sh

+26-14
Original file line numberDiff line numberDiff line change
@@ -1823,19 +1823,7 @@ do_emerge_pkgs() {
18231823
[[ -n ${pvdb} ]] && continue
18241824

18251825
local myuse=(
1826-
-acl
1827-
-berkdb
1828-
-fortran
1829-
-gdbm
1830-
-git
1831-
-libcxx
1832-
-http2
1833-
-nls
1834-
-pcre
1835-
-python
1836-
-qmanifest -qtegrity
1837-
-readline
1838-
-sanitize
1826+
"${DISABLE_USE[@]}"
18391827
bootstrap
18401828
clang
18411829
internal-glib
@@ -2472,7 +2460,7 @@ bootstrap_stage3() {
24722460

24732461
# Avoid installing git or encryption just for fun while completing @system
24742462
# e.g. bug #901101
2475-
export USE="-git -crypt -http2"
2463+
export USE="${DISABLE_USE[*]}"
24762464

24772465
# Portage should figure out itself what it needs to do, if anything.
24782466
local eflags=( "--deep" "--update" "--changed-use" "@system" )
@@ -2524,6 +2512,30 @@ set_helper_vars() {
25242512
SNAPSHOT_HOST=$(rapx http://distfiles.gentoo.org http://rsync.prefix.bitzolder.nl)
25252513
SNAPSHOT_URL=${SNAPSHOT_URL:-"${SNAPSHOT_HOST}/snapshots"}
25262514

2515+
# USE-flags to disable during bootstrap for they produce
2516+
# unnecessary, or worse: circular deps #901101, #936629
2517+
DISABLE_USE=(
2518+
"-acl"
2519+
"-berkdb"
2520+
"-crypt"
2521+
"-curl_quic_openssl" # curl
2522+
"-fortran" # gcc
2523+
"-gdbm"
2524+
"-git"
2525+
"-http2" # curl
2526+
"-http3" # curl
2527+
"-libcxx"
2528+
"-nls"
2529+
"-pcre"
2530+
"-python"
2531+
"-qmanifest" # portage-utils
2532+
"-qtegrity" # portage-utils
2533+
"-quic" # curl
2534+
"-readline" # bash
2535+
"-sanitize"
2536+
)
2537+
2538+
25272539
export MAKE CONFIG_SHELL
25282540
}
25292541

0 commit comments

Comments
 (0)