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