From: Zac Medico Date: Sun, 14 Feb 2010 00:09:55 +0000 (-0000) Subject: After src_install, save fewer variables when writing the vdb entry for a X-Git-Tag: v2.2_rc63~53 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dfb82bbba163850b442cf0f302345827a7d38378;p=portage.git After src_install, save fewer variables when writing the vdb entry for a virtual package. svn path=/main/trunk/; revision=15349 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index f6138e28b..60c8f5e22 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1081,13 +1081,19 @@ dyn_install() { set -f local f x IFS=$' \t\n\r' - for f in ASFLAGS CATEGORY CBUILD CC CFLAGS CHOST CTARGET CXX \ - CXXFLAGS DEFINED_PHASES EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \ - FEATURES INHERITED IUSE LDFLAGS LIBCFLAGS LIBCXXFLAGS \ + for f in CATEGORY DEFINED_PHASES FEATURES INHERITED IUSE \ PF PKGUSE SLOT KEYWORDS HOMEPAGE DESCRIPTION ; do x=$(echo -n ${!f}) [[ -n $x ]] && echo "$x" > $f done + if [[ $CATEGORY != virtual ]] ; then + for f in ASFLAGS CBUILD CC CFLAGS CHOST CTARGET CXX \ + CXXFLAGS EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \ + LDFLAGS LIBCFLAGS LIBCXXFLAGS ; do + x=$(echo -n ${!f}) + [[ -n $x ]] && echo "$x" > $f + done + fi echo "${USE}" > USE echo "${EAPI:-0}" > EAPI set +f