Source: rtpengine Version: 10.4.1.3-1 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 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/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.patch 2022-06-13 18:43:46.827673372 +0100 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2022-06-13 + +--- rtpengine-10.4.1.3.orig/lib/lib.Makefile ++++ rtpengine-10.4.1.3/lib/lib.Makefile +@@ -9,7 +9,7 @@ HAVE_DPKG_PARSECHANGELOG?=$(shell which + + 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 --- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/series 2022-06-13 18:43:44.075687670 +0100 @@ -0,0 +1 @@ +reproducible-build.patch

