[Python-modules-team] Bug#999781: pythonmagick: Misbuild when multiple supported python versions present

Steve Langasek steve.langasek at canonical.com
Tue Nov 16 16:23:47 GMT 2021


Package: pythonmagick
Version: 0.9.19-6
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch

Dear maintainers,

Python 3.10 has been introduced in Ubuntu, and as part of the rebuild of
packages against 3.10 the pythonmagick autopkgtests have shown that the
package is misbuilt, because the python3.9 extension has been incorrectly
linked against libboost-python310 instead of libboost-python39.

An additional per-version configure option fixes the broken linkage.  Please
see attached.

-- 
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/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru pythonmagick-0.9.19/debian/rules pythonmagick-0.9.19/debian/rules
--- pythonmagick-0.9.19/debian/rules	2020-02-27 12:38:04.000000000 -0800
+++ pythonmagick-0.9.19/debian/rules	2021-11-15 16:50:55.000000000 -0800
@@ -10,7 +10,8 @@
 export PYBUILD_CLEAN_ARGS=dh_auto_clean $d;
 export PYBUILD_CONFIGURE_ARGS=dh_auto_configure $d -- \
 	--disable-silent-rules --disable-static \
-	--with-python-min-version={version.major}.{version.minor}
+	--with-python-min-version={version.major}.{version.minor} \
+	--with-boost-python=boost_python{version.major}{version.minor}
 export PYBUILD_BUILD_ARGS=dh_auto_build $d
 export PYBUILD_INSTALL_ARGS=dh_auto_install $d --destdir="{destdir}"
 export PYBUILD_TEST_ARGS=dh_auto_test $d


More information about the Python-modules-team mailing list