summary refs log tree commit diff
path: root/pkgs/development/python-modules/slixmpp/hardcode-gnupg-path.patch
blob: 4bb3b7c73490c679bf144666d2ea542a461b94cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/slixmpp/plugins/xep_0027/gpg.py b/slixmpp/plugins/xep_0027/gpg.py
index a0b1df4..7cfb3bd 100644
--- a/slixmpp/plugins/xep_0027/gpg.py
+++ b/slixmpp/plugins/xep_0027/gpg.py
@@ -41,7 +41,7 @@ class XEP_0027(BasePlugin):
     dependencies = set()
     stanza = stanza
     default_config = {
-        'gpg_binary': 'gpg',
+        'gpg_binary': '@gnupg@/bin/gpg',
         'gpg_home': '',
         'use_agent': True,
         'keyring': None,
diff --git a/slixmpp/thirdparty/gnupg.py b/slixmpp/thirdparty/gnupg.py
index a89289f..46dd9b7 100644
--- a/slixmpp/thirdparty/gnupg.py
+++ b/slixmpp/thirdparty/gnupg.py
@@ -468,7 +468,7 @@ class GPG(object):
     }
 
     "Encapsulate access to the gpg executable"
-    def __init__(self, gpgbinary='gpg', gnupghome=None, verbose=False,
+    def __init__(self, gpgbinary='@gnupg@/bin/gpg', gnupghome=None, verbose=False,
                  use_agent=False, keyring=None):
         """Initialize a GPG process wrapper.  Options are: