Hello community, here is the log from the commit of package epic for openSUSE:Factory checked in at 2018-03-19 23:38:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/epic (Old) and /work/SRC/openSUSE:Factory/.epic.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "epic" Mon Mar 19 23:38:33 2018 rev:18 rq:588329 version:2.10.6 Changes: -------- --- /work/SRC/openSUSE:Factory/epic/epic.changes 2018-01-01 22:30:50.931770550 +0100 +++ /work/SRC/openSUSE:Factory/.epic.new/epic.changes 2018-03-19 23:38:34.848914832 +0100 @@ -1,0 +2,6 @@ +Wed Mar 14 09:43:03 UTC 2018 - [email protected] + +- Add reproducible.patch to make build reproducible + (boo#1084909, boo#1047218) + +------------------------------------------------------------------- New: ---- reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ epic.spec ++++++ --- /var/tmp/diff_new_pack.XUhIBa/_old 2018-03-19 23:38:35.592887994 +0100 +++ /var/tmp/diff_new_pack.XUhIBa/_new 2018-03-19 23:38:35.592887994 +0100 @@ -34,6 +34,8 @@ Source0: epic4-%version.tar.gz Source1: epic4-help-20070412.tar.bz2 Patch: epic4-config.patch +# PATCH-FIX-UPSTREAM +Patch1: reproducible.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -50,6 +52,7 @@ %prep %setup -q -n epic4-%version -a 1 %patch -p1 +%patch1 -p1 %build CFLAGS="$RPM_OPT_FLAGS -O2 -Wall -fno-strict-aliasing" ./configure \ ++++++ reproducible.patch ++++++ commit 5b01b19fae8bc3fc6c3f27080a9337ddbaf8c619 Author: Bernhard M. Wiedemann <[email protected]> Date: Mon Mar 12 11:14:20 2018 +0100 Allow to not store build host and user and use __DATE__ and __TIME__ macros which are overridable in gcc in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good. Note: this slightly changes the date format in the compile_info string diff --git a/source/info.c.sh.in b/source/info.c.sh.in index c7ff969..6df87b8 100644 --- a/source/info.c.sh.in +++ b/source/info.c.sh.in @@ -6,11 +6,10 @@ info_c_sum=`cksum @srcdir@/info.c.sh` comp_host=`uname -n` comp_user=$LOGNAME -comp_time=`date | \ -awk '{if (NF == 6) \ - { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ -else \ - { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` +if [ -n "$SOURCE_DATE_EPOCH" ] ; then + comp_host=reproducible + comp_user=reproducible +fi # Dump the C file... cat > info.c << __E__O__F__ @@ -27,8 +26,8 @@ cat > info.c << __E__O__F__ const char *compile_user = "$comp_user"; const char *compile_host = "$comp_host"; -const char *compile_time = "$comp_time"; +const char *compile_time = __DATE__ " at " __TIME__; const char *info_c_sum = "$info_c_sum"; -const char *compile_info = "Compiled by " USER "@$comp_host on $comp_time"; +const char *compile_info = "Compiled by " USER "@$comp_host on " __DATE__ " at " __TIME__; __E__O__F__
