Bug#1122221: php-dompdf: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Dec 8 22:23:08 GMT 2025


Source: php-dompdf
Version: 3.1.0+dfsg-1
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
php-dompdf could not be built reproducibly.

This is because testsuite generates a series of .json files, but does
not remove them after and they get shipped in the binary package. This
means that if nocheck is specified, then the package does not contain
these files.

If these files are needed in the binary package (eg. for autopkgtests
or for any other reason), then the packaging will need rejigging.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-12-08 14:04:19.950720918 -0800
--- b/debian/rules	2025-12-08 14:20:51.077909348 -0800
@@ -48,6 +48,7 @@
 	phpunit --no-coverage  --do-not-cache-result --bootstrap tests/autoload.php
 	# Dompdf test requires installed-fonts.dist.json in the installed paths
 	phpunit --no-coverage  --do-not-cache-result --bootstrap tests/autoload.php debian/tests/CpdfTest.php
+	rm lib/fonts/*fm.json
 
 override_dh_installchangelogs:
 	dh_installchangelogs debian/upstream/changelog


More information about the Reproducible-bugs mailing list