Hello community, here is the log from the commit of package djvulibre for openSUSE:Factory checked in at 2019-10-22 15:42:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/djvulibre (Old) and /work/SRC/openSUSE:Factory/.djvulibre.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "djvulibre" Tue Oct 22 15:42:43 2019 rev:38 rq:741427 version:3.5.27 Changes: -------- --- /work/SRC/openSUSE:Factory/djvulibre/djvulibre.changes 2019-09-07 12:34:40.969663848 +0200 +++ /work/SRC/openSUSE:Factory/.djvulibre.new.2352/djvulibre.changes 2019-10-22 15:42:45.461532904 +0200 @@ -1,0 +2,8 @@ +Fri Oct 18 08:33:20 UTC 2019 - [email protected] + +- do not segfault when mmx enabled [bsc#1154401] +- added patches + https://sourceforge.net/p/djvu/bugs/293/ + + djvulibre-always-assume-that-cpuid-works-on-x86_64.patch + +------------------------------------------------------------------- New: ---- djvulibre-always-assume-that-cpuid-works-on-x86_64.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ djvulibre.spec ++++++ --- /var/tmp/diff_new_pack.CjW1DJ/_old 2019-10-22 15:42:45.957533469 +0200 +++ /var/tmp/diff_new_pack.CjW1DJ/_new 2019-10-22 15:42:45.961533474 +0200 @@ -39,6 +39,8 @@ Patch4: djvulibre-CVE-2019-15142.patch # do not segfault when libtiff encounters corrupted TIFF (upstream issue #295) Patch5: djvulibre-invalid-tiff.patch +# https://sourceforge.net/p/djvu/bugs/293/ +Patch6: djvulibre-always-assume-that-cpuid-works-on-x86_64.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme @@ -91,7 +93,14 @@ This package contains the documentation. %prep -%autosetup -p1 +%setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 %build %configure \ ++++++ djvulibre-always-assume-that-cpuid-works-on-x86_64.patch ++++++ --- a/libdjvu/MMX.cpp +++ b/libdjvu/MMX.cpp @@ -169,16 +169,10 @@ #endif #if defined(MMX) && defined(__GNUC__) && defined(__x86_64__) // Detection of MMX for GCC - __asm__ volatile (// Check that CR0:EM is clear - "xorl %%edx,%%edx\n\t" - "smsw %%ax\n\t" - "andl $4,%%eax\n\t" - "jnz 1f\n\t" - // Execute CPUID + __asm__ volatile (// Execute CPUID "movl $1,%%eax\n\t" - "cpuid\n" - // Finish - "1:\tmovl %%edx, %0" + "cpuid\n\t" + "movl %%edx, %0" : "=m" (cpuflags) : : "eax","ebx","ecx","edx"); #endif
