Hello community,

here is the log from the commit of package chasen for openSUSE:Factory checked 
in at 2017-11-10 14:58:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/chasen (Old)
 and      /work/SRC/openSUSE:Factory/.chasen.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "chasen"

Fri Nov 10 14:58:01 2017 rev:22 rq:540228 version:2.4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/chasen/chasen.changes    2012-06-05 
15:29:53.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.chasen.new/chasen.changes       2017-11-10 
14:58:18.478102013 +0100
@@ -1,0 +2,6 @@
+Wed Nov  8 21:22:00 UTC 2017 - [email protected]
+
+- Add chasen-initialize-memory.patch to make ipadic build
+  reproducibly (boo#1061219)
+
+-------------------------------------------------------------------

New:
----
  chasen-initialize-memory.patch

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

Other differences:
------------------
++++++ chasen.spec ++++++
--- /var/tmp/diff_new_pack.B0W2iq/_old  2017-11-10 14:58:20.622024464 +0100
+++ /var/tmp/diff_new_pack.B0W2iq/_new  2017-11-10 14:58:20.622024464 +0100
@@ -30,6 +30,8 @@
 Source0:        %{name}-%{version}.tar.gz
 Patch1:         chasen-decls.diff
 Patch2:         chasen244-secfix.diff
+# PATCH-FIX-UPSTREAM
+Patch3:         chasen-initialize-memory.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Summary:        Japanese Morphological Analysis System
 # Summary(ja): 形態素解析システム 茶筌
@@ -147,6 +149,7 @@
 %setup -q
 %patch1
 %patch2 -p1
+%patch3 -p1
 
 %build
 autoreconf --force --install

++++++ chasen-initialize-memory.patch ++++++
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2017-11-08

Problem: when building the ipadic package it differed for every build
because its chadic.dat contains uninitialized memory
from the da_dat_t structure's padding bytes

Solution: initilize memory (including padding added by compilers)
before use

Index: chasen-2.4.4/mkchadic/dumpdic.c
===================================================================
--- chasen-2.4.4.orig/mkchadic/dumpdic.c
+++ chasen-2.4.4/mkchadic/dumpdic.c
@@ -45,6 +45,7 @@ dump_dat(lexicon_t *lex, FILE *datfile,
     long index;
     da_dat_t dat;
 
+    memset(&dat, 0, sizeof(dat));
     index = ftell(datfile);
     dat.stem_len = lex->stem_len;
     dat.reading_len = lex->reading_len;
@@ -137,6 +138,7 @@ dump_dic(lexicon_t *entries, FILE *outpu
     da_lex_t lex;
     long compound = NO_COMPOUND;
 
+    memset(&lex, 0, sizeof(lex));
     if (entries[1].pos)
        compound = dump_compound(entries, lexfile, datfile);
 

Reply via email to