From 821fbf7644eeef91253238b6ff3b84aa424a65b7 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 14 Jun 2022 00:47:45 +0200 Subject: [PATCH] make the build reproducible https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012766 > Whilst working on the Reproducible Builds effort [0] we noticed that > rtpengine could not be built reproducibly. > > Whilst it did use the value from debian/changelog, the RELEASE_DATE > variable changed due to underlying system timezone setting. A patch > is attached that passes -u/--utc to the call to date(1). > > [0] https://reproducible-builds.org/ --- lib/lib.Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib.Makefile b/lib/lib.Makefile index 8df39317a..bd90aa5d8 100644 --- a/lib/lib.Makefile +++ b/lib/lib.Makefile @@ -9,7 +9,7 @@ HAVE_DPKG_PARSECHANGELOG?=$(shell which dpkg-parsechangelog 2>/dev/null) ifeq ($(RELEASE_DATE),) ifneq ($(HAVE_DPKG_PARSECHANGELOG),) - RELEASE_DATE=$(shell date -d "@$$(dpkg-parsechangelog -l$(RTPENGINE_ROOT_DIR)/debian/changelog -STimestamp)" '+%F') + RELEASE_DATE=$(shell date -u -d "@$$(dpkg-parsechangelog -l$(RTPENGINE_ROOT_DIR)/debian/changelog -STimestamp)" '+%F') endif ifeq ($(RELEASE_DATE),) RELEASE_DATE=undefined