From 4b1a551b94dd50752ca6ba27b4b2720468540f71 Mon Sep 17 00:00:00 2001 From: mengwenhua Date: Thu, 5 Jan 2023 17:11:42 +0800 Subject: [PATCH] fix in rstat/test for PPC64 Signed-off-by: mengwenhua --- ...ort-0001-fix-in-rstat-test-for-PPC64.patch | 66 +++++++++++++++++++ gsl.spec | 10 ++- 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 backport-0001-fix-in-rstat-test-for-PPC64.patch diff --git a/backport-0001-fix-in-rstat-test-for-PPC64.patch b/backport-0001-fix-in-rstat-test-for-PPC64.patch new file mode 100644 index 0000000..95b5f11 --- /dev/null +++ b/backport-0001-fix-in-rstat-test-for-PPC64.patch @@ -0,0 +1,66 @@ +From aba70acbdb8d1f37edce1ab125646f8f513eb19a Mon Sep 17 00:00:00 2001 +From: Patrick Alken +Date: Tue, 20 Jun 2017 02:20:37 -0600 +Subject: [PATCH] fix in rstat/test for PPC64 + +--- + HACKING | 3 +++ + configure.ac | 2 +- + rstat/test.c | 6 +++--- + 3 files changed, 7 insertions(+), 4 deletions(-) + +diff --git a/HACKING b/HACKING +index 12b78805..ebadc571 100644 +--- a/HACKING ++++ b/HACKING +@@ -261,6 +261,9 @@ na.digest@na-net.ornl.gov or freshmeat.net + # Commit new html tree + $ cvs commit + ++ # Tag for version X.Y ++ $ cvs tag release-X-Y ++ + ### Old instructions + + * edit doc/gsl-ref.texi and make sure copyright years are current +diff --git a/configure.ac b/configure.ac +index a60f5467..4ba11492 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1,6 +1,6 @@ + dnl Process this file with autoconf to produce a configure script. + +-AC_INIT([gsl],[2.4]) ++AC_INIT([gsl],[2.4+]) + AC_CONFIG_SRCDIR(gsl_math.h) + + AM_INIT_AUTOMAKE([gnu]) +diff --git a/rstat/test.c b/rstat/test.c +index 3b977592..23d7b416 100644 +--- a/rstat/test.c ++++ b/rstat/test.c +@@ -127,7 +127,7 @@ main() + { + const size_t N = 2000000; + double *data = random_data(N, r); +- double data2[] = { 4.0, 7.0, 13.0, 16.0 }; ++ double data2[] = { 4.0, 7.0, 13.0, 16.0, -5.0 }; + size_t i; + + test_basic(2, data, tol1); +@@ -139,10 +139,10 @@ main() + test_basic(1500000, data, tol1); + test_basic(2000000, data, tol1); + +- for (i = 0; i < 4; ++i) ++ for (i = 0; i < 5; ++i) + data2[i] += 1.0e9; + +- test_basic(4, data2, tol1); ++ test_basic(5, data2, tol1); + + free(data); + } +-- +2.37.3.windows.1 + diff --git a/gsl.spec b/gsl.spec index 2dcc714..b75dc95 100644 --- a/gsl.spec +++ b/gsl.spec @@ -1,6 +1,6 @@ Name: gsl Version: 2.4 -Release: 9 +Release: 10 Summary: The GNU Scientific Library for numerical analysis URL: http://www.gnu.org/software/gsl/ License: GPLv3 and GFDL and BSD @@ -8,6 +8,8 @@ Source: ftp://ftp.gnu.org/gnu/gsl/%{name}-%{version}.tar.gz Patch0: gsl-test.patch +Patch6000: backport-0001-fix-in-rstat-test-for-PPC64.patch + BuildRequires: gcc pkgconfig %description @@ -90,5 +92,11 @@ fi %{_mandir}/man3/*.3* %changelog +* Thu Jan 5 2023 mengwenhua - 2.4-10 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix in rstat/test for PPC64 + * Fri Feb 14 2020 fengbing - 2.4-9 - Package init -- Gitee