Gentoo Archives: gentoo-portage-dev

From: Brian Dolbec <dolsen@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] sys-apps/portage: add native-extensions USE flag (bug 571444)
Date: Wed, 01 Feb 2017 17:58:13
Message-Id: 20170201095730.24b114c6.dolsen@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] sys-apps/portage: add native-extensions USE flag (bug 571444) by Zac Medico
1 On Wed, 1 Feb 2017 09:06:37 -0800
2 Zac Medico <zmedico@g.o> wrote:
3
4 > The native-extensions USE flag will enable building of the
5 > libc bindings. This is not enabled by default because it does
6 > not support cross compilation.
7 >
8 > X-Gentoo-bug: 571444
9 > X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=571444
10 > ---
11 > sys-apps/portage/metadata.xml | 1 +
12 > sys-apps/portage/portage-9999.ebuild | 7 ++++++-
13 > 2 files changed, 7 insertions(+), 1 deletion(-)
14 >
15 > diff --git a/sys-apps/portage/metadata.xml
16 > b/sys-apps/portage/metadata.xml index e032ea5..882d3ba 100644
17 > --- a/sys-apps/portage/metadata.xml
18 > +++ b/sys-apps/portage/metadata.xml
19 > @@ -12,6 +12,7 @@
20 > <use>
21 > <flag name="epydoc">Build html API documentation with
22 > epydoc.</flag> <flag name="ipc">Use inter-process communication
23 > between portage and running ebuilds.</flag>
24 > + <flag name="native-extensions">Build native extensions.
25 > Cross-compilation is not supported.</flag> <flag
26 > name="xattr">Preserve extended attributes (filesystem-stored
27 > metadata) when installing files. Usually only required for hardened
28 > systems.</flag> </use> </pkgmetadata> diff --git
29 > a/sys-apps/portage/portage-9999.ebuild
30 > b/sys-apps/portage/portage-9999.ebuild index 6a6f515..981db26 100644
31 > --- a/sys-apps/portage/portage-9999.ebuild +++
32 > b/sys-apps/portage/portage-9999.ebuild @@ -19,7 +19,7 @@
33 > HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
34 > LICENSE="GPL-2" KEYWORDS=""
35 > SLOT="0"
36 > -IUSE="build doc epydoc +ipc linguas_ru selinux xattr"
37 > +IUSE="build doc epydoc +ipc linguas_ru native-extensions selinux
38 > xattr"
39 > DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
40 > >=app-arch/tar-1.27
41 > @@ -85,6 +85,11 @@ pkg_setup() {
42 > python_prepare_all() {
43 > distutils-r1_python_prepare_all
44 >
45 > + if use native-extensions; then
46 > + printf "[build_ext]\nportage-ext-modules=true" >> \
47 > + setup.cfg || die
48 > + fi
49 > +
50 > if ! use ipc ; then
51 > einfo "Disabling ipc..."
52 > sed -e "s:_enable_ipc_daemon =
53 > True:_enable_ipc_daemon = False:" \
54
55 looks good :)
56
57 --
58 Brian Dolbec <dolsen>

Replies