mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 16:41:11 +02:00
scripts: Sync with Gentoo
It's from Gentoo commit 991727070a928a03481303ed5b0a571534853445.
This commit is contained in:
parent
8eb68e4e68
commit
d2dea5545b
@ -277,10 +277,6 @@ for atom in portage.settings.packages:
|
||||
[[ -z ${myTEXINFO} ]] && myTEXINFO="sys-apps/texinfo"
|
||||
[[ -z ${myZLIB} ]] && myZLIB="sys-libs/zlib"
|
||||
[[ -z ${myNCURSES} ]] && myNCURSES="sys-libs/ncurses"
|
||||
# Flatcar: install curl with BOOTSTRAP_USE=ssl to fetch from https URLs
|
||||
[[ -z ${myCURL} ]] && myCURL="net-misc/curl"
|
||||
# Flatcar: upgrade to openssl-3 before system rebuild in stage3
|
||||
[[ -z ${myOPENSSL} ]] && myOPENSSL="dev-libs/openssl"
|
||||
|
||||
# Do we really want gettext/nls?
|
||||
[[ ${USE_NLS} != 1 ]] && myGETTEXT=
|
||||
@ -302,10 +298,6 @@ einfo "Using libc : ${myLIBC}"
|
||||
einfo "Using texinfo : ${myTEXINFO}"
|
||||
einfo "Using zlib : ${myZLIB}"
|
||||
einfo "Using ncurses : ${myNCURSES}"
|
||||
# Flatcar: install curl with BOOTSTRAP_USE=ssl to fetch from https URLs
|
||||
einfo "Using curl : ${myCURL}"
|
||||
# Flatcar: upgrade to openssl-3 before system rebuild in stage3
|
||||
einfo "Using openssl : ${myOPENSSL}"
|
||||
echo -------------------------------------------------------------------------------
|
||||
show_status 1 Configuring environment
|
||||
echo -------------------------------------------------------------------------------
|
||||
@ -328,8 +320,7 @@ if [ ${BOOTSTRAP_STAGE} -le 1 ] ; then
|
||||
echo -------------------------------------------------------------------------------
|
||||
set_bootstrap_stage 2
|
||||
fi
|
||||
# Flatcar: Add openmp and static-libs to fix catalyst bootstrap stage2.
|
||||
export USE="-* bootstrap ${ALLOWED_USE} ${BOOTSTRAP_USE} openmp static-libs"
|
||||
export USE="-* bootstrap ${ALLOWED_USE} ${BOOTSTRAP_USE}"
|
||||
|
||||
# We can't unmerge headers which may or may not exist yet. If your
|
||||
# trying to use nptl, it may be needed to flush out any old headers
|
||||
@ -341,12 +332,9 @@ if [ ${BOOTSTRAP_STAGE} -le 2 ] ; then
|
||||
STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --resume"
|
||||
cp /var/run/bootstrap-mtimedb /var/cache/edb
|
||||
else
|
||||
# Flatcar: install curl with BOOTSTRAP_USE=ssl to fetch from https URLs
|
||||
STRAP_EMERGE_POSARGS="\
|
||||
${myOS_HEADERS} ${myTEXINFO} ${myGETTEXT} ${myBINUTILS} \
|
||||
${myGCC} ${myLIBC} ${myCURL} ${myBASELAYOUT} ${myZLIB}"
|
||||
# Flatcar: upgrade to openssl-3 before system rebuild in stage3
|
||||
STRAP_EMERGE_POSARGS="${STRAP_EMERGE_POSARGS} ${myOPENSSL}"
|
||||
${myGCC} ${myLIBC} ${myBASELAYOUT} ${myZLIB}"
|
||||
fi
|
||||
${V_ECHO} emerge ${STRAP_EMERGE_OPTS} ${STRAP_EMERGE_POSARGS} || cleanup 1
|
||||
echo -------------------------------------------------------------------------------
|
||||
@ -357,7 +345,6 @@ fi
|
||||
if [[ -n ${STRAP_RUN} ]] ; then
|
||||
if [[ -x ${GCC_CONFIG} ]] && ${GCC_CONFIG} --get-current-profile &>/dev/null
|
||||
then
|
||||
# Flatcar: avoid failures when bootstraping in verbose mode
|
||||
output=$(${V_ECHO} emerge ${STRAP_EMERGE_OPTS} --prune --pretend --quiet sys-devel/gcc 2>/dev/null)
|
||||
if [[ ${DEBUG} = "1" ]] ; then
|
||||
echo "${output}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user