From aecf4cbb22c1b62693a8af798c06fe97814a1456 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Jul 18 2017 11:57:31 +0000 Subject: Add patch to fix fix istream error logic --- diff --git a/arprec-2.2.19-fix_istream_logic.patch b/arprec-2.2.19-fix_istream_logic.patch new file mode 100644 index 0000000..105371c --- /dev/null +++ b/arprec-2.2.19-fix_istream_logic.patch @@ -0,0 +1,13 @@ +Index: arprec/src/read.cpp +=================================================================== +--- a/arprec/src/read.cpp ++++ b/arprec/src/read.cpp +@@ -125,7 +125,7 @@ bool mp_real::read(istream &s) { + construct(expn_str, str, digit_str); + + s.flags(old_flags); +- return !s.fail(); ++ return !s.bad(); + } + + bool mp_real::read(const string &s) { diff --git a/arprec.spec b/arprec.spec index d92e1fc..e02ddda 100644 --- a/arprec.spec +++ b/arprec.spec @@ -13,7 +13,7 @@ Name: arprec Version: 2.2.19 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Software package for performing arbitrary precision arithmetic License: BSD @@ -21,6 +21,8 @@ URL: http://crd.lbl.gov/~dhbailey/mpdist Source0: %{url}/%{name}-%{version}.tar.gz Source1: %{url}/BSD-LBNL-License.doc +Patch0: arprec-2.2.19-fix_istream_logic.patch + BuildRequires: catdoc BuildRequires: chrpath BuildRequires: gcc-gfortran @@ -368,7 +370,7 @@ popd # that one test. Let me know if you have any problems in running your codes # -- I don't think you will. # DHB -%make_build -C %{name} check ||: +%make_build -C %{name} check %post -p /sbin/ldconfig @@ -418,6 +420,9 @@ popd %changelog +* Tue Jul 18 2017 Björn Esser - 2.2.19-2 +- Add patch to fix fix istream error logic + * Tue Jul 18 2017 Björn Esser - 2.2.19-1 - New upstream release (rhbz#1472013)