From ebcadc8f7a420cc8d8b1eec6345c7d5ec03280bb Mon Sep 17 00:00:00 2001 From: Susi Lehtola Date: Sat, 29 Sep 2018 19:04:59 +0200 Subject: [PATCH] Fix segfault. --- openblas-0.3.3-tls.patch | 12 ++++++++++++ openblas.spec | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 openblas-0.3.3-tls.patch diff --git a/openblas-0.3.3-tls.patch b/openblas-0.3.3-tls.patch new file mode 100644 index 0000000..38ebefc --- /dev/null +++ b/openblas-0.3.3-tls.patch @@ -0,0 +1,12 @@ +diff -up OpenBLAS-0.3.3/Makefile.rule.tls OpenBLAS-0.3.3/Makefile.rule +--- OpenBLAS-0.3.3/Makefile.rule.tls 2018-08-31 00:07:48.000000000 +0200 ++++ OpenBLAS-0.3.3/Makefile.rule 2018-09-29 19:00:47.804678736 +0200 +@@ -113,7 +113,7 @@ USE_SIMPLE_THREADED_LEVEL3 = 1 + # thread-local storage instead of a central memory buffer in memory.c + # Note that if your system uses GLIBC, it needs to have at least glibc 2.21 + # for this to work. +-USE_TLS = 1 ++#USE_TLS = 1 + + # If you want to drive whole 64bit region by BLAS. Not all Fortran + # compiler supports this. It's safe to keep comment it out if you diff --git a/openblas.spec b/openblas.spec index 90e2a30..a4f6107 100644 --- a/openblas.spec +++ b/openblas.spec @@ -29,6 +29,8 @@ Patch1: openblas-0.2.5-libname.patch Patch2: openblas-0.2.15-constructor.patch # Supply the proper flags to the test makefile Patch3: openblas-0.3.2-tests.patch +# Fix BZ #1634060 +Patch4: openblas-0.3.3-tls.patch BuildRequires: gcc BuildRequires: gcc-gfortran @@ -250,6 +252,7 @@ cd OpenBLAS-%{version} %patch2 -p1 -b .constructor %endif %patch3 -p1 -b .tests +%patch4 -p1 -b .tls # Fix source permissions find -name \*.f -exec chmod 644 {} \; @@ -689,6 +692,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig %endif %changelog +* Sat Sep 29 2018 Susi Lehtola - 0.3.3-2 +- Fix segfault (BZ #1634060). + * Sun Sep 09 2018 Susi Lehtola - 0.3.3-1 - Update to 0.3.3.