Hello community,

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

Package is "LiE"

Mon Oct  2 16:54:54 2017 rev:5 rq:530381 version:2.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/LiE/LiE.changes  2017-03-20 17:09:30.318357267 
+0100
+++ /work/SRC/openSUSE:Factory/.LiE.new/LiE.changes     2017-10-02 
16:55:01.299503182 +0200
@@ -1,0 +2,6 @@
+Mon Oct  2 04:14:37 UTC 2017 - [email protected]
+
+- Add LiE-2.2.2-memory-init.patch to make build more reproducible
+  (boo#1061220)
+
+-------------------------------------------------------------------

New:
----
  LiE-2.2.2-memory-init.patch

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

Other differences:
------------------
++++++ LiE.spec ++++++
--- /var/tmp/diff_new_pack.c3Fjvd/_old  2017-10-02 16:55:02.287364523 +0200
+++ /var/tmp/diff_new_pack.c3Fjvd/_new  2017-10-02 16:55:02.291363962 +0200
@@ -28,6 +28,8 @@
 Source1:        COPYING
 Source2:        %{name}-rpmlintrc
 Patch1:         LiE-2.2.2-date-time.patch
+# PATCH-FIX-UPSTREAM bmwiedemann -- initialize memory (boo#1061220)
+Patch2:         LiE-2.2.2-memory-init.patch
 BuildRequires:  bison
 BuildRequires:  gcc-c++
 BuildRequires:  ghostscript
@@ -54,6 +56,7 @@
 %prep
 %setup -q -n %{name}
 %patch1 -p1
+%patch2 -p1
 
 %build
 # parallel build fails

++++++ LiE-2.2.2-memory-init.patch ++++++
Tried upstreaming via https://github.com/davidsd/lie/pull/1
and emailing Marc van Leeuwen

Avoid writing uninitialized stack memory into INFO.ind and LEARN.ind
(probably required because compilers do padding on structs)
to make package builds reproducible

Index: LiE/util/infoind.c
===================================================================
--- LiE.orig/util/infoind.c
+++ LiE/util/infoind.c
@@ -70,6 +70,7 @@ int main(void)
   FILE *indexpt,*infopt;
   info_index_tp info; /* current info record */
 
+  memset(&info, 0, sizeof(info));
   strcpy(indexfil,INDEXFIL);
   indexpt=fopen(indexfil,writemode);
   if (indexpt==NULL)
Index: LiE/util/learnind.c
===================================================================
--- LiE.orig/util/learnind.c
+++ LiE/util/learnind.c
@@ -24,6 +24,7 @@ int main(void)
   FILE *indexpt,*learnpt;
   learn_index_tp learn;
 
+  memset(&learn, 0, sizeof(learn));
   strcpy(indexfil,INDEXFIL); strcpy(learnfil,LEARNFIL);
   learnpt=fopen(learnfil,readmode);
   if (learnpt==NULL)

Reply via email to