From e62aa344cba45aca2f317ecaae025ed4240659fd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 14 Feb 2013 08:47:41 -0800 Subject: [PATCH] EXTRA_ECONF: support quoted args, bug #457136 --- bin/phase-helpers.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index ac1c07617..4812db343 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -494,6 +494,9 @@ econf() { set -- --libdir="$(__strip_duplicate_slashes "${CONF_PREFIX}${CONF_LIBDIR}")" "$@" fi + # Handle arguments containing quoted whitespace (see bug #457136). + eval "local -a EXTRA_ECONF=(${EXTRA_ECONF})" + set -- \ --prefix="${EPREFIX}"/usr \ ${CBUILD:+--build=${CBUILD}} \ @@ -505,7 +508,7 @@ econf() { --sysconfdir="${EPREFIX}"/etc \ --localstatedir="${EPREFIX}"/var/lib \ "$@" \ - ${EXTRA_ECONF} + "${EXTRA_ECONF[@]}" __vecho "${ECONF_SOURCE}/configure" "$@" if ! "${ECONF_SOURCE}/configure" "$@" ; then -- 2.26.2