Package: src:tiff
Version: 4.7.0-2
Severity: serious
Tags: ftbfs trixie sid patch

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

[ please read the notes at the end ]

--------------------------------------------------------------------------------
[...]
FAIL: tiffcp-32bpp-None-jpeg.sh
===============================

 /<<PKGBUILDDIR>>/tools/tiffcp -c jpeg ./images/32bpp-None-jpeg.tiff 
o-tiffcp-32bpp-None-jpeg-YCbCr.tiff
 /<<PKGBUILDDIR>>/tools/tiffinfo -D o-tiffcp-32bpp-None-jpeg-YCbCr.tiff
TIFFOpen: o-tiffcp-32bpp-None-jpeg-YCbCr.tiff: No such file or directory.
Returned failed status 1!
FAIL tiffcp-32bpp-None-jpeg.sh (exit status: 1)

============================================================================
Testsuite summary for LibTIFF Software 4.7.0
============================================================================
# TOTAL: 107
# PASS:  106
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log for debugging.
Some test(s) failed.  Please report this to t...@lists.osgeo.org,
together with the test-suite.log file (gzipped) and your system
information.  Thanks.
============================================================================
make[4]: *** [Makefile:1226: test-suite.log] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/test'
make[3]: *** [Makefile:1361: check-TESTS] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/test'
make[2]: *** [Makefile:2175: check-am] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/test'
make[1]: *** [Makefile:579: check-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j2 check "TESTSUITEFLAGS=-j2 --verbose" VERBOSE=1 
returned exit code 2
make: *** [debian/rules:36: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202504/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:tiff, so that this is still
visible in the BTS web page for this package.

Note 1: This mode of failure also happens in the buildds:

https://buildd.debian.org/status/fetch.php?pkg=tiff&arch=s390x&ver=4.7.0-2&stamp=1743145235&raw=0

https://buildd.debian.org/status/fetch.php?pkg=tiff&arch=armhf&ver=4.7.0-2&stamp=1743145229&raw=0

Note 2: This is apparently a concurrency problem. The makefile in the "tests" 
directory
is simply not ready to be executed in parallel. The attached patch fixes the 
issue for me,
by running dh_auto_test with --max-parallel=1. On virtual machines with 2 CPUs, 
it used to
fail 40% of the time. After applying the patch, it does not seem to fail anymore
(tried 50 times for those statistics).

Note 3: You might want to forward this upstream anyway.

Thanks.
diff -Nru tiff-4.7.0/debian/changelog tiff-4.7.0/debian/changelog
--- tiff-4.7.0/debian/changelog 2025-03-28 07:08:13.000000000 +0100
+++ tiff-4.7.0/debian/changelog 2025-04-04 17:14:11.000000000 +0200
@@ -1,3 +1,10 @@
+tiff (4.7.0-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Do not run tests in parallel. Closes: #XXXXXXX.
+
+ -- Santiago Vila <sanv...@debian.org>  Fri, 04 Apr 2025 17:14:11 +0200
+
 tiff (4.7.0-2) unstable; urgency=medium
 
   * Backport upstream fix for test_directory.c not to fail on big-endian
diff -Nru tiff-4.7.0/debian/rules tiff-4.7.0/debian/rules
--- tiff-4.7.0/debian/rules     2022-12-10 10:16:36.000000000 +0100
+++ tiff-4.7.0/debian/rules     2025-04-04 17:13:40.000000000 +0200
@@ -22,6 +22,9 @@
          --enable-ld-version-script \
          --enable-docs
 
+override_dh_auto_test:
+       dh_auto_test --max-parallel=1
+
 override_dh_install:
        dh_install -X.la
        # tiffgt is in libtiff-opengl so libtiff-tools doesn't have to have

Reply via email to