commit:     115f92066a228a599800d54b7f2cec768ea3bc9f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 29 01:12:35 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 29 01:13:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=115f9206

dev-libs/libkdumpfile: drop Python bindings

The Python bindings in libkdumpfile itself are deprecated in favour
of a separate CFFI set of bindings, but it turns out drgn doesn't
even use the bindings at all, so we can drop these deprecated
ones which couldn't be built in PEP517 mode.

Closes: https://bugs.gentoo.org/938584
Fixes: 5fa70534e895c7a9b14bfca589fd862711a5cdff
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...e-0.5.4.ebuild => libkdumpfile-0.5.4-r1.ebuild} | 28 ++++++----------------
 1 file changed, 7 insertions(+), 21 deletions(-)

diff --git a/dev-libs/libkdumpfile/libkdumpfile-0.5.4.ebuild 
b/dev-libs/libkdumpfile/libkdumpfile-0.5.4-r1.ebuild
similarity index 58%
rename from dev-libs/libkdumpfile/libkdumpfile-0.5.4.ebuild
rename to dev-libs/libkdumpfile/libkdumpfile-0.5.4-r1.ebuild
index fe48a9f877fc..a0f045ef6f41 100644
--- a/dev-libs/libkdumpfile/libkdumpfile-0.5.4.ebuild
+++ b/dev-libs/libkdumpfile/libkdumpfile-0.5.4-r1.ebuild
@@ -3,8 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{10..13} )
-inherit autotools python-r1
+inherit autotools
 
 DESCRIPTION="Kernel coredump file access"
 HOMEPAGE="https://github.com/ptesarik/libkdumpfile";
@@ -14,10 +13,8 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="lzo snappy zlib zstd"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 DEPEND="
-       ${PYTHON_DEPS}
        lzo? ( dev-libs/lzo )
        snappy? ( app-arch/snappy:= )
        zlib? ( sys-libs/zlib )
@@ -40,32 +37,21 @@ src_prepare() {
 }
 
 src_configure() {
-       # We could make Python optional in future as libkdumpfile's
-       # builtin Python bindings appear deprecated in favour of another
-       # CFFI-based approach, but given we're adding libkdumpfile for
-       # dev-debug/drgn right now which uses *these*, let's not bother.
-       local ECONF_SOURCE=${S}
        local myeconfargs=(
+               # The Python bindings within libkdumpfile are deprecated
+               # and don't work w/ PEP517. There's a new CFFI bindings
+               # project we can use if anyone asks for them.
+               --without-python
                $(use_with lzo lzo2)
                $(use_with snappy)
                $(use_with zlib)
                $(use_with zstd libzstd)
        )
 
-       python_foreach_impl run_in_build_dir econf "${myeconfargs[@]}"
-}
-
-src_compile() {
-       python_foreach_impl run_in_build_dir default
-}
-
-src_test() {
-       python_foreach_impl run_in_build_dir default
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {
-       python_foreach_impl run_in_build_dir default
-       python_foreach_impl python_optimize
-       einstalldocs
+       default
        find "${D}" -name '*.la' -delete || die
 }

Reply via email to