commit:     36966e750b33b9ca7c664ce7f1710072561ae7c1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 12 11:04:03 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 12 11:07:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36966e75

scripts: cleanup USE=nptl

Bug: https://bugs.gentoo.org/820905
Signed-off-by: Sam James <sam <AT> gentoo.org>

 scripts/bootstrap.sh | 27 +++------------------------
 1 file 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: rel...@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

Reply via email to