Hello community,

here is the log from the commit of package cfengine for openSUSE:Factory 
checked in at 2017-07-04 09:10:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cfengine (Old)
 and      /work/SRC/openSUSE:Factory/.cfengine.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cfengine"

Tue Jul  4 09:10:54 2017 rev:69 rq:507759 version:3.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/cfengine/cfengine.changes        2017-06-29 
15:16:24.066148104 +0200
+++ /work/SRC/openSUSE:Factory/.cfengine.new/cfengine.changes   2017-07-04 
09:11:21.982407607 +0200
@@ -1,0 +2,7 @@
+Sun Jul  2 20:41:57 UTC 2017 - bwiedem...@suse.com
+
+- Use gzip -n to not add timestamps to .gz header
+- Add reproducible.patch to override man page date
+  to make package build fully reproducible
+
+-------------------------------------------------------------------

New:
----
  reproducible.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cfengine.spec ++++++
--- /var/tmp/diff_new_pack.0elmg2/_old  2017-07-04 09:11:24.434062843 +0200
+++ /var/tmp/diff_new_pack.0elmg2/_new  2017-07-04 09:11:24.438062280 +0200
@@ -64,6 +64,8 @@
 # PATCH-FEATURE-UPSTREAM better /etc/SuSE-release parsing, upstream #5423
 # kkae...@suse.de
 Patch2:         0002-Simplify-and-fix-parsing-of-etc-SuSE-release-fixes-i.patch
+# PATCH-FIX-UPSTREAM https://github.com/cfengine/core/pull/2881
+Patch3:         reproducible.patch
 
 # SLE 11 or RHEL5 autoconf does not support AM_SUBST_NOTMAKE, kkae...@suse.de
 Patch10:        make_home_dir_for_tests.patch
@@ -170,6 +172,7 @@
 %setup -q -n %{srcname}
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 %if 0%{?suse_version} <= 1110
 %patch99 -p1
 %endif
@@ -284,7 +287,7 @@
 for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-runagent 
cf-serverd
 do
   LD_LIBRARY_PATH=%{buildroot}%{_libdir}/%{name} %{buildroot}%{_sbindir}/$i -M 
> %{buildroot}%{_mandir}/man8/$i.8
-  gzip %{buildroot}%{_mandir}/man8/$i.8
+  gzip -n9 %{buildroot}%{_mandir}/man8/$i.8
 done
 
 # Firewall

++++++ reproducible.patch ++++++
commit fb4e70f9be4b37ab40505118553caf5a5b7c7daf
Author: Bernhard M. Wiedemann <bwiedem...@suse.de>
Date:   Sun Jul 2 11:17:14 2017 +0200

    libutils/man.c: allow to override build time
    
    in order to enable reproducible builds.
    
    See https://reproducible-builds.org/ for why this is good
    and https://reproducible-builds.org/specs/source-date-epoch/
    for the definition of this variable.

diff --git a/libutils/man.c b/libutils/man.c
index ef2cd1a28..ba46ba895 100644
--- a/libutils/man.c
+++ b/libutils/man.c
@@ -206,6 +206,11 @@ void ManPageWrite(Writer *out, const char *program, time_t 
last_modified,
                   const struct option options[],
                   const char *const option_hints[], bool accepts_file_argument)
 {
+    time_t overridetime;
+    char *source_date_epoch = getenv("SOURCE_DATE_EPOCH");
+    if (source_date_epoch != NULL &&
+        (overridetime = (time_t)strtoll(source_date_epoch, NULL, 10)) > 0)
+        last_modified = overridetime;
     WriteCopyright(out);
     WriteHeader(out, program, last_modified);
     WriteName(out, program, short_description);

Reply via email to