Accepting request 765643 from home:AndreasStieger:branches:devel:libraries:c_c++

GMP 6.2.0

OBS-URL: https://build.opensuse.org/request/show/765643
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gmp?expand=0&rev=78
This commit is contained in:
Richard Biener 2020-01-20 07:56:31 +00:00 committed by Git OBS Bridge
parent 0728fa7fbf
commit bdc1b892a8
9 changed files with 28 additions and 77 deletions

View File

@ -1,13 +0,0 @@
diff --git a/configure b/configure
index 12ddffd..a7890ed 100755
--- a/configure
+++ b/configure
@@ -24563,7 +24563,7 @@ struct foo foo = {
{ '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
};
EOF
-gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
+gmp_compile="$CC $CFLAGS $CPPFLAGS -fno-lto -c conftest.c >&5 2>&1"
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
(eval $gmp_compile) 2>&5
ac_status=$?

View File

@ -1,31 +0,0 @@
--- 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)
{

View File

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

Binary file not shown.

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

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

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

Binary file not shown.

View File

@ -1,13 +0,0 @@
Index: mpn/m4-ccas
===================================================================
--- mpn/m4-ccas.orig
+++ mpn/m4-ccas
@@ -100,6 +100,8 @@ fi
echo "$M4 $DEFS $ASM >$TMP"
$M4 $DEFS $ASM >$TMP || exit
+echo '.section .note.GNU-stack,"",%progbits' >> $TMP
+
echo "$CC"
$CC || exit

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Sun Jan 19 21:19:41 UTC 2020 - Andreas Stieger <andreas.stieger@gmx.de>
- GMP 6.2.0:
* New C++ functions factorial, primorial and fibonacci for mpz_class
* Functions to detect primality now substitute the first 24 Miller-Rabin
iterations with the BPSW test
* Mini-GMP: new functions mpz_2fac_ui and mpz_mfac_uiui.
* Mini-GMP: mpz_sizeinbase, mpz_get_str, and mpz_set_str now support bases up
to 62.
* various bug fixes
* Major speedup on AMD Ryzen and Epyc, IBM POWER9, 64-bit ARM CPUs
from assembly code
* Speedups from reimplementations
- drop patches:
* gmp-6.1.2-conftest.patch, upstream
* gmp-noexec.diff, upstream
* floating-point-format-no-lto.patch, similar change
-------------------------------------------------------------------
Sun Jul 7 21:41:52 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package gmp
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 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,23 +17,19 @@
Name: gmp
Version: 6.1.2
Version: 6.2.0
Release: 0
Summary: A library for calculating huge numbers
License: GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Development/Libraries/C and C++
Url: https://gmplib.org/
URL: https://gmplib.org/
Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz
Source1: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring
Source3: baselibs.conf
Patch0: gmp-noexec.diff
Patch1: gmp-6.1.2-conftest.patch
Patch2: floating-point-format-no-lto.patch
BuildRequires: gcc-c++
BuildRequires: m4
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
%description
GMP is a library for arbitrary precision arithmetic, operating on
@ -74,9 +70,6 @@ huge numbers (integer and floating point).
%prep
%setup -q
%patch0
%patch1
%patch2 -p1
%build
export CFLAGS="%{optflags} -fexceptions"
@ -90,17 +83,15 @@ make %{?_smp_mflags}
make %{?_smp_mflags} check
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%make_install
rm %{buildroot}%{_libdir}/libgmp.la
rm %{buildroot}%{_libdir}/libgmpxx.la
rm %{buildroot}%{_libdir}/libgmpxx.a
%post -n libgmp10 -p /sbin/ldconfig
%post -n libgmpxx4 -p /sbin/ldconfig
%postun -n libgmp10 -p /sbin/ldconfig
%postun -n libgmpxx4 -p /sbin/ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
@ -108,16 +99,13 @@ rm %{buildroot}%{_libdir}/libgmpxx.a
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%files -n libgmp10
%defattr(-,root,root)
%license COPYING*
%{_libdir}/libgmp.so.10*
%files -n libgmpxx4
%defattr(-,root,root)
%{_libdir}/libgmpxx.so.4*
%files devel
%defattr(-,root,root)
%doc AUTHORS README NEWS
%doc demos
%{_infodir}/gmp.info*%{ext_info}
@ -126,5 +114,6 @@ rm %{buildroot}%{_libdir}/libgmpxx.a
%{_libdir}/libgmpxx.so
%{_includedir}/gmp.h
%{_includedir}/gmpxx.h
%{_libdir}/pkgconfig/*.pc
%changelog