From 623ee73d661e5ed8475cb264511f683407d87365 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 Apr 2020 03:41:30 +0100 Subject: gentoo Easter resync : 12.04.2020 --- scripts/bootstrap.sh | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'scripts/bootstrap.sh') diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 03ba014b6372..c06e25dba133 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -239,9 +239,6 @@ for opt in ${ORIGUSE} ; do fi USE_NPTL=1 ;; - nptlonly) - USE_NPTLONLY=1 - ;; multilib) ALLOWED_USE="${ALLOWED_USE} multilib" ;; @@ -259,37 +256,37 @@ done eval $(pycmd ' import portage +from portage.dbapi._expand_new_virt import expand_new_virt import sys +root = portage.settings["EROOT"] for atom in portage.settings.packages: if not isinstance(atom, portage.dep.Atom): atom = portage.dep.Atom(atom.lstrip("*")) varname = "my" + portage.catsplit(atom.cp)[1].upper().replace("-", "_") + atom = list(expand_new_virt(portage.db[root]["vartree"].dbapi, atom))[0] sys.stdout.write("%s=\"%s\"; " % (varname, atom)) ') # This stuff should never fail but will if not enough is installed. [[ -z ${myBASELAYOUT} ]] && myBASELAYOUT=">=$(portageq best_version / sys-apps/baselayout)" -[[ -z ${myPORTAGE} ]] && myPORTAGE="portage" -[[ -z ${myBINUTILS} ]] && myBINUTILS="binutils" -[[ -z ${myGCC} ]] && myGCC="gcc" -[[ -z ${myGETTEXT} ]] && myGETTEXT="gettext" +[[ -z ${myPORTAGE} ]] && myPORTAGE="sys-apps/portage" +[[ -z ${myBINUTILS} ]] && myBINUTILS="sys-devel/binutils" +[[ -z ${myGCC} ]] && myGCC="sys-devel/gcc" +[[ -z ${myGETTEXT} ]] && myGETTEXT="sys-devel/gettext" [[ -z ${myLIBC} ]] && myLIBC="$(portageq expand_virtual / virtual/libc)" [[ -z ${myTEXINFO} ]] && myTEXINFO="sys-apps/texinfo" -[[ -z ${myZLIB} ]] && myZLIB="zlib" -[[ -z ${myNCURSES} ]] && myNCURSES="ncurses" +[[ -z ${myZLIB} ]] && myZLIB="sys-libs/zlib" +[[ -z ${myNCURSES} ]] && myNCURSES="sys-libs/ncurses" # Do we really want gettext/nls? [[ ${USE_NLS} != 1 ]] && myGETTEXT= -# Do we really have no 2.4.x nptl kernels in portage? if [[ ${USE_NPTL} = "1" ]] ; then myOS_HEADERS="$(portageq best_visible / '>=sys-kernel/linux-headers-2.6.0')" [[ -n ${myOS_HEADERS} ]] && myOS_HEADERS=">=${myOS_HEADERS}" ALLOWED_USE="${ALLOWED_USE} nptl" - # Should we build with nptl only? - [[ ${USE_NPTLONLY} = "1" ]] && ALLOWED_USE="${ALLOWED_USE} nptlonly" fi -[[ -z ${myOS_HEADERS} ]] && myOS_HEADERS="virtual/os-headers" +[[ -z ${myOS_HEADERS} ]] && myOS_HEADERS="$(portageq expand_virtual / virtual/os-headers)" einfo "Using baselayout : ${myBASELAYOUT}" einfo "Using portage : ${myPORTAGE}" @@ -309,7 +306,7 @@ echo --------------------------------------------------------------------------- [[ -x /usr/bin/gcc-config ]] && GCC_CONFIG="/usr/bin/gcc-config" # Allow portage to overwrite stuff -export CONFIG_PROTECT="-*" +[[ $CONFIG_PROTECT != "-*"* ]] && export CONFIG_PROTECT="-*" # disable collision-protection export FEATURES="${FEATURES} -collision-protect" -- cgit v1.2.3