summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSergey Kosukhin <skosukhin@gmail.com>2018-07-11 15:52:21 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2018-07-11 08:52:21 -0500
commit6479ec6defcf9bfc206da93615817307331608c1 (patch)
tree7f2c6d474692a86f34e4d848510f9bd9a6d800b8 /var
parent391d89a8534afd3fdd06b385542a02d1feae6ee1 (diff)
downloadspack-6479ec6defcf9bfc206da93615817307331608c1.tar.gz
spack-6479ec6defcf9bfc206da93615817307331608c1.tar.bz2
spack-6479ec6defcf9bfc206da93615817307331608c1.tar.xz
spack-6479ec6defcf9bfc206da93615817307331608c1.zip
Patch for 'netlib-lapack'. (#8677)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/netlib-lapack/package.py5
-rw-r--r--var/spack/repos/builtin/packages/netlib-lapack/undefined_declarations.patch26
2 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/netlib-lapack/package.py b/var/spack/repos/builtin/packages/netlib-lapack/package.py
index 28e6b6374f..7293b6c0f4 100644
--- a/var/spack/repos/builtin/packages/netlib-lapack/package.py
+++ b/var/spack/repos/builtin/packages/netlib-lapack/package.py
@@ -60,6 +60,11 @@ class NetlibLapack(CMakePackage):
patch('ibm-xl.patch', when='@3.7: %xl')
patch('ibm-xl.patch', when='@3.7: %xl_r')
+ # https://github.com/Reference-LAPACK/lapack/issues/228
+ # TODO: update 'when' once the version of lapack
+ # containing the fix is released and added to Spack.
+ patch('undefined_declarations.patch', when='@3.8.0:')
+
# virtual dependency
provides('blas', when='~external-blas')
provides('lapack')
diff --git a/var/spack/repos/builtin/packages/netlib-lapack/undefined_declarations.patch b/var/spack/repos/builtin/packages/netlib-lapack/undefined_declarations.patch
new file mode 100644
index 0000000000..9dac2562f7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/netlib-lapack/undefined_declarations.patch
@@ -0,0 +1,26 @@
+diff --git a/SRC/dsytrf_aa_2stage.f b/SRC/dsytrf_aa_2stage.f
+index 2991305..f5f06cc 100644
+--- a/SRC/dsytrf_aa_2stage.f
++++ b/SRC/dsytrf_aa_2stage.f
+@@ -191,7 +191,7 @@
+ EXTERNAL LSAME, ILAENV
+ * ..
+ * .. External Subroutines ..
+- EXTERNAL XERBLA, DCOPY, DLACGV, DLACPY,
++ EXTERNAL XERBLA, DCOPY, DLACPY,
+ $ DLASET, DGBTRF, DGEMM, DGETRF,
+ $ DSYGST, DSWAP, DTRSM
+ * ..
+diff --git a/SRC/ssytrf_aa_2stage.f b/SRC/ssytrf_aa_2stage.f
+index be6809d..a929749 100644
+--- a/SRC/ssytrf_aa_2stage.f
++++ b/SRC/ssytrf_aa_2stage.f
+@@ -191,7 +191,7 @@
+ EXTERNAL LSAME, ILAENV
+ * ..
+ * .. External Subroutines ..
+- EXTERNAL XERBLA, SCOPY, SLACGV, SLACPY,
++ EXTERNAL XERBLA, SCOPY, SLACPY,
+ $ SLASET, SGBTRF, SGEMM, SGETRF,
+ $ SSYGST, SSWAP, STRSM
+ * ..