Package: python-misaka
Version: 1.0.2-7
Followup-For: Bug #999406
User: [email protected]
Usertags: origin-ubuntu jammy ubuntu-patch
Control: tags -1 patch

Hi Thomas,

Regenerating the .c files found in the upstream tarball with a current
cython suffices to fix this build.  Please find attached a patch for this. 
(The package already had a build-dependency on cython3, but it was not being
used at build time.)

Upstream has significantly refactored this code in later upstream releases;
pulling a new upstream release would likely also solve this issue.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
[email protected]                                     [email protected]
diff -Nru python-misaka-1.0.2/debian/rules python-misaka-1.0.2/debian/rules
--- python-misaka-1.0.2/debian/rules    2019-11-21 23:53:00.000000000 -0800
+++ python-misaka-1.0.2/debian/rules    2021-11-17 18:14:20.000000000 -0800
@@ -6,11 +6,15 @@
 %:
        dh $@ --buildsystem=python_distutils --with python3
 
+override_dh_clean:
+       rm -f src/misaka.c
+       dh_clean
+
 override_dh_auto_clean:
        echo "Nothing to do"
 
 override_dh_auto_build:
-       echo "Do nothing..."
+       python3 setup.py compile_cython
 
 override_dh_auto_install:
        pkgos-dh_auto_install --no-py2

Reply via email to