Skip to content

Commit e3ce0db

Browse files
committed
scripts/bootstrap-prefix: first complete @System before using USE-flags
Complete @System before trying to set default USE-flags. This may cause re-compilations but is necessary to avoid circular deps e.g. with curl, so take the extra step, much like how in the past we would emerge -e @world after @System. Signed-off-by: Fabian Groffen <[email protected]>
1 parent 085211f commit e3ce0db

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/bootstrap-prefix.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,7 @@ bootstrap_stage3() {
24512451
export USE="${DISABLE_USE[*]}"
24522452

24532453
# Portage should figure out itself what it needs to do, if anything.
2454-
local eflags=( "--deep" "--update" "--changed-use" "@system" )
2454+
local eflags=( "@system" )
24552455
einfo "running emerge ${eflags[*]}"
24562456
estatus "stage3: emerge ${eflags[*]}"
24572457
emerge --color n -v "${eflags[@]}" || return 1
@@ -2461,6 +2461,16 @@ bootstrap_stage3() {
24612461
# from happening, add to the worldfile #936629#c5
24622462
emerge --color n --noreplace sys-devel/binutils
24632463

2464+
# now try and get things in the way they should be according to the
2465+
# default USE-flags
2466+
unset USE
2467+
2468+
# Portage should figure out itself what it needs to do, if anything.
2469+
eflags=( "--deep" "--update" "--changed-use" "@world" )
2470+
einfo "running emerge ${eflags[*]}"
2471+
estatus "stage3: emerge ${eflags[*]}"
2472+
emerge --color n -v "${eflags[@]}" || return 1
2473+
24642474
# Remove anything that we don't need (compilers most likely)
24652475
einfo "running emerge --depclean"
24662476
estatus "stage3: emerge --depclean"

0 commit comments

Comments
 (0)