Hi,
I tracked the issue down to
https://sources.debian.org/patches/libprelude/5.2.0-4/025-Fix-PyIOBase_Type.patch
Although the patch changes the content of
bindings/python/libpreludecpp-python.i, swig is never called during the
build to recreate _prelude.cxx.
The final package therefore acts as if the patch had never been there in
the first place.
The attached patch for debian/rules ensures that the file gets
regenerated. After applying the patch, the module can be imported.
Due to the difference between the swig version initially used to build
_prelude.cxx (4.0.1) and the one in Debian testing/sid (4.0.2), the diff
output between both versions of _prelude.cxx is quite long (730 lines).
However, I have been running with the patch for 24h and haven't seen any
problem so far.
Best regards,
François
--- debian/rules.bak 2021-08-25 20:53:39.000000000 +0200
+++ debian/rules 2021-11-02 21:19:43.102093735 +0100
@@ -53,7 +53,7 @@
ln -s /usr/share/gtk-doc/html/libprelude $(CURDIR)/debian/tmp/usr/share/doc/libprelude-doc/html
install-python%:
- cd bindings/python && python$* setup.py install --root $(CURDIR)/debian/tmp
+ cd bindings/python && make _prelude.cxx && python$* setup.py install --root $(CURDIR)/debian/tmp
%:
dh $@ $(DH_ADDONS)