diff options
| author | James Le Cuirot <chewi@gentoo.org> | 2022-12-26 22:54:40 +0000 |
|---|---|---|
| committer | James Le Cuirot <chewi@gentoo.org> | 2022-12-29 21:30:53 +0000 |
| commit | 8c8c938e158a9e10f1c5a4280c16e435e354122e (patch) | |
| tree | 9a6f140a7c1dfd4f845d059d5e816dcd618c789f /dev-lang/python/python-3.9.16.ebuild | |
| parent | 87781021536d273db1163d9fd68e636f645e5f62 (diff) | |
| download | gentoo-8c8c938e158a9e10f1c5a4280c16e435e354122e.tar.gz gentoo-8c8c938e158a9e10f1c5a4280c16e435e354122e.tar.bz2 gentoo-8c8c938e158a9e10f1c5a4280c16e435e354122e.zip | |
dev-lang/python: Fix cross-compiling for prefixed systems
Cross-compiling Python involves doing a native build first. The prefix profile
prefixifies setup.py, but this has been done before the native build when it
needs to be done after. Handle this in the ebuild with hprefixify instead of
with sed in the profile.
Also drop some other obsolete Python prefix hacks from the profile.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-lang/python/python-3.9.16.ebuild')
| -rw-r--r-- | dev-lang/python/python-3.9.16.ebuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dev-lang/python/python-3.9.16.ebuild b/dev-lang/python/python-3.9.16.ebuild index e6b279292564..f6dbbd4312df 100644 --- a/dev-lang/python/python-3.9.16.ebuild +++ b/dev-lang/python/python-3.9.16.ebuild @@ -5,7 +5,7 @@ EAPI="7" WANT_LIBTOOL="none" inherit autotools check-reqs flag-o-matic multiprocessing pax-utils -inherit python-utils-r1 toolchain-funcs verify-sig +inherit prefix python-utils-r1 toolchain-funcs verify-sig MY_PV=${PV/_rc/rc} MY_P="Python-${MY_PV%_p*}" @@ -293,6 +293,7 @@ src_configure() { append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw fi + hprefixify setup.py econf "${myeconfargs[@]}" if grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then |
