From 263427c14514444a692715007429bd6dc9bc8eaa Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 11 Mar 2016 01:02:02 +0100 Subject: [PATCH] fix build failure on powerpc --- gsl-test.patch | 15 +++++++++++++++ gsl.spec | 8 +++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 gsl-test.patch diff --git a/gsl-test.patch b/gsl-test.patch new file mode 100644 index 0000000..1a4fcc5 --- /dev/null +++ b/gsl-test.patch @@ -0,0 +1,15 @@ +diff -up gsl-2.1/rstat/test.c.than gsl-2.1/rstat/test.c +diff -up gsl-2.1/test/results.c.than gsl-2.1/test/results.c +--- gsl-2.1/test/results.c.than 2016-03-10 18:08:17.013928401 -0500 ++++ gsl-2.1/test/results.c 2016-03-10 18:42:45.717980023 -0500 +@@ -131,6 +131,10 @@ gsl_test_rel (double result, double expe + { + status = -1; + } ++ else if (fabs(result-expected) < relative_error) ++ { ++ status = 0; ++ } + else if (expected != 0 ) + { + status = (fabs(result-expected)/fabs(expected) > relative_error) ; diff --git a/gsl.spec b/gsl.spec index 7c6edbd..35ef13f 100644 --- a/gsl.spec +++ b/gsl.spec @@ -1,7 +1,7 @@ Summary: The GNU Scientific Library for numerical analysis Name: gsl Version: 2.1 -Release: 3%{?dist} +Release: 4%{?dist} URL: http://www.gnu.org/software/gsl/ # info part of this package is under GFDL license # eigen/nonsymmv.c and eigen/schur.c @@ -13,6 +13,7 @@ Source: ftp://ftp.gnu.org/gnu/gsl/%{name}-%{version}.tar.gz Patch0: gsl-1.10-lib64.patch # http://lists.gnu.org/archive/html/bug-gsl/2015-12/msg00012.html Patch1: gsl-tol.patch +Patch2: gsl-test.patch BuildRequires: pkgconfig %description @@ -35,6 +36,8 @@ developing programs using the GSL (GNU Scientific Library). %setup -q %patch0 -p1 -b .lib64 %patch1 -p1 -b .tol +%patch2 -p1 -b .test + iconv -f windows-1252 -t utf-8 THANKS > THANKS.aux touch -r THANKS THANKS.aux mv THANKS.aux THANKS @@ -96,6 +99,9 @@ fi %{_mandir}/man3/*.3* %changelog +* Thu Mar 10 2016 Than Ngo - 2.1-4 +- fix build failure on powerpc + * Fri Feb 26 2016 Dan HorĂ¡k - 2.1-3 - Disable FMA also on ppc64(le) and s390(x)