Bug#1131385: libcupsfilters: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Mar 20 19:21:34 GMT 2026


Source: libcupsfilters
Version: 2.1.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
libcupsfilters could not be built reproducibly.

This is because the testsuite generates three binaries test1284, testfilters
and testimage that get installed in the binary package... but only if 
the testsuite is run. This means that if the testsuite is skipped (i.e
via nocheck) then the package contents differ and is therefore
unreproducible.

Patch attached that deletes these particular binaries so they are never
shipped.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-03-20 12:02:21.979525192 -0700
--- b/debian/rules	2026-03-20 12:15:47.958291022 -0700
@@ -39,6 +39,8 @@
 	# Install test programs for autopkgtest, binary package
 	# libcupsfilters-tests
 	install -d -m 755 debian/libcupsfilters-tests/usr/bin
+	# skip files generated during the test run to ensure package is reproducible
+	rm -f .libs/test1284 .libs/testfilters .libs/testimage
 	install -m 755 .libs/test* debian/libcupsfilters-tests/usr/bin/
 	install -D -m 644 cupsfilters/image.pgm debian/libcupsfilters-tests/usr/share/libcupsfilters-tests/image.pgm
 	install -D -m 644 cupsfilters/image.pgm debian/libcupsfilters-tests/usr/share/libcupsfilters-tests/image.ppm


More information about the Reproducible-bugs mailing list