SHA256
1
0
forked from pool/gmp

Accepting request 448713 from devel:libraries:c_c++

- 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.

OBS-URL: https://build.opensuse.org/request/show/448713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gmp?expand=0&rev=49
This commit is contained in:
Dominique Leuenberger 2017-01-19 09:34:45 +00:00 committed by Git OBS Bridge
commit 9df74197a8
7 changed files with 55 additions and 5 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d36e9c05df488ad630fff17edb50051d6432357f9ce04e34a09b3d818825e831
size 1943164

Binary file not shown.

31
gmp-6.1.2-conftest.patch Normal file
View File

@ -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)
{

3
gmp-6.1.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912
size 1946336

BIN
gmp-6.1.2.tar.xz.sig Normal file

Binary file not shown.

View File

@ -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

View File

@ -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"