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 |