diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-02-07 09:14:46 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-07 09:14:46 +0000 |
commit | 7342cc6c041f57777c80afe7b090253059848d95 (patch) | |
tree | 45c3b89d5e4b42a47f9277ed80318d7a04aa4e3d | |
parent | ce13d46f56fe0ddd79ee58e14821c92b916c32c3 (diff) | |
download | portage-7342cc6c041f57777c80afe7b090253059848d95.tar.gz portage-7342cc6c041f57777c80afe7b090253059848d95.tar.bz2 portage-7342cc6c041f57777c80afe7b090253059848d95.zip |
fix --libdir detection when econf is passed whitespace/empty arguments ... those break the plain string expansion comparison
svn path=/main/trunk/; revision=12588
-rwxr-xr-x | bin/ebuild.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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[= ]})) |