From 05262b83886e76514cbe8791e49a8f0cd4e7a209 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 24 2020 06:09:13 +0000 Subject: import openblas-0.3.10-2.el8 --- diff --git a/SOURCES/openblas-0.3.10-lapacke-macro.patch b/SOURCES/openblas-0.3.10-lapacke-macro.patch new file mode 100644 index 0000000..cc32eb0 --- /dev/null +++ b/SOURCES/openblas-0.3.10-lapacke-macro.patch @@ -0,0 +1,13 @@ +diff --git a/lapack-netlib/LAPACKE/src/lapacke_zgesvdq.c b/lapack-netlib/LAPACKE/src/lapacke_zgesvdq.c +index f58a5c4..4928b1b 100644 +--- a/lapack-netlib/LAPACKE/src/lapacke_zgesvdq.c ++++ b/lapack-netlib/LAPACKE/src/lapacke_zgesvdq.c +@@ -71,7 +71,7 @@ lapack_int LAPACKE_zgesvdq( int matrix_layout, char joba, char jobp, + goto exit_level_0; + } + liwork = iwork_query; +- lcwork = LAPACK_C2INT(cwork_query); ++ lcwork = LAPACK_Z2INT(cwork_query); + lrwork = (lapack_int)rwork_query; + /* Allocate memory for work arrays */ + iwork = (lapack_int*)LAPACKE_malloc( sizeof(lapack_int) * liwork ); diff --git a/SPECS/openblas.spec b/SPECS/openblas.spec index 3e03bad..73e99b8 100644 --- a/SPECS/openblas.spec +++ b/SPECS/openblas.spec @@ -15,7 +15,7 @@ Name: openblas Version: 0.3.10 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An optimized BLAS library based on GotoBLAS2 Group: Development/Libraries License: BSD @@ -37,6 +37,8 @@ Patch5: openblas-0.3.10-power-optimize.patch Patch6: openblas-0.3.10-zarch-gcc-version-detection.patch # https://github.com/xianyi/OpenBLAS/pull/2672 Patch7: openblas-0.3.10-concurrency.patch +# https://github.com/Reference-LAPACK/lapack/pull/458 +Patch8: openblas-0.3.10-lapacke-macro.patch BuildRequires: gcc BuildRequires: gcc-gfortran @@ -239,6 +241,7 @@ cd OpenBLAS-%{version} %patch5 -p1 -b .power-optimize %patch6 -p1 -b .zarch-gcc-version-detection %patch7 -p1 -b .concurrency +%patch8 -p1 -b .lapacke-macro # Fix source permissions find -name \*.f -exec chmod 644 {} \; @@ -681,6 +684,10 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig %endif %changelog +* Wed Oct 21 2020 Nikola Forró - 0.3.10-2 +- Fix macro used in LAPACKE_zgesvdq + related: #1847435 + * Tue Oct 20 2020 Nikola Forró - 0.3.10-1 - Rebase to version 0.3.10 resolves: #1847435