Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Zac Medico <zmedico@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH] sys-apps/portage: add native-extensions USE flag (bug 571444)
Date: Wed, 01 Feb 2017 21:03:20
Message-Id: 1485982981.1445.4.camel@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] sys-apps/portage: add native-extensions USE flag (bug 571444) by Zac Medico
1 W dniu 01.02.2017, śro o godzinie 09∶06 -0800, użytkownik Zac Medico
2 napisał:
3 > The native-extensions USE flag will enable building of the
4 > libc bindings. This is not enabled by default because it does
5 > not support cross compilation.
6 >
7 > X-Gentoo-bug: 571444
8 > X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=571444
9 > ---
10 >  sys-apps/portage/metadata.xml        | 1 +
11 >  sys-apps/portage/portage-9999.ebuild | 7 ++++++-
12 >  2 files changed, 7 insertions(+), 1 deletion(-)
13 >
14 > diff --git a/sys-apps/portage/metadata.xml b/sys-
15 > apps/portage/metadata.xml
16 > 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>
23 >      <flag name="ipc">Use inter-process communication between portage
24 > and running ebuilds.</flag>
25 > +    <flag name="native-extensions">Build native extensions. Cross-
26 > compilation is not supported.</flag>
27 >      <flag name="xattr">Preserve extended attributes (filesystem-
28 > stored metadata) when installing files. Usually only required for
29 > hardened systems.</flag>
30 >    </use>
31 >  </pkgmetadata>
32 > diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-
33 > apps/portage/portage-9999.ebuild
34 > index 6a6f515..981db26 100644
35 > --- a/sys-apps/portage/portage-9999.ebuild
36 > +++ b/sys-apps/portage/portage-9999.ebuild
37 > @@ -19,7 +19,7 @@ HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Porta
38 > ge"
39 >  LICENSE="GPL-2"
40 >  KEYWORDS=""
41 >  SLOT="0"
42 > -IUSE="build doc epydoc +ipc linguas_ru selinux xattr"
43 > +IUSE="build doc epydoc +ipc linguas_ru native-extensions selinux
44 > xattr"
45
46 Wouldn't it be better to enable it by default?
47
48 >  
49 >  DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
50 >   >=app-arch/tar-1.27
51 > @@ -85,6 +85,11 @@ pkg_setup() {
52 >  python_prepare_all() {
53 >   distutils-r1_python_prepare_all
54 >  
55 > + if use native-extensions; then
56 > + printf "[build_ext]\nportage-ext-modules=true" >> \
57 > + setup.cfg || die
58 > + fi
59 > +
60 >   if ! use ipc ; then
61 >   einfo "Disabling ipc..."
62 >   sed -e "s:_enable_ipc_daemon =
63 > True:_enable_ipc_daemon = False:" \
64
65 --
66 Best regards,
67 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies