summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
commit623ee73d661e5ed8475cb264511f683407d87365 (patch)
tree993eb27c93ec7a2d2d19550300d888fc1fed9e69 /scripts
parentceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff)
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bootstrap.sh25
1 files changed, 11 insertions, 14 deletions
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"