* [gentoo-portage-dev] [PATCH] sys-apps/portage: add native-extensions USE flag (bug 571444)
@ 2017-02-01 17:06 99% Zac Medico
0 siblings, 0 replies; 1+ results
From: Zac Medico @ 2017-02-01 17:06 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Zac Medico
The native-extensions USE flag will enable building of the
libc bindings. This is not enabled by default because it does
not support cross compilation.
X-Gentoo-bug: 571444
X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=571444
---
sys-apps/portage/metadata.xml | 1 +
sys-apps/portage/portage-9999.ebuild | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/sys-apps/portage/metadata.xml b/sys-apps/portage/metadata.xml
index e032ea5..882d3ba 100644
--- a/sys-apps/portage/metadata.xml
+++ b/sys-apps/portage/metadata.xml
@@ -12,6 +12,7 @@
<use>
<flag name="epydoc">Build html API documentation with epydoc.</flag>
<flag name="ipc">Use inter-process communication between portage and running ebuilds.</flag>
+ <flag name="native-extensions">Build native extensions. Cross-compilation is not supported.</flag>
<flag name="xattr">Preserve extended attributes (filesystem-stored metadata) when installing files. Usually only required for hardened systems.</flag>
</use>
</pkgmetadata>
diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild
index 6a6f515..981db26 100644
--- a/sys-apps/portage/portage-9999.ebuild
+++ b/sys-apps/portage/portage-9999.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
LICENSE="GPL-2"
KEYWORDS=""
SLOT="0"
-IUSE="build doc epydoc +ipc linguas_ru selinux xattr"
+IUSE="build doc epydoc +ipc linguas_ru native-extensions selinux xattr"
DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
>=app-arch/tar-1.27
@@ -85,6 +85,11 @@ pkg_setup() {
python_prepare_all() {
distutils-r1_python_prepare_all
+ if use native-extensions; then
+ printf "[build_ext]\nportage-ext-modules=true" >> \
+ setup.cfg || die
+ fi
+
if ! use ipc ; then
einfo "Disabling ipc..."
sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
--
2.10.2
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-02-01 17:06 99% [gentoo-portage-dev] [PATCH] sys-apps/portage: add native-extensions USE flag (bug 571444) Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox