summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com>2022-01-03 21:02:26 +0530
committerGitHub <noreply@github.com>2022-01-03 10:32:26 -0500
commit6f952969722fb6425b8fb40e25f9d2d46e03ef0f (patch)
tree6b6d33aae23d1a16e4d186c5855dfc3787505023 /var
parentc85c725b082756d2b18ddfb1f8995a84f1bf40cf (diff)
downloadspack-6f952969722fb6425b8fb40e25f9d2d46e03ef0f.tar.gz
spack-6f952969722fb6425b8fb40e25f9d2d46e03ef0f.tar.bz2
spack-6f952969722fb6425b8fb40e25f9d2d46e03ef0f.tar.xz
spack-6f952969722fb6425b8fb40e25f9d2d46e03ef0f.zip
cp2k: fix dependency libraries (#28128)
* fixing build issues in cp2k dependencies * fixing style issues * reverting elpa.prefix.lib and grammer correction * addressing the suggestions
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cp2k/package.py2
-rw-r--r--var/spack/repos/builtin/packages/libint/package.py17
2 files changed, 15 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/cp2k/package.py b/var/spack/repos/builtin/packages/cp2k/package.py
index 18ec324a7e..22c84cf11f 100644
--- a/var/spack/repos/builtin/packages/cp2k/package.py
+++ b/var/spack/repos/builtin/packages/cp2k/package.py
@@ -486,7 +486,7 @@ class Cp2k(MakefilePackage, CudaPackage):
# Currently AOCC support only static libraries of ELPA
if '%aocc' in spec:
- libs.append(join_path(elpa.libs.directories[0],
+ libs.append(join_path(elpa.prefix.lib,
('libelpa{elpa_suffix}.a'
.format(elpa_suffix=elpa_suffix))))
else:
diff --git a/var/spack/repos/builtin/packages/libint/package.py b/var/spack/repos/builtin/packages/libint/package.py
index d44eaa44fe..82604b8b87 100644
--- a/var/spack/repos/builtin/packages/libint/package.py
+++ b/var/spack/repos/builtin/packages/libint/package.py
@@ -74,7 +74,13 @@ class Libint(AutotoolsPackage):
return "{0}/v{1}.tar.gz".format(base_url, version)
def autoreconf(self, spec, prefix):
- which('bash')('autogen.sh')
+ if self.spec.satisfies("@2:"):
+ which('bash')('autogen.sh')
+ else:
+ # Fall back since autogen is not available
+ libtoolize()
+ aclocal('-I', 'lib/autoconf')
+ autoconf()
if '@2.6.0:' in spec:
# skip tarball creation and removal of dir with generated code
@@ -103,10 +109,15 @@ class Libint(AutotoolsPackage):
def configure_args(self):
config_args = [
- '--enable-shared',
- '--with-boost={0}'.format(self.spec['boost'].prefix)
+ '--enable-shared'
]
+ if self.spec.satisfies("@2:"):
+ # --with-boost option available only from version 2 and above
+ config_args.extend([
+ '--with-boost={0}'.format(self.spec['boost'].prefix)
+ ])
+
# Optimization flag names have changed in libint 2
if self.version < Version('2.0.0'):
config_args.extend([