Hello community, here is the log from the commit of package gf2x for openSUSE:Factory checked in at 2015-06-30 10:16:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gf2x (Old) and /work/SRC/openSUSE:Factory/.gf2x.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gf2x" Changes: -------- --- /work/SRC/openSUSE:Factory/gf2x/gf2x.changes 2012-12-05 13:52:06.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.gf2x.new/gf2x.changes 2015-06-30 10:16:33.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Jun 26 08:55:11 UTC 2015 - [email protected] + +- Disable SSE2 on x86 because it is not necessarily present +- Add gf2x-memset.diff + +------------------------------------------------------------------- New: ---- gf2x-memset.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gf2x.spec ++++++ --- /var/tmp/diff_new_pack.SBdZQ6/_old 2015-06-30 10:16:33.000000000 +0200 +++ /var/tmp/diff_new_pack.SBdZQ6/_new 2015-06-30 10:16:33.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package gf2x # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,17 @@ # - Name: gf2x %define lname libgf2x1 Version: 1.1 Release: 0 -Group: Productivity/Scientific/Math Summary: Library for multiplication over the GF(2) field License: GPL-2.0+ -URL: https://gforge.inria.fr/projects/gf2x/ +Group: Productivity/Scientific/Math +Url: https://gforge.inria.fr/projects/gf2x/ Source: https://gforge.inria.fr/frs/download.php/30873/%name-%version.tar.gz +Patch1: gf2x-memset.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -54,10 +54,16 @@ %prep %setup -q +%patch -P 1 -p1 %build -# PCLMUL may not be available on all machines -%configure --disable-static --disable-pclmul +# SSE2 may not be available on all x86_32 machines. +# PCLMUL may not be available on all machines. +%configure --disable-static \ +%ifarch %ix86 + --disable-sse2 \ +%endif + --disable-pclmul make %{?_smp_mflags}; %check ++++++ gf2x-memset.diff ++++++ From: Jan Engelhardt <[email protected]> Date: 2015-06-26 10:35:59.446493341 +0200 build: resolve compiler warning gf2x.c:82:24: warning: 'sizeof' on array function parameter 'p' will return size of 'struct gf2x_mul_pool_s *' [-Wsizeof-array-argument] memset(p, 0, sizeof(p)); --- gf2x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: gf2x-1.1/gf2x.c =================================================================== --- gf2x-1.1.orig/gf2x.c +++ gf2x-1.1/gf2x.c @@ -79,7 +79,7 @@ static gf2x_mul_pool_t global_pool; void gf2x_mul_pool_init(gf2x_mul_pool_t p) { - memset(p, 0, sizeof(p)); + memset(p, 0, sizeof(*p)); } void gf2x_mul_pool_clear(gf2x_mul_pool_t p)
