From 2d63dd22aa4b7ceb9633e81a25e1f46d371958b1 Mon Sep 17 00:00:00 2001 From: Bo Ren Date: Sat, 22 Jul 2023 11:20:52 +0800 Subject: [PATCH] change patch id to resovle build failure Signed-off-by: Bo Ren --- openblas.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/openblas.spec b/openblas.spec index f4c6552..f8777d2 100644 --- a/openblas.spec +++ b/openblas.spec @@ -4,7 +4,7 @@ %global lapackver 3.9.1 %ifnarch loongarch64 -# Use strip from gcc-toolset-11 +# Use strip from gcc-toolset-12 %global __strip "scl enable gcc-toolset-12 -- strip" %endif @@ -39,10 +39,11 @@ Patch3: openblas-0.3.15-noopt.patch Patch4: openblas-0.3.15-asmflags.patch # Remove optimization pragmas on ppc64le Patch5: openblas-0.3.15-power-optimize.patch +Patch6: openblas-CVE-2021-4048.patch + # Add optimization for LoongArch -Patch6: openblas-0.3.15-opt-loongarch64.patch +Patch1000: openblas-0.3.15-opt-loongarch64.patch -Patch6: openblas-CVE-2021-4048.patch %ifarch loongarch64 BuildRequires: gcc @@ -254,7 +255,7 @@ cd OpenBLAS-%{version} %patch4 -p1 -b .asmflags %patch5 -p1 -b .power-optimize %patch6 -p1 -b .cve-2021-4048 -%patch7 -p1 -b .opt-loongarch64 +%patch1000 -p1 -b .opt-loongarch64 # Fix source permissions find -name \*.f -exec chmod 644 {} \; -- Gitee