Bug#865554: janus: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Jun 22 17:22:45 UTC 2017


Source: janus
Version: 0.2.3-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that janus could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb, Debian Project Leader
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/3001_reproducible_build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/3001_reproducible_build.patch	2017-06-22 18:13:22.850990924 +0100
@@ -0,0 +1,32 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-06-22
+
+--- janus-0.2.3.orig/Makefile.am
++++ janus-0.2.3/Makefile.am
+@@ -164,8 +164,14 @@ dir_target = $(directory)-$(wildcard $(d
+ dir_present = $(directory)-$(directory)
+ dir_absent = $(directory)-
+ 
++if WITH_SOURCE_DATE_EPOCH
++build_date = $(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)")
++else
++build_date = $(shell date)
++endif
++
+ version.c: FORCE | $(dir_target)
+-	date | awk 'BEGIN {} {print "const char *janus_build_git_time = \""$$0"\";"} END {} ' >> version.c
++	echo $(build_date) | awk 'BEGIN {} {print "const char *janus_build_git_time = \""$$0"\";"} END {} ' >> version.c
+ 
+ $(dir_present):
+ 	`which git` rev-parse HEAD | awk 'BEGIN {print "#include \"version.h\""} {print "const char *janus_build_git_sha = \"" $$0"\";"} END {}' > version.c
+--- janus-0.2.3.orig/configure.ac
++++ janus-0.2.3/configure.ac
+@@ -590,6 +590,7 @@ AS_IF([test "x$enable_post_processing" =
+                          ])
+       ])
+ 
++AM_CONDITIONAL([WITH_SOURCE_DATE_EPOCH], [test -n "x$SOURCE_DATE_EPOCH"])
+ AM_CONDITIONAL([ENABLE_POST_PROCESSING], [test "x$enable_post_processing" = "xyes"])
+ 
+ AC_CONFIG_FILES([
--- a/debian/patches/series	2017-06-22 17:33:33.573913385 +0100
--- b/debian/patches/series	2017-06-22 18:04:30.760210109 +0100
@@ -1,3 +1,4 @@
 1001_try_enable_docs_by_default.patch
 2001_use_snakeoil_cert.patch
 2003_use_packaged_javascript.patch
+3001_reproducible_build.patch


More information about the Pkg-voip-maintainers mailing list