From: Mike Frysinger Date: Sat, 7 Feb 2009 09:14:46 +0000 (-0000) Subject: fix --libdir detection when econf is passed whitespace/empty arguments ... those... X-Git-Tag: v2.2_rc24~214 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7342cc6c041f57777c80afe7b090253059848d95;p=portage.git fix --libdir detection when econf is passed whitespace/empty arguments ... those break the plain string expansion comparison svn path=/main/trunk/; revision=12588 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 335eae748..34e4f747b 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -491,7 +491,7 @@ econf() { CONF_LIBDIR="${!LIBDIR_VAR}" fi unset LIBDIR_VAR - if [ -n "${CONF_LIBDIR}" ] && [ "${*/--libdir}" == "$*" ]; then + if [ -n "${CONF_LIBDIR}" ] && ! hasq --libdir=* "$@" ; then if [ "${*/--exec-prefix}" != "$*" ]; then local args="$(echo $*)" local -a pref=($(echo ${args/*--exec-prefix[= ]}))