Skip to content

Commit

Permalink
scripts/bootstrap-prefix: first complete @System before using USE-flags
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
grobian committed Aug 20, 2024
1 parent 085211f commit e3ce0db
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/bootstrap-prefix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,7 @@ bootstrap_stage3() {
export USE="${DISABLE_USE[*]}"

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

# now try and get things in the way they should be according to the
# default USE-flags
unset USE

# Portage should figure out itself what it needs to do, if anything.
eflags=( "--deep" "--update" "--changed-use" "@world" )
einfo "running emerge ${eflags[*]}"
estatus "stage3: emerge ${eflags[*]}"
emerge --color n -v "${eflags[@]}" || return 1

# Remove anything that we don't need (compilers most likely)
einfo "running emerge --depclean"
estatus "stage3: emerge --depclean"
Expand Down

0 comments on commit e3ce0db

Please sign in to comment.