Article View: linux.debian.bugs.rc
Article #3184Bug#1154004: python3-imath: Python module not correctly installed into package
From: Stuart Prescott
Date: Sun, 15 Nov 2026 01:30
Date: Sun, 15 Nov 2026 01:30
54 lines
5779 bytes
5779 bytes
Package: python3-imath
Version: 3.2.3-5
Severity: serious
X-Debbugs-Cc: stuart@debian.org
Dear Maintainer,
The build system for python3-imath goes to a lot of effort to build the
package for each supported Python interpreter which is great... but it
doesn't correctly copy the files into the .deb and so the package is not
actually available for each interpreter. Worse, the .so tagged for
Python 3.14 actually links against Python 3.15.
Additionally, there are no autopkgtest tests and so this error is not
found by ci.d.n.
The current package in sid contains:
python3-imath: /usr/lib/python3/dist-packages/imath.cpython-314-x86_64-linux-gnu.so
python3-imath: /usr/lib/python3/dist-packages/imathnumpy.cpython-314-x86_64-linux-gnu.so
python3-imath: /usr/lib/x86_64-linux-gnu/libPyImath.so
python3-imath: /usr/lib/x86_64-linux-gnu/libPyImath_Python3_14-3_2.so
python3-imath: /usr/lib/x86_64-linux-gnu/libPyImath_Python3_14-3_2.so.30
python3-imath: /usr/lib/x86_64-linux-gnu/libPyImath_Python3_14-3_2.so.30.3.2.3
python3-imath: /usr/lib/x86_64-linux-gnu/libPyImath_Python3_15-3_2.so
python3-imath: /usr/lib/x86_64-linux-gnu/libPyImath_Python3_15-3_2.so.30
python3-imath: /usr/lib/x86_64-linux-gnu/libPyImath_Python3_15-3_2.so.30.3.2.3
As you can see, the libraries in /usr/lib/{triple}/ exist for both
Python 3.14 and Python 3.15. However, the .so to be imported by Python
directly only exists in the package for Python 3.14.
Looking at the build log, we see that the install steps for both Python
3.14 and 3.15 write the .so to the same location in the d/tmp staging
area:
dh_auto_install -a -O-Bbuild
[...]
-- Installing: /build/reproducible-path/imath-3.2.3/debian/tmp/usr/lib/python3/dist-packages/imath.so
set -e; for v in 3.15; do \
dh_auto_install --builddirectory=build-py$v ; \
done
[...]
-- Installing: /build/reproducible-path/imath-3.2.3/debian/tmp/usr/lib/python3/dist-packages/imath.so
and this is later renamed into a interpreter-specific path:
dh_python3 -a -O-Bbuild
I: dh_python3 fs:545: renaming imath.so to imath.cpython-314-x86_64-linux-gnu.so
I: dh_python3 fs:545: renaming imathnumpy.so to imathnumpy.cpython-314-x86_64-linux-gnu.so
dh_python3 has concluded that it is for Python 3.14 because it is in the
default dist-packages, but this .so is actually built for Python 3.15
(because it is the second one that was copied into the tree in the above
sequence):
$ ldd imath.cpython-314-x86_64-linux-gnu.so | grep -i python
libPyImath_Python3_15-3_2.so.30
libboost_python315.so.1.92.0
The solution is normally to get the .so installed into a separate
dist-packages tree for each Python-interpreter
(d/tmp/usr/lib/python3.YY/dist-packages) then
dh_python3 will merge the two trees and separately tag the .so
files with the different origins.
(And, as per #1035257, please add autopkgtests at least for the Python
component, so that errors like this can be caught earlier. Even the most
simple $pyver -c 'import imath' would have caught this with a
SystemError)
regards
Stuart
Technical Details
Message-ID:
<NZxe9-bWAQ-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Stuart Prescott <stuart@debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1154004: python3-imath: Python module not correctly installed into package Date: Sun, 15 Nov 2026 02:30:01 +0100 Message-ID: <NZxe9-bWAQ-1@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Sun Nov 15 01:25:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.9 Reply-To: Stuart Prescott <stuart@debian.org>, 1154004@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: stuart@debian.org, pkg-phototools-devel@lists.alioth.debian.org X-Debian-Pr-Message: report 1154004 X-Debian-Pr-Package: python3-imath X-Debian-Pr-Source: imath Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Mailer: reportbug 13.2.0 X-Crossassassin-Score: 2 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/838249 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 54 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 15 Nov 2026 12:23:26 +1100 X-Original-Message-ID: <179470580660.2451329.15472314560382647270.reportbug@trochilus.nanonanonano.net>