Hello community,

here is the log from the commit of package sphinxbase for openSUSE:Factory 
checked in at 2019-03-04 09:22:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sphinxbase (Old)
 and      /work/SRC/openSUSE:Factory/.sphinxbase.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sphinxbase"

Mon Mar  4 09:22:30 2019 rev:3 rq:680770 version:0.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/sphinxbase/sphinxbase.changes    2019-02-26 
22:22:17.294068560 +0100
+++ /work/SRC/openSUSE:Factory/.sphinxbase.new.28833/sphinxbase.changes 
2019-03-04 09:22:33.812577354 +0100
@@ -1,0 +2,11 @@
+Fri Mar  1 19:16:29 UTC 2019 - Antonio Larrosa <[email protected]>
+
+- Add workaround-gcc-issue-on-i586.patch to circumvent
+  boo#1127564 while it's fixed in gcc
+
+-------------------------------------------------------------------
+Wed Feb 27 10:33:58 UTC 2019 - Antonio Larrosa <[email protected]>
+
+- Add %check section to run tests
+
+-------------------------------------------------------------------

New:
----
  workaround-gcc-issue-on-i586.patch

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

Other differences:
------------------
++++++ sphinxbase.spec ++++++
--- /var/tmp/diff_new_pack.KFvvG2/_old  2019-03-04 09:22:34.560577220 +0100
+++ /var/tmp/diff_new_pack.KFvvG2/_new  2019-03-04 09:22:34.564577219 +0100
@@ -32,6 +32,8 @@
 Patch2:         sphinxbase-largefile.patch
 # PATCH-FIX-UPSTREAM initialize a variable
 Patch3:         sphinxbase-uninit.patch
+# PATCH-FIX-UPSTREAM boo#1127564
+Patch4:         workaround-gcc-issue-on-i586.patch
 BuildRequires:  alsa-devel
 BuildRequires:  bison
 BuildRequires:  doxygen
@@ -92,6 +94,9 @@
 %patch1
 %patch2
 %patch3
+%ifarch i586
+%patch4 -p1
+%endif
 # It has to be regenerated by cython
 rm python/sphinxbase.c
 sed -ie "s,\#\!/usr/bin/env perl,#!/usr/bin/perl," 
src/sphinx_lmtools/sphinx_lm_sort
@@ -113,6 +118,11 @@
     ln -s %{_sysconfdir}/alternatives/$binary %{buildroot}%{_bindir}/$binary
 done
 
+%ifarch x86_64 i586
+%check
+make check
+%endif
+
 %post
 update-alternatives --install %{_bindir}/sphinx_pitch sphinx_pitch 
%{_bindir}/sphinx_pitch-%{version} 10 \
   --slave %{_bindir}/sphinx_cepview sphinx_cepview 
%{_bindir}/sphinx_cepview-%{version} \

++++++ workaround-gcc-issue-on-i586.patch ++++++
From: Antonio Larrosa <[email protected]>
Subject: Workaround a gcc issue on i586

This is a workaround to circumvent
https://bugzilla.opensuse.org/show_bug.cgi?id=1127564

Index: sphinxbase-0.8/src/libsphinxbase/util/logmath.c
===================================================================
--- sphinxbase-0.8.orig/src/libsphinxbase/util/logmath.c
+++ sphinxbase-0.8/src/libsphinxbase/util/logmath.c
@@ -449,7 +449,9 @@ logmath_log(logmath_t *lmath, float64 p)
     if (p <= 0) {
         return lmath->zero;
     }
-    return (int)(log(p) * lmath->inv_log_of_base) >> lmath->t.shift;
+    double g1 = log(p);
+    double g3 = g1 * lmath->inv_log_of_base;
+    return (int)g3 >> lmath->t.shift;
 }
 
 float64
Index: sphinxbase-0.8/include/sphinxbase/logmath.h
===================================================================
--- sphinxbase-0.8.orig/include/sphinxbase/logmath.h
+++ sphinxbase-0.8/include/sphinxbase/logmath.h
@@ -197,7 +197,7 @@ int logmath_add(logmath_t *lmath, int lo
  * Convert linear floating point number to integer log in base B.
  */
 SPHINXBASE_EXPORT
-int logmath_log(logmath_t *lmath, float64 p);
+int logmath_log(logmath_t *lmath, float64 p) __attribute__((optimize("-O0")));
 
 /**
  * Convert integer log in base B to linear floating point.

Reply via email to