summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-01-12 11:04:03 +0000
committerSam James <sam@gentoo.org>2024-01-12 11:07:06 +0000
commit36966e750b33b9ca7c664ce7f1710072561ae7c1 (patch)
tree66a9268114ed796510cfc6b4204d7e3ae0f52b10 /scripts
parentprofiles: cleanup USE=nptl (diff)
downloadgentoo-36966e750b33b9ca7c664ce7f1710072561ae7c1.tar.gz
gentoo-36966e750b33b9ca7c664ce7f1710072561ae7c1.tar.bz2
gentoo-36966e750b33b9ca7c664ce7f1710072561ae7c1.zip
scripts: cleanup USE=nptl
Bug: https://bugs.gentoo.org/820905 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bootstrap.sh27
1 files changed, 3 insertions, 24 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 48ed539e8186..7244fcbb49a2 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -1,10 +1,10 @@
#!/bin/bash
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Maintainer: releng@gentoo.org
-file_version="2021.0" # update manually: <year>.<counter>
+file_version="2024.0" # update manually: <year>.<counter>
# people who were here:
# (drobbins, 06 Jun 2003)
@@ -227,18 +227,6 @@ for opt in ${ORIGUSE} ; do
USE_NLS=1
ALLOWED_USE="${ALLOWED_USE} nls"
;;
- nptl)
- export MYARCH=$(portageq envvar ARCH)
- if [[ -z $(portageq best_visible / '>=sys-kernel/linux-headers-2.6.0') ]] ; then
- eerror "You need to have >=sys-kernel/linux-headers-2.6.0 unmasked!"
- eerror "Please edit the latest >=sys-kernel/linux-headers-2.6.0 package,"
- eerror "and add your ARCH to KEYWORDS or change your make.profile link"
- eerror "to a profile which does not have 2.6 headers masked."
- echo
- cleanup 1
- fi
- USE_NPTL=1
- ;;
multilib)
ALLOWED_USE="${ALLOWED_USE} multilib"
;;
@@ -277,17 +265,11 @@ for atom in portage.settings.packages:
[[ -z ${myTEXINFO} ]] && myTEXINFO="sys-apps/texinfo"
[[ -z ${myZLIB} ]] && myZLIB="sys-libs/zlib"
[[ -z ${myNCURSES} ]] && myNCURSES="sys-libs/ncurses"
+[[ -z ${myOS_HEADERS} ]] && myOS_HEADERS="$(portageq expand_virtual / virtual/os-headers)"
# Do we really want gettext/nls?
[[ ${USE_NLS} != 1 ]] && myGETTEXT=
-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"
-fi
-[[ -z ${myOS_HEADERS} ]] && myOS_HEADERS="$(portageq expand_virtual / virtual/os-headers)"
-
einfo "Using baselayout : ${myBASELAYOUT}"
einfo "Using portage : ${myPORTAGE}"
einfo "Using os-headers : ${myOS_HEADERS}"
@@ -322,9 +304,6 @@ if [ ${BOOTSTRAP_STAGE} -le 1 ] ; then
fi
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
-# before fully bootstrapping.
if [ ${BOOTSTRAP_STAGE} -le 2 ] ; then
show_status 3 Emerging packages
if [[ ${RESUME} -eq 1 ]] ; then