summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-11 00:05:39 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-11 00:05:39 +0000
commitb1c76cdf3c4239ef17e7e44324804cff1dcabb0d (patch)
tree74fcec5b1904c9f6fc32597e8b1b6255eec54f53 /bin
parente16c2406ac014193aaab326edcfc7d16e0e8b29b (diff)
downloadportage-b1c76cdf3c4239ef17e7e44324804cff1dcabb0d.tar.gz
portage-b1c76cdf3c4239ef17e7e44324804cff1dcabb0d.tar.bz2
portage-b1c76cdf3c4239ef17e7e44324804cff1dcabb0d.zip
Bug#204668 - Fix WORKDIR quoting in econf() when updating
config.guess and config.sub. svn path=/main/trunk/; revision=9162
Diffstat (limited to 'bin')
-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