commit:     552dbafd02e83465ee91c03306da41ec28618179
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 17 16:52:00 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 17 16:53:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=552dbafd

dev-python/indexed_gzip: Fix build failure w/ clean command

Remove the custom "clean" command that does not implement "-a" option
as used by the old distutils-r1 code path, in order to fix the build
failure.  This is only needed temporarily, as the new code path
no longer calls it.

Closes: https://bugs.gentoo.org/838955
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild 
b/dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild
index 71ce12536dee..dff40b18267e 100644
--- a/dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild
+++ b/dev-python/indexed_gzip/indexed_gzip-1.6.13.ebuild
@@ -37,6 +37,14 @@ BDEPEND="
 
 distutils_enable_tests pytest
 
+src_prepare() {
+       # strip custom "clean" command that doesn't support "-a"
+       # https://bugs.gentoo.org/838955
+       # TODO: this can be removed once distutils-r1 stops using clean
+       sed -i -e '/cmdclass/d' setup.py || die
+       distutils-r1_src_prepare
+}
+
 src_compile() {
        if use test; then
                export INDEXED_GZIP_TESTING=1

Reply via email to