commit: 8ffed1deeb1755818d886e0a2121548421792530
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Mon Aug 7 08:09:28 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 8 04:58:34 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ffed1de
sys-apps/portage: disable native-extensions for pypy3
Disable native-extensions for pypy3 as they're slow and just a compatibility
layer for cpython extensions in pypy.
[sam: Note that Portage has pure Python fallbacks for almost everything,
except for what Zac points out: "One exception is that the check_locale function
just returns None when the extension is disabled, which prevents a possible
warning when the LC_CTYPE locale is not posixish."]
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/portage/portage-9999.ebuild | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/sys-apps/portage/portage-9999.ebuild
b/sys-apps/portage/portage-9999.ebuild
index 6bb5c1c1d398..23a08b5ce03e 100644
--- a/sys-apps/portage/portage-9999.ebuild
+++ b/sys-apps/portage/portage-9999.ebuild
@@ -127,12 +127,17 @@ my_src_configure() {
-Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
$(meson_use doc)
$(meson_use apidoc)
- $(meson_use native-extensions)
$(meson_use gentoo-dev)
$(meson_use ipc)
$(meson_use xattr)
)
+ if use native-extensions && [[ "${EPYTHON}" != "pypy3" ]] ; then
+ emesonargs+=( -Dnative-extensions=true )
+ else
+ emesonargs+=( -Dnative-extensions=false )
+ fi
+
if use build; then
emesonargs+=( -Drsync-verify=false )
else