Hello community,

here is the log from the commit of package yudit for openSUSE:Factory checked 
in at 2018-03-11 15:23:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yudit (Old)
 and      /work/SRC/openSUSE:Factory/.yudit.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yudit"

Sun Mar 11 15:23:51 2018 rev:6 rq:584495 version:2.9.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/yudit/yudit.changes      2018-03-07 
10:34:10.835554251 +0100
+++ /work/SRC/openSUSE:Factory/.yudit.new/yudit.changes 2018-03-11 
15:23:54.822094378 +0100
@@ -1,0 +2,6 @@
+Thu Mar  8 14:37:45 UTC 2018 - bwiedem...@suse.com
+
+- Add yudit-2.9.6-reproducible.patch to make build reproducible
+  (boo#1047218)
+
+-------------------------------------------------------------------

New:
----
  yudit-2.9.6-reproducible.patch

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

Other differences:
------------------
++++++ yudit.spec ++++++
--- /var/tmp/diff_new_pack.U61kpv/_old  2018-03-11 15:23:55.438072280 +0100
+++ /var/tmp/diff_new_pack.U61kpv/_new  2018-03-11 15:23:55.438072280 +0100
@@ -32,6 +32,7 @@
 Patch3:         print-preview.patch
 Patch7:         yudit-strip.patch
 Patch9:         uniprint-catch-bad_alloc-exceptions.patch
+Patch10:        yudit-2.9.6-reproducible.patch
 BuildRequires:  autoconf
 BuildRequires:  dos2unix
 BuildRequires:  fontpackages-devel
@@ -54,6 +55,7 @@
 %patch3 -p1 -b .print-preview
 %patch7
 %patch9 -p1 -b .catch-bad_alloc-exceptions
+%patch10 -p1
 for i in doc/HOWTO-baybayin.txt COPYING.TXT README.TXT 
doc/HOWTO-devanagari.txt doc/bidi/yudit.css doc/HOWTO-syntax.txt 
doc/notinstalled/cl.help
 do
     dos2unix $i

++++++ yudit-2.9.6-reproducible.patch ++++++
Date: 2017-07-20
Author: Bernhard M. Wiedemann <bwiedemann suse de>

Allow to override current date

to allow for reproducible package 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.

Index: yudit-2.9.6/mytool/Main.cpp
===================================================================
--- yudit-2.9.6.orig/mytool/Main.cpp
+++ yudit-2.9.6/mytool/Main.cpp
@@ -497,7 +497,10 @@ main (int argc, char* argv[])
   }
   else if (inputFileCount)
   {
-    time_t  tim = time(0);
+    time_t  tim;
+    char *source_date_epoch = getenv ("SOURCE_DATE_EPOCH");
+    if (source_date_epoch == NULL || (tim = (time_t)strtol (source_date_epoch, 
NULL, 10)) <= 0)
+      tim = time(0);
     struct tm* ts = localtime (&tim);
     sprintf (shortComment, "created by mytool %04d-%02d-%02d", 
       ts->tm_year+1900, ts->tm_mon+1, ts->tm_mday);


Reply via email to