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