From 3368e06bc67a9260828ed161b5f7f46f25957ae7 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Thu, 20 May 2021 18:28:13 +0200 Subject: gnupg: create a gpg2 symlink on install (#23789) --- var/spack/repos/builtin/packages/gnupg/package.py | 5 +++++ 1 file changed, 5 insertions(+) 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', -- cgit v1.2.3-70-g09d2