Source: 389-admin
Version: 1.1.38-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that 389-admin could not be built reproducibly.
The attached patch fixes locale-specific timestamps from the build
system. Once applied, 389-admin can be built reproducibly in our
reproducible toolchain.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/debian/rules b/debian/rules
index 273b989..cf1f840 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ LDFLAGS += -L/usr/lib/$(DEB_HOST_MULTIARCH)/nss
# Deterministic "build number". Format is defined in ./buildnum.pl
BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
-BUILDNUM := $(shell date --date="$(BUILD_DATE)" +%Y.%j.%H%M)
+BUILDNUM := $(shell date --utc --date="$(BUILD_DATE)" +%Y.%j.%H%M)
override_dh_auto_configure:
dh_auto_configure -- \