Auto-detect gpg binary just like GPGME does ENGINE-251
authorDamiano Boppart <damiano@pep-security.net>
Wed, 13 Sep 2017 12:47:59 +0200
branchENGINE-251
changeset 2053786e5620b35e
parent 2051 c5b75986b5ff
child 2054 9430eba25d39
child 2725 615d037876e1
Auto-detect gpg binary just like GPGME does
build-config/common.conf
     1.1 --- a/build-config/common.conf	Wed Sep 13 02:00:36 2017 +0200
     1.2 +++ b/build-config/common.conf	Wed Sep 13 12:47:59 2017 +0200
     1.3 @@ -62,10 +62,7 @@
     1.4  
     1.5  ######### OpenPGP #########
     1.6  # Path of GPG binary
     1.7 -GPG_CMD=gpg
     1.8 -ifneq ($(shell which gpg2),)
     1.9 -    GPG_CMD=gpg2
    1.10 -endif
    1.11 +GPG_CMD:=$(shell gpgconf --list-components | awk -F: '/^gpg:/ { print $$3; exit 0; }')
    1.12  # Selects OpenPGP implementation. must be either `GPG` or `NETPGP`
    1.13  OPENPGP=GPG
    1.14  # Path of libGPGME binary