diff options
author | Olaf Mersmann <olafm@p-value.net> | 2020-01-16 01:50:24 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2020-01-15 18:50:24 -0600 |
commit | a48fb69601340a9f9db65be04d5f62a0092eb631 (patch) | |
tree | 199649676aa990d4afb101c010b51228d97870b2 | |
parent | 3cd6938d802696747e34dd1e496bb5e52afdb5d2 (diff) | |
download | spack-a48fb69601340a9f9db65be04d5f62a0092eb631.tar.gz spack-a48fb69601340a9f9db65be04d5f62a0092eb631.tar.bz2 spack-a48fb69601340a9f9db65be04d5f62a0092eb631.tar.xz spack-a48fb69601340a9f9db65be04d5f62a0092eb631.zip |
Update RocksDB to current version (#14524)
* rocksdb: Fix for rocksdb issue 5303
* rocksdb: Explicitly disable features
* rocksdb: Add TBB variant.
* rocksdb: New version 5.18.3 and 6.5.3
-rw-r--r-- | var/spack/repos/builtin/packages/rocksdb/package.py | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/rocksdb/package.py b/var/spack/repos/builtin/packages/rocksdb/package.py index 32053b975d..67b9ddea44 100644 --- a/var/spack/repos/builtin/packages/rocksdb/package.py +++ b/var/spack/repos/builtin/packages/rocksdb/package.py @@ -10,10 +10,12 @@ class Rocksdb(MakefilePackage): """RocksDB: A Persistent Key-Value Store for Flash and RAM Storage""" homepage = "https://github.com/facebook/rocksdb" - url = 'https://github.com/facebook/rocksdb/archive/v5.17.2.tar.gz' + url = 'https://github.com/facebook/rocksdb/archive/v6.5.3.tar.gz' git = 'https://github.com/facebook/rocksdb.git' version('develop', git=git, branch='master', submodules=True) + version('6.5.3', sha256='6dc023a11d61d00c8391bd44f26ba7db06c44be228c10b552edc84e02d7fbde2') + version('5.18.3', sha256='7fb6738263d3f2b360d7468cf2ebe333f3109f3ba1ff80115abd145d75287254') version('5.17.2', sha256='101f05858650a810c90e4872338222a1a3bf3b24de7b7d74466814e6a95c2d28') version('5.16.6', sha256='f0739edce1707568bdfb36a77638fd5bae287ca21763ce3e56cf0bfae8fff033') version('5.15.10', sha256='26d5d4259fa352ae1604b5b4d275f947cacc006f4f7d2ef0b815056601b807c0') @@ -24,6 +26,7 @@ class Rocksdb(MakefilePackage): variant('static', default=True, description='Build static library') variant('zlib', default=True, description='Enable zlib compression support') variant('zstd', default=False, description='Enable zstandard compression support') + variant('tbb', default=False, description='Enable Intel TBB support') depends_on('bzip2', when='+bzip2') depends_on('gflags') @@ -31,6 +34,7 @@ class Rocksdb(MakefilePackage): depends_on('snappy', when='+snappy') depends_on('zlib', when='+zlib') depends_on('zstd', when='+zstd') + depends_on('tbb', when='+tbb') phases = ['install'] @@ -44,17 +48,35 @@ class Rocksdb(MakefilePackage): cflags = [] ldflags = [] + if spec.satisfies('%gcc@9:'): + cflags.append('-Wno-error=deprecated-copy') + cflags.append('-Wno-error=pessimizing-move') + cflags.append('-Wno-error=redundant-move') + if '+zlib' in self.spec: cflags.append('-I' + self.spec['zlib'].prefix.include) ldflags.append(self.spec['zlib'].libs.ld_flags) + else: + env['ROCKSDB_DISABLE_ZLIB'] = 'YES' + if '+bz2' in self.spec: cflags.append('-I' + self.spec['bz2'].prefix.include) ldflags.append(self.spec['bz2'].libs.ld_flags) + else: + env['ROCKSDB_DISABLE_BZIP'] = 'YES' + + if '+tbb' in self.spec: + cflags.append(spec['tbb'].headers.cpp_flags) + ldflags.append('-L' + spec['tbb'].prefix.lib) + else: + env['ROCKSDB_DISABLE_TBB'] = 'YES' for pkg in ['lz4', 'snappy', 'zstd']: if '+' + pkg in self.spec: cflags.append(self.spec[pkg].headers.cpp_flags) ldflags.append(self.spec[pkg].libs.ld_flags) + else: + env['ROCKSDB_DISABLE_' + pkg.upper()] = 'YES' cflags.append(self.spec['gflags'].headers.cpp_flags) ldflags.append(self.spec['gflags'].libs.ld_flags) |