[pkg-horde] Bug#854819: GnuPG support broken in Horde / Debian 9

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Fri Feb 10 17:35:58 UTC 2017


Package: php-horde-crypt
Version: 2.7.5-1
Severity: important
Control: tag -1 patch
Control: forwarded -1 https://bugs.horde.org/ticket/14014

Just upgraded my Horde Instance to Debian 9 and realized that GnuPG  
support is broken. The below patch fixes things here:

```
Index: Horde/Crypt/Pgp/Backend/Binary.php
===================================================================
--- Horde.orig/Crypt/Pgp/Backend/Binary.php	2017-02-10  
18:29:32.322658432 +0100
+++ Horde/Crypt/Pgp/Backend/Binary.php	2017-02-10 18:27:56.686190299 +0100
@@ -77,6 +77,11 @@
              '--yes',
              '--homedir ' . $this->_tempdir
          );
+        $result = $this->_callGpg(array('--version'), 'r', null,  
false, false, true);
+        /* gpg > 1.x requires specifying the pinentry-mode */
+        if (!preg_match('/gpg \(GnuPG\) = (1\.[0-9\.]+)/',  
$result->stdout, $m)) {
+            $this->_gnupg[] = '--pinentry-mode loopback';
+        }
      }

```

However, in https://bugs.horde.org/ticket/14548, there was the above  
patch (I just picked the non-unit-testing part from it) and with that  
patch I can use GnuPG with Horde 5 and gpg2 again.

Greets,
Mike


-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
mobile: +49 (1520) 1976 148
landline: +49 (4354) 8390 139

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.alioth.debian.org/pipermail/pkg-horde-hackers/attachments/20170210/59574c77/attachment.sig>


More information about the pkg-horde-hackers mailing list