Work around an apparent inflooping bug in MPFR on 32-bit systems.
This commit is contained in:
parent
9597a590c1
commit
13ec952edf
|
@ -0,0 +1,11 @@
|
|||
--- a/test/test_gmpy2_math.txt
|
||||
+++ b/test/test_gmpy2_math.txt
|
||||
@@ -233,8 +233,6 @@ TypeError: factorial() requires non-nega
|
||||
mpfr('1.2146304367025329e+205')
|
||||
>>> gmpy2.factorial(123456)
|
||||
mpfr('2.6040699049291379e+574964')
|
||||
->>> gmpy2.factorial(123456789)
|
||||
-mpfr('inf')
|
||||
>>> gmpy2.factorial(1234567899999999999999)
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in <module>
|
|
@ -9,6 +9,8 @@ Summary: Python interface to GMP, MPFR, and MPC
|
|||
License: LGPLv3+
|
||||
URL: https://pypi.python.org/pypi/gmpy2
|
||||
Source0: https://github.com/aleaxit/gmpy/archive/%{srcname}-%{version}%{?prerelease}.tar.gz
|
||||
# Work around an apparent inflooping bug in MPFR on 32-bit systems
|
||||
Patch0: %{name}-factorial-32bit.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gmp-devel
|
||||
|
@ -42,7 +44,10 @@ Provides: bundled(jquery)
|
|||
%{common_desc}
|
||||
|
||||
%prep
|
||||
%autosetup -n gmpy-%{srcname}-%{version}%{?prerelease}
|
||||
%autosetup -N -n gmpy-%{srcname}-%{version}%{?prerelease}
|
||||
%if 0%{__isa_bits} == 32
|
||||
%patch0 -p1
|
||||
%endif
|
||||
|
||||
# Update the sphinx theme name
|
||||
sed -i "s/'default'/'classic'/" docs/conf.py
|
||||
|
|
Loading…
Reference in New Issue