Bug#1155594: vnu: please make the build reproducible [timestamps]
Chris Lamb
lamby at debian.org
Fri Nov 27 22:40:17 GMT 2026
Source: vnu
Version: 26.8.15.1+dfsg-4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
vnu could not be built reproducibly.
The testsuite updates the timestamps of various files and directories,
so we need to set the timestamps to ensure a determinstic .deb regardless
of whether the testuite is run or not. Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2026-11-27 21:37:54.361076537 +0000
--- b/debian/rules 2026-11-27 22:39:43.000458970 +0000
@@ -177,5 +177,12 @@
# vnu-client. Doesn't depend on any java library, except java itself.
jh_depends -jheadless -pvnu-client
+execute_before_dh_strip_nondeterminism:
+ # The testsuite updates the timestamps of various files and
+ # directories, so set timestamps to ensure a determinstic .deb
+ # regardless of whether the testuite is run or not.
+ find debian/vnu-common -print0 | \
+ xargs -0r touch --no-dereference --date=@$(SOURCE_DATE_EPOCH)
+
make_messages:
python3 ./checker.py --verbose $(BUILD_ARGS) make-messages
More information about the pkg-java-maintainers
mailing list