diff --git a/gmp-6.1.1.tar.xz b/gmp-6.1.1.tar.xz deleted file mode 100644 index 6b98384..0000000 --- a/gmp-6.1.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d36e9c05df488ad630fff17edb50051d6432357f9ce04e34a09b3d818825e831 -size 1943164 diff --git a/gmp-6.1.1.tar.xz.sig b/gmp-6.1.1.tar.xz.sig deleted file mode 100644 index 5f49506..0000000 Binary files a/gmp-6.1.1.tar.xz.sig and /dev/null differ diff --git a/gmp-6.1.2-conftest.patch b/gmp-6.1.2-conftest.patch new file mode 100644 index 0000000..65d5868 --- /dev/null +++ b/gmp-6.1.2-conftest.patch @@ -0,0 +1,31 @@ +--- acinclude.m4.orig 2017-01-04 11:40:34.672561902 +0100 ++++ acinclude.m4 2017-01-04 11:40:42.324648573 +0100 +@@ -741,7 +741,7 @@ + long i; + for (i = 0; i < 88 + 1; i++) + a[i] = ~0L; +- r = malloc (10000 * sizeof (unsigned long)); ++ r = calloc (10000, sizeof (unsigned long)); + r2 = r; + for (i = 0; i < 528; i += 23) + { +--- configure.orig 2017-01-04 11:42:54.678147652 +0100 ++++ configure 2017-01-04 11:46:36.468659624 +0100 +@@ -6776,7 +6776,7 @@ + long i; + for (i = 0; i < 88 + 1; i++) + a[i] = ~0L; +- r = malloc (10000 * sizeof (unsigned long)); ++ r = calloc (10000, sizeof (unsigned long)); + r2 = r; + for (i = 0; i < 528; i += 23) + { +@@ -8394,7 +8394,7 @@ + long i; + for (i = 0; i < 88 + 1; i++) + a[i] = ~0L; +- r = malloc (10000 * sizeof (unsigned long)); ++ r = calloc (10000, sizeof (unsigned long)); + r2 = r; + for (i = 0; i < 528; i += 23) + { diff --git a/gmp-6.1.2.tar.xz b/gmp-6.1.2.tar.xz new file mode 100644 index 0000000..cdec5ec --- /dev/null +++ b/gmp-6.1.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912 +size 1946336 diff --git a/gmp-6.1.2.tar.xz.sig b/gmp-6.1.2.tar.xz.sig new file mode 100644 index 0000000..1d76562 Binary files /dev/null and b/gmp-6.1.2.tar.xz.sig differ diff --git a/gmp.changes b/gmp.changes index b0adc6b..396394f 100644 --- a/gmp.changes +++ b/gmp.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Wed Jan 4 08:20:17 UTC 2017 - rguenther@suse.com + +- Update to GMP 6.1.2 release. + * Mini-GMP: Fixed a division bug, which on a machine with 64-bit + unsigned long affects approximately 1 out of 2^32 divisors. + * Mini-GMP: Fix mpz_set_str crash on inputs with a large number of + leading zeros. Also stricter input validation, rejecting inputs + with no digits. + * Handle more systems which require PIC code in static libraries (e.g., + "hardened" Gentoo and Debian 9). + * Configuration for arm (-32 and -64) has been rewritten, fixing poor + code selection for many CPUs. + * Mini-GMP: Updated to the latest development version, including + new functions mpn_com and mpn_neg. +- Add gmp-6.1.2-conftest.patch to fix configure test. + ------------------------------------------------------------------- Thu Jun 30 07:34:19 UTC 2016 - mpluskal@suse.com diff --git a/gmp.spec b/gmp.spec index 83cd8b5..b3d24da 100644 --- a/gmp.spec +++ b/gmp.spec @@ -1,7 +1,7 @@ # # spec file for package gmp # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -17,7 +17,7 @@ Name: gmp -Version: 6.1.1 +Version: 6.1.2 Release: 0 Summary: The GNU MP Library License: GPL-3.0+ and LGPL-3.0+ @@ -28,6 +28,7 @@ Source1: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz.si Source2: %{name}.keyring Source3: baselibs.conf Patch0: gmp-noexec.diff +Patch1: gmp-6.1.2-conftest.patch BuildRequires: gcc-c++ BuildRequires: xz BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -68,6 +69,7 @@ huge numbers (integer and floating point). %prep %setup -q %patch0 +%patch1 %build export CFLAGS="%{optflags} -fexceptions"