* [gentoo-commits] portage r12745 - main/trunk/bin
@ 2009-03-04 2:26 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-03-04 2:26 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-03-04 02:26:24 +0000 (Wed, 04 Mar 2009)
New Revision: 12745
Modified:
main/trunk/bin/ebuild.sh
Log:
Fix vdb entry writting code in dyn_install() to avoid generating empty entries
in some cases. Thanks to Ned Ludd <solar@g.o> for reporting.
Modified: main/trunk/bin/ebuild.sh
===================================================================
--- main/trunk/bin/ebuild.sh 2009-03-03 03:39:57 UTC (rev 12744)
+++ main/trunk/bin/ebuild.sh 2009-03-04 02:26:24 UTC (rev 12745)
@@ -1003,14 +1003,15 @@
cd "${PORTAGE_BUILDDIR}"/build-info
set -f
- local f
+ local f x
+ IFS=$' \t\n\r'
for f in ASFLAGS CATEGORY CBUILD CC CFLAGS CHOST CTARGET CXX \
CXXFLAGS DEPEND EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \
FEATURES INHERITED IUSE LDFLAGS LIBCFLAGS LIBCXXFLAGS \
LICENSE PDEPEND PF PKGUSE PROPERTIES PROVIDE RDEPEND RESTRICT SLOT \
KEYWORDS HOMEPAGE SRC_URI DESCRIPTION; do
- [ -n "${!f}" ] && echo $(echo "${!f}" | \
- tr '\n,\r,\t' ' , , ' | sed s/' \+'/' '/g) > ${f}
+ x=$(echo -n ${!f})
+ [[ -n $x ]] && echo "$x" > $f
done
echo "${USE}" > USE
echo "${EAPI:-0}" > EAPI
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-04 2:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-04 2:26 [gentoo-commits] portage r12745 - main/trunk/bin Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox