Package: nlopt
Version: 2.7.1-1
Followup-For: Bug #1001363
User: ubuntu-de...@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/
slanga...@ubuntu.com                                     vor...@debian.org
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
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to