[Debichem-devel] Bug#1122312: python-pymzml: FTBFS with the nocheck build profile
Santiago Vila
sanvila at debian.org
Tue Dec 23 00:50:42 GMT 2025
tags 1122312 patch
thanks
On Tue, Dec 09, 2025 at 11:12:40PM +0000, Santiago Vila wrote:
> # Move the test.dat.igzip file erroneously installed to dist-packages/.
> mv debian/python3-pymzml/usr/lib/python3.13/dist-packages/test.dat.igzip \
> debian/python3-pymzml/usr/lib/python3.13/dist-packages/pymzml
> mv: cannot stat 'debian/python3-pymzml/usr/lib/python3.13/dist-packages/test.dat.igzip': No such file or directory
> make[1]: *** [debian/rules:39: override_dh_auto_install] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:10: binary] Error 2
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
> --------------------------------------------------------------------------------
Hi.
This fails when using the nocheck build profile because the file
"test.dat.igzip" is not generated when DEB_BUILD_OPTIONS=nocheck,
so there is nothing to move and the "mv" command fails.
However, this suggests that the file is only used for testing but not
for normal operation of this python module.
If that's the case, I would just omit the file from the package,
as in the attached patch.
Note also that the old code only worked ok when python3.13 was the
only python flavor. Now that we have 3.13 and 3.14, we can see
that the code was not future-proof. The attached patch uses a wildcard
and should work regardless of available python flavors.
Thanks.
-------------- next part --------------
commit b7304cd24ef9def437008fa4d7960d1920641870
Author: Santiago Vila <sanvila at debian.org>
Date: Mon Dec 22 23:30:00 2025 +0100
Do not install test.dat.igzip. Closes: #1122312.
diff --git a/debian/rules b/debian/rules
index 94bc366..75e6dad 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,8 +35,5 @@ override_dh_auto_build:
override_dh_auto_install:
dh_auto_install -O--buildsystem=pybuild
#
- # Move the test.dat.igzip file erroneously installed to dist-packages/.
- mv debian/python3-pymzml/usr/lib/python3.13/dist-packages/test.dat.igzip \
- debian/python3-pymzml/usr/lib/python3.13/dist-packages/pymzml
-
-
+ # File test.dat.igzip is for testing and should not be included in the package itself
+ rm -f debian/python3-pymzml/usr/lib/python3*/dist-packages/test.dat.igzip
More information about the Debichem-devel
mailing list