summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-11 05:40:55 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-11 05:40:55 +0000
commit0f062288df103dd217c5201c38b7b210fb8b2491 (patch)
treef88787374c6e598b7ad99fbec79a6cc697ed51a6 /bin/ebuild.sh
parentbd011a40b0257c0d279493050745d7be46c397de (diff)
downloadportage-0f062288df103dd217c5201c38b7b210fb8b2491.tar.gz
portage-0f062288df103dd217c5201c38b7b210fb8b2491.tar.bz2
portage-0f062288df103dd217c5201c38b7b210fb8b2491.zip
Bug#204668 - Fix WORKDIR quoting in econf() when updating
config.guess and config.sub. (trunk r9162) svn path=/main/branches/2.1.2/; revision=9171
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 56347fc9d..ef21d222d 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -409,9 +409,11 @@ econf() {
fi
if [ -x "${ECONF_SOURCE}/configure" ]; then
if [ -e /usr/share/gnuconfig/ ]; then
- for x in $(find "${WORKDIR}" -type f '(' -name config.guess -o -name config.sub ')') ; do
+ find "${WORKDIR}" -type f '(' \
+ -name config.guess -o -name config.sub ')' -print0 | \
+ while read -d $'\0' x ; do
vecho " * econf: updating ${x/${WORKDIR}\/} with /usr/share/gnuconfig/${x##*/}"
- cp -f /usr/share/gnuconfig/${x##*/} ${x}
+ cp -f /usr/share/gnuconfig/"${x##*/}" "${x}"
done
fi