Bug#1001363: nlopt: needs update for python3.10 in supported versions: No module named '_nlopt'

Steve Langasek steve.langasek at canonical.com
Sat Dec 11 01:29:49 GMT 2021


Package: nlopt
Version: 2.7.1-1
Followup-For: Bug #1001363
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
Control: tags -1 patch

Hello,

This failure is because nlopt has an override to try to install the
python3.10 extension, but it installs it to the wrong path.  The attached
patch should get it to the right path so that the python interpreter can
find it and load it.

Cheers,
-- 
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 nlopt-2.7.1/debian/rules nlopt-2.7.1/debian/rules
--- nlopt-2.7.1/debian/rules	2021-12-08 03:23:51.000000000 -0800
+++ nlopt-2.7.1/debian/rules	2021-12-10 17:02:18.000000000 -0800
@@ -36,7 +36,7 @@
 	distdir=debian/python3-nlopt/usr/lib/python3/dist-packages; \
 	mkdir -p $$distdir; \
 	for py3alt in $(PY3_ALT); do \
-		py3short=`echo $${py3alt} | sed "s/\.//g"`; \
+		py3short=`echo $${py3alt} | sed "s/\.//g"`-`dpkg-architecture -qDEB_HOST_MULTIARCH`; \
 		cp $(BUILDDIR)-python$${py3alt}/src/swig/_nlopt.so $$distdir/_nlopt.cpython-$${py3short}.so; \
 		chrpath -d $$distdir/_nlopt.cpython-$${py3short}.so; \
 	done


More information about the debian-science-maintainers mailing list