[pkg-php-pear] Bug#1134236: php-dompdf: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Apr 17 21:15:33 BST 2026


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

This is because the testsuite generates a DejaVuSans.ufm.json file, which
means that if the tests are not run (ie. if 'nocheck' is specified), then
the binary package contains different contents.

I've attached a patch that deletes this file after the tests are run. If,
however, the file is needed in the binary package, then the packaging will
need to be rejigged to always generate this file regardless of nocheck.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-04-17 19:48:32.432251399 +0000
--- b/debian/rules	2026-04-17 19:59:01.206684136 +0000
@@ -35,6 +35,9 @@
 	phpunit --no-coverage --display-deprecations --display-phpunit-deprecations --do-not-cache-result --bootstrap tests/autoload.php
 	# Dompdf test requires installed-fonts.dist.json in the installed paths
 	phpunit --no-coverage --display-deprecations --display-phpunit-deprecations --do-not-cache-result --bootstrap tests/autoload.php debian/tests/CpdfTest.php
+	# Tests generate this file; delete it so that building with nocheck
+	# does not result in a different binary
+	rm -rfv ./lib/fonts/DejaVuSans.ufm.json
 
 override_dh_installchangelogs:
 	dh_installchangelogs debian/upstream/changelog


More information about the pkg-php-pear mailing list