From 34fd963d695075401a202dce850693a9ace39041 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 4 Nov 2006 05:38:10 +0000 Subject: [PATCH] Revert implicit rdepend behavior back to the way it was in portage-2.0.51. Thanks to vapier for the patch. The original change seems to have been an accidentally hunk (referencing bug #58819) that was committed to cvs along with another patch in revision 1.201.2.32 of ebuild.sh. (trunk r4929) svn path=/main/branches/2.1.1/; revision=4931 --- bin/ebuild.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index d093fe0b1..adaeb7a92 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -24,9 +24,9 @@ if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "nofetch" ]; then fi fi -EBUILD_SH_ARGS="$*" - -shift $# +if [ -n "$#" ]; then + ARGS="${*}" +fi # Prevent aliases from causing portage to act inappropriately. # Make sure it's before everything so we don't mess aliases that follow. @@ -1345,7 +1345,7 @@ remove_path_entry() { # === === === === === functions end, main part begins === === === === === # === === === === === === === === === === === === === === === === === === -if [[ ${EBUILD_SH_ARGS} != "depend" ]] && [[ ${EBUILD_SH_ARGS} != "clean" ]] && [[ ${EBUILD_SH_ARGS} != "setup" ]]; then +if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "setup" ]; then cd ${PORTAGE_TMPDIR} &> /dev/null cd ${BUILD_PREFIX} &> /dev/null @@ -1417,7 +1417,7 @@ for x in T P PN PV PVR PR CATEGORY A EBUILD EMERGE_FROM O PPID FILESDIR PORTAGE_ [[ ${!x-UNSET_VAR} != UNSET_VAR ]] && declare -r ${x} done # Need to be able to change D in dyn_preinst due to the IMAGE stuff -[[ ${EBUILD_SH_ARGS} != "preinst" ]] && declare -r D +[[ $* != "preinst" ]] && declare -r D unset x # Turn of extended glob matching so that g++ doesn't get incorrectly matched. @@ -1425,7 +1425,7 @@ shopt -u extglob QA_INTERCEPTORS="javac java-config python python-config perl grep egrep fgrep sed gcc g++ cc bash awk nawk gawk pkg-config" # level the QA interceptors if we're in depend -if hasq "depend" "${EBUILD_SH_ARGS}"; then +if hasq "depend" "$@"; then for BIN in ${QA_INTERCEPTORS}; do BIN_PATH=$(type -pf ${BIN}) if [ "$?" != "0" ]; then @@ -1475,7 +1475,7 @@ if [ "$S" = "" ]; then fi #wipe the interceptors. we don't want saved. -if hasq "depend" "${EBUILD_SH_ARGS}"; then +if hasq "depend" "$@"; then unset -f $QA_INTERCEPTORS unset QA_INTERCEPTORS fi @@ -1493,8 +1493,8 @@ export TMPDIR="${T}" #syntax from getting expanded :) #check eclass rdepends also. set -f -if [ "${RDEPEND-unset}" == "unset" ] && [ "${E_RDEPEND-unset}" == "unset" ] ; then - export RDEPEND="${DEPEND} ${E_DEPEND}" +if [ "${RDEPEND-unset}" == "unset" ] ; then + export RDEPEND=${DEPEND} debug-print "RDEPEND: not set... Setting to: ${DEPEND}" fi @@ -1514,7 +1514,7 @@ fi set +f -for myarg in ${EBUILD_SH_ARGS} ; do +for myarg in $*; do case $myarg in nofetch) pkg_nofetch -- 2.26.2