summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-05-20 18:28:13 +0200
committerGitHub <noreply@github.com>2021-05-20 18:28:13 +0200
commit3368e06bc67a9260828ed161b5f7f46f25957ae7 (patch)
tree804415ffec17d21ab476ed078b015114cdb3b25b
parented4de5a6881dd29ac7c55da309e5487fbc833cba (diff)
downloadspack-3368e06bc67a9260828ed161b5f7f46f25957ae7.tar.gz
spack-3368e06bc67a9260828ed161b5f7f46f25957ae7.tar.bz2
spack-3368e06bc67a9260828ed161b5f7f46f25957ae7.tar.xz
spack-3368e06bc67a9260828ed161b5f7f46f25957ae7.zip
gnupg: create a gpg2 symlink on install (#23789)
-rw-r--r--var/spack/repos/builtin/packages/gnupg/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gnupg/package.py b/var/spack/repos/builtin/packages/gnupg/package.py
index 51d30b7f97..2a602d8eff 100644
--- a/var/spack/repos/builtin/packages/gnupg/package.py
+++ b/var/spack/repos/builtin/packages/gnupg/package.py
@@ -43,6 +43,11 @@ class Gnupg(AutotoolsPackage):
depends_on('iconv')
depends_on('zlib')
+ @run_after('install')
+ def add_gpg2_symlink(self):
+ if self.spec.satisfies("@2.0:2.999"):
+ symlink('gpg', self.prefix.bin.gpg2)
+
def configure_args(self):
args = [
'--disable-bzip2',