From 2de7b91adaf6f6ae5931f0aa2b566500942d02f8 Mon Sep 17 00:00:00 2001 From: Frantisek Kluknavsky Date: Fri, 12 Dec 2014 22:00:00 +0100 Subject: [PATCH 1/4] added limboverflow.patch, rhbz#1171701, rhbz#1171710, there was one less limb allocated in strtofr --- mpfr.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mpfr.spec b/mpfr.spec index 9e083fe..4afcf63 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: A C library for multiple-precision floating-point computations Name: mpfr Version: 3.1.2 -Release: 6%{?dist} +Release: 7%{?dist} URL: http://www.mpfr.org/ Source0: http://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.xz # GFDL (mpfr.texi, mpfr.info and fdl.texi) @@ -12,6 +12,8 @@ Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: gmp >= 4.2.1 +Patch0: limboverflow.patch + %description The MPFR library is a C library for multiple-precision floating-point computations with "correct rounding". The MPFR is efficient and @@ -37,6 +39,7 @@ install the mpfr package. %prep %setup -q +%patch0 -p1 -b .limboverflow %build %configure --disable-assert --disable-static @@ -84,6 +87,9 @@ fi %{_infodir}/mpfr.info* %changelog +* Fri Dec 12 2014 Frantisek Kluknavsky - 3.1.2-7 +- added limboverflow.patch, rhbz#1171701, rhbz#1171710, there was one less limb allocated in strtofr + * Sun Aug 17 2014 Fedora Release Engineering - 3.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild From b416e2d2106b19301e1c9442381fb061b8327eb9 Mon Sep 17 00:00:00 2001 From: Frantisek Kluknavsky Date: Fri, 12 Dec 2014 22:04:07 +0100 Subject: [PATCH 2/4] added limboverflow.patch, rhbz#1171701, rhbz#1171710, there was one less limb allocated in strtofr --- limboverflow.patch | 15 +++++++++++++++ mpfr.spec | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 limboverflow.patch diff --git a/limboverflow.patch b/limboverflow.patch new file mode 100644 index 0000000..95232c5 --- /dev/null +++ b/limboverflow.patch @@ -0,0 +1,15 @@ +--- mpfr-3.1.2-a/src/strtofr.c 2013-03-13 15:37:32.000000000 +0000 ++++ mpfr-3.1.2-b/src/strtofr.c 2014-12-04 01:41:57.287791246 +0000 +@@ -473,8 +473,10 @@ + /* prec bits corresponds to ysize limbs */ + ysize_bits = ysize * GMP_NUMB_BITS; + /* and to ysize_bits >= prec > MPFR_PREC (x) bits */ +- y = MPFR_TMP_LIMBS_ALLOC (2 * ysize + 1); +- y += ysize; /* y has (ysize+1) allocated limbs */ ++ /* we need to allocate one more limb to work around bug ++ https://gmplib.org/list-archives/gmp-bugs/2013-December/003267.html */ ++ y = MPFR_TMP_LIMBS_ALLOC (2 * ysize + 2); ++ y += ysize; /* y has (ysize+2) allocated limbs */ + + /* pstr_size is the number of characters we read in pstr->mant + to have at least ysize full limbs. diff --git a/mpfr.spec b/mpfr.spec index 4afcf63..6a4a0b5 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: A C library for multiple-precision floating-point computations Name: mpfr Version: 3.1.2 -Release: 7%{?dist} +Release: 8%{?dist} URL: http://www.mpfr.org/ Source0: http://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.xz # GFDL (mpfr.texi, mpfr.info and fdl.texi) @@ -87,7 +87,7 @@ fi %{_infodir}/mpfr.info* %changelog -* Fri Dec 12 2014 Frantisek Kluknavsky - 3.1.2-7 +* Fri Dec 12 2014 Frantisek Kluknavsky - 3.1.2-8 - added limboverflow.patch, rhbz#1171701, rhbz#1171710, there was one less limb allocated in strtofr * Sun Aug 17 2014 Fedora Release Engineering - 3.1.2-6 From b838695ad704d81e6f89721d9b75713fa59f6678 Mon Sep 17 00:00:00 2001 From: Jaromir Capik Date: Wed, 10 Jun 2015 20:30:14 +0200 Subject: [PATCH 3/4] Adding STAGE1 bootstrap recipe --- STAGE1-mpfr | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 STAGE1-mpfr diff --git a/STAGE1-mpfr b/STAGE1-mpfr new file mode 100644 index 0000000..f69a67a --- /dev/null +++ b/STAGE1-mpfr @@ -0,0 +1,7 @@ +L=$1 +srpm $L +mcd $BUILDDIR/t-$L +$SRC/${L}-*/configure $TCONFIGARGS +make $J +make $J install DESTDIR=${ROOTFS} +fix_la $L From d303db3167febc43da09d366ee597198a6d54c5e Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 17 Jun 2015 21:07:16 +0000 Subject: [PATCH 4/4] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- mpfr.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpfr.spec b/mpfr.spec index 6a4a0b5..d402ee3 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: A C library for multiple-precision floating-point computations Name: mpfr Version: 3.1.2 -Release: 8%{?dist} +Release: 9%{?dist} URL: http://www.mpfr.org/ Source0: http://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.xz # GFDL (mpfr.texi, mpfr.info and fdl.texi) @@ -87,6 +87,9 @@ fi %{_infodir}/mpfr.info* %changelog +* Wed Jun 17 2015 Fedora Release Engineering - 3.1.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Fri Dec 12 2014 Frantisek Kluknavsky - 3.1.2-8 - added limboverflow.patch, rhbz#1171701, rhbz#1171710, there was one less limb allocated in strtofr