summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSatish Balay <balay@mcs.anl.gov>2022-01-28 04:20:35 -0600
committerGitHub <noreply@github.com>2022-01-28 11:20:35 +0100
commit4c3bc0d3dc107bfbd59cba8a634e9a17633f036e (patch)
treefe19ccb4ede7db5ba61c0c06f8a9eac08386c635 /var
parent46b9911289d16241062d5ae80c96f9d89e565fd2 (diff)
downloadspack-4c3bc0d3dc107bfbd59cba8a634e9a17633f036e.tar.gz
spack-4c3bc0d3dc107bfbd59cba8a634e9a17633f036e.tar.bz2
spack-4c3bc0d3dc107bfbd59cba8a634e9a17633f036e.tar.xz
spack-4c3bc0d3dc107bfbd59cba8a634e9a17633f036e.zip
slepc: switch from using -with-arpack-dir to --with-arpack-include/lib options (#28654)
Also save configure.log, make.log
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/slepc/package.py29
1 files changed, 18 insertions, 11 deletions
diff --git a/var/spack/repos/builtin/packages/slepc/package.py b/var/spack/repos/builtin/packages/slepc/package.py
index 0ac383bd38..d0a37a6e87 100644
--- a/var/spack/repos/builtin/packages/slepc/package.py
+++ b/var/spack/repos/builtin/packages/slepc/package.py
@@ -113,21 +113,23 @@ class Slepc(Package, CudaPackage, ROCmPackage):
options = []
if '+arpack' in spec:
- options.extend([
- '--with-arpack-dir=%s' % spec['arpack-ng'].prefix,
- ])
- if spec.satisfies('@:3.12'):
- arpackopt = '--with-arpack-flags'
- else:
- arpackopt = '--with-arpack-lib'
-
- if 'arpack-ng~mpi' in spec:
+ if spec.satisfies('@3.15:'):
options.extend([
- arpackopt + '=-larpack'
+ '--with-arpack-include=%s' % spec['arpack-ng'].prefix.include,
+ '--with-arpack-lib=%s' % spec['arpack-ng'].libs.joined()
])
else:
+ if spec.satisfies('@:3.12'):
+ arpackopt = '--with-arpack-flags'
+ else:
+ arpackopt = '--with-arpack-lib'
+ if 'arpack-ng~mpi' in spec:
+ arpacklib = '-larpack'
+ else:
+ arpacklib = '-lparpack,-larpack'
options.extend([
- arpackopt + '=-lparpack,-larpack'
+ '--with-arpack-dir=%s' % spec['arpack-ng'].prefix,
+ '%s=%s' % (arpackopt, arpacklib)
])
# It isn't possible to install BLOPEX separately and link to it;
@@ -152,6 +154,11 @@ class Slepc(Package, CudaPackage, ROCmPackage):
# Set up SLEPC_DIR for dependent packages built with SLEPc
env.set('SLEPC_DIR', self.prefix)
+ @property
+ def archive_files(self):
+ return [join_path(self.stage.source_path, 'configure.log'),
+ join_path(self.stage.source_path, 'make.log')]
+
def run_hello_test(self):
"""Run stand alone test: hello"""
test_dir = self.test_suite.current_test_data_dir