From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: bin/, pym/portage/package/ebuild/
Date: Fri, 16 Mar 2018 09:53:20 +0000 (UTC) [thread overview]
Message-ID: <1521193999.f5f6a6da0db1dfe824c0d4386e6b4458338df179.mgorny@gentoo> (raw)
commit: f5f6a6da0db1dfe824c0d4386e6b4458338df179
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 16 08:10:33 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 16 09:53:19 2018 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=f5f6a6da
Stop crippling metadata for virtual/*
There is no technical requirement that virtual/* packages will reliably
contain no executable code. Therefore, stop crippling the metadata
stored in vdb for them.
Closes: https://github.com/gentoo/portage/pull/269
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org>
bin/phase-functions.sh | 24 ++++++++++--------------
pym/portage/package/ebuild/doebuild.py | 11 ++++-------
2 files changed, 14 insertions(+), 21 deletions(-)
diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh
index 0ceddb451..6ae61b2f0 100644
--- a/bin/phase-functions.sh
+++ b/bin/phase-functions.sh
@@ -662,23 +662,19 @@ __dyn_install() {
local f x
IFS=$' \t\n\r'
for f in CATEGORY DEFINED_PHASES FEATURES INHERITED IUSE \
- PF PKGUSE SLOT KEYWORDS HOMEPAGE DESCRIPTION ; do
+ PF PKGUSE SLOT KEYWORDS HOMEPAGE DESCRIPTION \
+ ASFLAGS CBUILD CC CFLAGS CHOST CTARGET CXX \
+ CXXFLAGS EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \
+ LDFLAGS LIBCFLAGS LIBCXXFLAGS QA_CONFIGURE_OPTIONS \
+ QA_DESKTOP_FILE QA_PREBUILT PROVIDES_EXCLUDE REQUIRES_EXCLUDE ; 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 QA_CONFIGURE_OPTIONS \
- QA_DESKTOP_FILE QA_PREBUILT PROVIDES_EXCLUDE REQUIRES_EXCLUDE ; do
- x=$(echo -n ${!f})
- [[ -n $x ]] && echo "$x" > $f
- done
- # whitespace preserved
- for f in QA_AM_MAINTAINER_MODE ; do
- [[ -n ${!f} ]] && echo "${!f}" > $f
- done
- fi
+ # whitespace preserved
+ for f in QA_AM_MAINTAINER_MODE ; do
+ [[ -n ${!f} ]] && echo "${!f}" > $f
+ done
echo "${USE}" > USE
echo "${EAPI:-0}" > EAPI
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
index 8cec8e4da..8436c0b10 100644
--- a/pym/portage/package/ebuild/doebuild.py
+++ b/pym/portage/package/ebuild/doebuild.py
@@ -1930,13 +1930,10 @@ def _post_src_install_write_metadata(settings):
if v is not None:
write_atomic(os.path.join(build_info_dir, k), v + '\n')
- # The following variables are irrelevant for virtual packages.
- if settings.get('CATEGORY') != 'virtual':
-
- for k in ('CHOST',):
- v = settings.get(k)
- if v is not None:
- write_atomic(os.path.join(build_info_dir, k), v + '\n')
+ for k in ('CHOST',):
+ v = settings.get(k)
+ if v is not None:
+ write_atomic(os.path.join(build_info_dir, k), v + '\n')
with io.open(_unicode_encode(os.path.join(build_info_dir,
'BUILD_TIME'), encoding=_encodings['fs'], errors='strict'),
next reply other threads:[~2018-03-16 9:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-16 9:53 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-08-26 21:16 [gentoo-commits] proj/portage:master commit in: bin/, pym/portage/package/ebuild/ Michał Górny
2016-12-03 20:33 Zac Medico
2015-03-22 19:37 Zac Medico
2014-12-02 18:32 Zac Medico
2014-11-29 18:34 Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1521193999.f5f6a6da0db1dfe824c0d4386e6b4458338df179.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox