diff options
author | William Hubbs <williamh@gentoo.org> | 2014-03-13 16:11:27 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2014-03-13 16:11:27 +0000 |
commit | 36c423637b659c9a3d98122f6803857637510529 (patch) | |
tree | 99fc7b5f3d708c7f47a64bffeee8a84f5aa01302 | |
parent | Add a suffix to the internal package version when USE=-offensive. (diff) | |
download | historical-36c423637b659c9a3d98122f6803857637510529.tar.gz historical-36c423637b659c9a3d98122f6803857637510529.tar.bz2 historical-36c423637b659c9a3d98122f6803857637510529.zip |
We should attempt to source /lib/gentoo/functions.sh before we attempt
to source /etc/init.d/functions.sh.
Also, we should unconditionally define our own esyslog function.
This is for bug #504376.
-rwxr-xr-x | scripts/bootstrap.sh | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index f5b3534578e3..18914b7bd4b3 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -1,7 +1,7 @@ #!/bin/bash -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.97 2013/06/27 21:04:49 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.98 2014/03/13 16:11:27 williamh Exp $ # people who were here: # (drobbins, 06 Jun 2003) @@ -12,23 +12,26 @@ # (azarah, Mar 2005) # (uberlord, May 2007) # (kumba, May 2007) +# (williamh, Mar 2014) # sanity check [[ -e /etc/profile ]] && . /etc/profile -if [[ -e /etc/init.d/functions.sh ]] ; then +if [[ -e /lib/gentoo/functions.sh ]] ; then + source /lib/gentoo/functions.sh + elif [[ -e /etc/init.d/functions.sh ]] ; then source /etc/init.d/functions.sh - - # Use our own custom script, else logger cause things to - # 'freeze' if we do not have a system logger running - esyslog() { - : - } else eerror() { echo "!!! $*"; } einfo() { echo "* $*"; } fi +# Use our own custom script, else logger cause things to +# 'freeze' if we do not have a system logger running +esyslog() { + : +} + show_status() { local num=$1 shift @@ -52,7 +55,7 @@ v_echo() { env "$@" } -cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.97 2013/06/27 21:04:49 zmedico Exp $" +cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/bootstrap.sh,v 1.98 2014/03/13 16:11:27 williamh Exp $" cvsver=${cvsver##*,v } cvsver=${cvsver%%Exp*} cvsyear=${cvsver#* } |