summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndrew W Elble <aweits@rit.edu>2021-04-14 17:34:47 -0400
committerGitHub <noreply@github.com>2021-04-14 14:34:47 -0700
commit5309417f195d0b8e81bc5207caab8d366bb8841f (patch)
tree76d6aae5024b8a565928edf59a2d8f51a23f23c1 /var
parent51421100cf748fce7edc67b1f736323ac1269bcf (diff)
downloadspack-5309417f195d0b8e81bc5207caab8d366bb8841f.tar.gz
spack-5309417f195d0b8e81bc5207caab8d366bb8841f.tar.bz2
spack-5309417f195d0b8e81bc5207caab8d366bb8841f.tar.xz
spack-5309417f195d0b8e81bc5207caab8d366bb8841f.zip
gdrcopy: fix install of version >= 2.2 (#22987)
'prefix' option must be lowercase for versions >= 2.2
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gdrcopy/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gdrcopy/package.py b/var/spack/repos/builtin/packages/gdrcopy/package.py
index de07c4ac8c..b71bf736db 100644
--- a/var/spack/repos/builtin/packages/gdrcopy/package.py
+++ b/var/spack/repos/builtin/packages/gdrcopy/package.py
@@ -26,4 +26,9 @@ class Gdrcopy(MakefilePackage):
def install(self, spec, prefix):
mkdir(prefix.include)
mkdir(prefix.lib64)
- make('lib_install', 'PREFIX={0}'.format(self.prefix))
+ if spec.satisfies('@2.2:'):
+ make('lib_install',
+ 'prefix={0}'.format(self.prefix))
+ else:
+ make('lib_install',
+ 'PREFIX={0}'.format(self.prefix))