/[gentoo-x86]/scripts/bootstrap-new.sh
Gentoo

Diff of /scripts/bootstrap-new.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1#!/bin/bash 1#!/bin/bash
2# Copyright 1999-2005 Gentoo Foundation 2# Copyright 1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2 3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.4 2005/02/04 18:28:47 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.5 2005/02/10 16:00:38 wolf31o2 Exp $
5 5
6# people who were here: 6# people who were here:
7# (drobbins, 06 Jun 2003) 7# (drobbins, 06 Jun 2003)
8# (solar, Jul 2004) 8# (solar, Jul 2004)
9# (vapier, Aug 2004) 9# (vapier, Aug 2004)
76 --pretend|-p) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p" ; unset STRAP_RUN ;; 76 --pretend|-p) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p" ; unset STRAP_RUN ;;
77 --tree|-t) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p -t"; unset STRAP_RUN ;; 77 --tree|-t) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p -t"; unset STRAP_RUN ;;
78 --resume|-r) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --usepkg --buildpkg";; 78 --resume|-r) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --usepkg --buildpkg";;
79 --verbose|-v) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -v"; V_ECHO=v_echo;; 79 --verbose|-v) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -v"; V_ECHO=v_echo;;
80 --version) 80 --version)
81 cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.4 2005/02/04 18:28:47 wolf31o2 Exp $" 81 cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.5 2005/02/10 16:00:38 wolf31o2 Exp $"
82 cvsver=${cvsver##*,v } 82 cvsver=${cvsver##*,v }
83 einfo "Gentoo ${GENTOO_VERS} bootstrap ${cvsver%%Exp*}" 83 einfo "Gentoo ${GENTOO_VERS} bootstrap ${cvsver%%Exp*}"
84 exit 0 84 exit 0
85 ;; 85 ;;
86 *) 86 *)
192fi 192fi
193 193
194# gettext should only be needed when used with nls 194# gettext should only be needed when used with nls
195for opt in ${ORIGUSE} ; do 195for opt in ${ORIGUSE} ; do
196 case "${opt}" in 196 case "${opt}" in
197 nls) myGETTEXT="gettext";; 197 nls) myGETTEXT="gettext"
198 STAGE1_USE="${STAGE1_USE} nls"
199 ;;
198 nptl) 200 nptl)
199 if [[ -z $(portageq best_visible / '>=sys-kernel/linux-headers-2.6.0') ]] ; then 201 if [[ -z $(portageq best_visible / '>=sys-kernel/linux-headers-2.6.0') ]] ; then
200 eerror "You need to have >=sys-kernel/linux-headers-2.6.0 unmasked!" 202 eerror "You need to have >=sys-kernel/linux-headers-2.6.0 unmasked!"
201 eerror "Please edit the latest >=sys-kernel/linux-headers-2.6.0 package," 203 eerror "Please edit the latest >=sys-kernel/linux-headers-2.6.0 package,"
202 eerror "and add your ARCH to KEYWORDS or change your make.profile link" 204 eerror "and add your ARCH to KEYWORDS or change your make.profile link"
203 eerror "to a profile which does not have 2.6 headers masked." 205 eerror "to a profile which does not have 2.6 headers masked."
204 echo 206 echo
205 cleanup 1 207 cleanup 1
206 fi 208 fi
207 USE_NPTL=1 209 USE_NPTL=1
208 ;; 210 ;;
211 multilib)
212 STAGE1_USE="${STAGE1_USE} multilib"
213 ;;
209 esac 214 esac
210done 215done
211 216
212# With cascading profiles, the packages profile at the leaf is not a 217# With cascading profiles, the packages profile at the leaf is not a
213# complete system, just the restrictions to it for the specific profile. 218# complete system, just the restrictions to it for the specific profile.
231 236
232# Do we really have no 2.4.x nptl kernels in portage? 237# Do we really have no 2.4.x nptl kernels in portage?
233if [[ ${USE_NPTL} = "1" ]] ; then 238if [[ ${USE_NPTL} = "1" ]] ; then
234 myOS_HEADERS="$(portageq best_visible / '>=sys-kernel/linux-headers-2.6.0')" 239 myOS_HEADERS="$(portageq best_visible / '>=sys-kernel/linux-headers-2.6.0')"
235 [[ -n ${myOS_HEADERS} ]] && myOS_HEADERS=">=${myOS_HEADERS}" 240 [[ -n ${myOS_HEADERS} ]] && myOS_HEADERS=">=${myOS_HEADERS}"
241 STAGE1_USE="${STAGE1_USE} nptl"
236fi 242fi
237[[ -z ${myOS_HEADERS} ]] && myOS_HEADERS="virtual/os-headers" 243[[ -z ${myOS_HEADERS} ]] && myOS_HEADERS="virtual/os-headers"
238 244
239einfo "Using baselayout : ${myBASELAYOUT}" 245einfo "Using baselayout : ${myBASELAYOUT}"
240einfo "Using portage : ${myPORTAGE}" 246einfo "Using portage : ${myPORTAGE}"
281 show_status 2 Updating portage 287 show_status 2 Updating portage
282 ${V_ECHO} USE="-* build bootstrap ${STAGE1_USE}" emerge ${STRAP_EMERGE_OPTS} ${myPORTAGE} || cleanup 1 288 ${V_ECHO} USE="-* build bootstrap ${STAGE1_USE}" emerge ${STRAP_EMERGE_OPTS} ${myPORTAGE} || cleanup 1
283 echo ------------------------------------------------------------------------------- 289 echo -------------------------------------------------------------------------------
284 set_bootstrap_stage 2 290 set_bootstrap_stage 2
285fi 291fi
286export USE="${ORIGUSE} bootstrap ${STAGE1_USE}" 292export USE="-* bootstrap ${STAGE1_USE}"
287 293
288# We can't unmerge headers which may or may not exist yet. If your 294# We can't unmerge headers which may or may not exist yet. If your
289# trying to use nptl, it may be needed to flush out any old headers 295# trying to use nptl, it may be needed to flush out any old headers
290# before fully bootstrapping. 296# before fully bootstrapping.
291if [ ${BOOTSTRAP_STAGE} -le 2 ] ; then 297if [ ${BOOTSTRAP_STAGE} -le 2 ] ; then

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20