Source: vnu
Version: 26.8.15.1+dfsg-4
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
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
`. `'` [email protected] / chris-lamb.co.uk
`-
--- 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