Source: prometheus-pushgateway Version: 0.2.0+ds-1 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps hostname X-Debbugs-Cc: [email protected]
Hi, While working on the "reproducible builds" effort [0], we have noticed that prometheus-pushgateway could not be built reproducibly. The attached patch removes timestamps and hostname capturing from the build system. Once applied, prometheus-pushgateway can be built reproducibly in our reproducible toolchain. [0] https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/rules 2015-08-31 23:15:37.024708105 +0100 --- b/debian/rules 2015-08-31 23:21:42.003911505 +0100 @@ -11,8 +11,8 @@ REV := $(DEBVERS) BRANCH := debian/sid USER := [email protected] -HOSTNAME := $(shell hostname -f) -BUILD_DATE := $(shell date +%Y%m%d-%H:%M:%S) +HOSTNAME := debian +BUILD_DATE := $(shell date --utc --date="$(shell dpkg-parsechangelog -SDate)" +%Y%m%d-%H:%M:%S) BUILDFLAGS := -ldflags \ " -X main.buildVersion $(VERSION)\ -X main.buildRev $(REV)\

