Source: tinymux Version: 2.10.1.13-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that tinymux could not be built reproducibly as it includes the current build time. Patch attached that uses SOURCE_DATE_EPOCH [1] [0] https://reproducible-builds.org/ [1] https://reproducible-builds.org/specs/source-date-epoch/ Regards, -- ,''`. : :' : Chris Lamb, Debian Project Leader `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproduciblebuild.diff 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproduciblebuild.diff 2017-07-02 21:59:04.605714234 +0100 @@ -0,0 +1,24 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2017-07-02 + +--- tinymux-2.10.1.13.orig/src/Makefile.in ++++ tinymux-2.10.1.13/src/Makefile.in +@@ -120,11 +120,16 @@ LIBMUX_BASE_OBJ = libmux.o + MUX_LIBS = @MUX_LIBS@ + DL_LIB = @DL_LIB@ + ++MUX_BUILD_DATE = `date` ++ifdef SOURCE_DATE_EPOCH ++ MUX_BUILD_DATE = $(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)") ++endif ++ + # Version number routines + # + VER_SRC = version.cpp + VER_OBJ = version.o +-VER_FLG = -DMUX_BUILD_DATE="\"`date`\"" \ ++VER_FLG = -DMUX_BUILD_DATE="\"$(MUX_BUILD_DATE)\"" \ + -DMUX_BUILD_NUM="\"`sh ./buildnum.sh`\"" + + # ===================== CONFIGURATION SECTION ==================== --- a/debian/patches/series 2017-07-02 21:31:54.259658638 +0100 --- b/debian/patches/series 2017-07-02 21:51:48.335120591 +0100 @@ -1 +1,2 @@ cppflags.diff +reproduciblebuild.diff