From 7dd89ce67cc535cd637ec91e415b661125bcf361 Mon Sep 17 00:00:00 2001 From: Susi Lehtola Date: Tue, 11 Feb 2020 02:48:35 +0100 Subject: [PATCH] Fix typo in s390x code. --- openblas-0.3.8-zarch.patch | 22 ++++++++++++++++++++++ openblas.spec | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 openblas-0.3.8-zarch.patch diff --git a/openblas-0.3.8-zarch.patch b/openblas-0.3.8-zarch.patch new file mode 100644 index 0000000..002cbf9 --- /dev/null +++ b/openblas-0.3.8-zarch.patch @@ -0,0 +1,22 @@ +From dff173e50e01d94e0741e4b4eaa1cf0aa01cf320 Mon Sep 17 00:00:00 2001 +From: Susi Lehtola +Date: Tue, 11 Feb 2020 14:46:30 +1300 +Subject: [PATCH] Fix typo in dynamic_zarch.c + +--- + driver/others/dynamic_zarch.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/driver/others/dynamic_zarch.c b/driver/others/dynamic_zarch.c +index 1206bf870..896e65bb4 100644 +--- a/driver/others/dynamic_zarch.c ++++ b/driver/others/dynamic_zarch.c +@@ -31,7 +31,7 @@ char* gotoblas_corename(void) { + } + + // __builtin_cpu_is is not supported by zarch +-static gotolabs_t* get_coretype(void) { ++static gotoblas_t* get_coretype(void) { + FILE* infile; + char buffer[512], * p; + diff --git a/openblas.spec b/openblas.spec index 9d6f368..a25c3b0 100644 --- a/openblas.spec +++ b/openblas.spec @@ -29,6 +29,9 @@ Patch2: openblas-0.2.15-constructor.patch # Supply the proper flags to the test makefile Patch3: openblas-0.3.7-tests.patch +# https://patch-diff.githubusercontent.com/raw/xianyi/OpenBLAS/pull/2405.patch +Patch4: openblas-0.3.8-zarch.patch + BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran @@ -241,6 +244,7 @@ cd OpenBLAS-%{version} %patch2 -p1 -b .constructor %endif %patch3 -p1 -b .tests +%patch4 -p1 -b .zarch # Fix source permissions find -name \*.f -exec chmod 644 {} \;