summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-03-23 19:40:16 +0100
committerDenis Davydov <davydden@gmail.com>2016-03-23 22:09:39 +0100
commit4e5dfc8b18ed30e261fe6b6dd014c8991937934d (patch)
treed2278fba732a0dcc4581b78e9a9b3da07383528c /var
parentcc582dd4b435ba06dc140b1ca96b688871e36abb (diff)
downloadspack-4e5dfc8b18ed30e261fe6b6dd014c8991937934d.tar.gz
spack-4e5dfc8b18ed30e261fe6b6dd014c8991937934d.tar.bz2
spack-4e5dfc8b18ed30e261fe6b6dd014c8991937934d.tar.xz
spack-4e5dfc8b18ed30e261fe6b6dd014c8991937934d.zip
fix missing (depricated) _dggsvd_ and _sggsvd_ in Openblas 0.2.16
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openblas/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py
index 781a1e2ec8..1d10f217c4 100644
--- a/var/spack/repos/builtin/packages/openblas/package.py
+++ b/var/spack/repos/builtin/packages/openblas/package.py
@@ -6,6 +6,7 @@ class Openblas(Package):
homepage = "http://www.openblas.net"
url = "http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz"
+ version('0.2.17', '664a12807f2a2a7cda4781e3ab2ae0e1')
version('0.2.16', 'fef46ab92463bdbb1479dcec594ef6dc')
version('0.2.15', 'b1190f3d3471685f17cfd1ec1d252ac9')
@@ -14,7 +15,14 @@ class Openblas(Package):
provides('lapack')
def install(self, spec, prefix):
- make('libs', 'netlib', 'shared', 'CC=cc', 'FC=f77')
+ extra=[]
+ if spec.satisfies('@0.2.16'):
+ extra.extend([
+ 'BUILD_LAPACK_DEPRECATED=1' # fix missing _dggsvd_ and _sggsvd_
+ ])
+
+ make('libs', 'netlib', 'shared', 'CC=cc', 'FC=f77',*extra)
+ make("tests")
make('install', "PREFIX='%s'" % prefix)
lib_dsuffix = 'dylib' if sys.platform == 'darwin' else 'so'