[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: gpgme: Patch CMake files.

From: Thomas Danckaert
Subject: [PATCH] gnu: gpgme: Patch CMake files.
Date: Fri, 06 Jan 2017 20:40:46 +0100 (CET)


an error ( in the CMake config files for gpgme version 1.80 prevents KWallet (and perhaps other packages) from building. At build time, Make looks for a file address@hidden@” instead of “” (see

The attached patch works around the problem by simply substituting address@hidden@” with “.so”. This works for KWallet on my system, but I'm not sure if this is the right strategy (on all supported platforms). Can someone with CMake-fu judge if this an acceptable solution until a new version of gnupg is available (or propose a better solution, of course)?

>From 48f3064d3a66dfae7890308a537c205824e440c6 Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <address@hidden>
Date: Fri, 6 Jan 2017 16:52:41 +0100
Subject: [PATCH] gnu: gpgme: Patch CMake files.

* gnu/packages/gnupg.scm (gpgme)[arguments]: Substitute '@libsuffix@' by
 gnu/packages/gnupg.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index 56fba45..8feb40c 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -370,6 +370,13 @@ libskba (working with X.509 certificates and CMS data).")
      `(("gnupg" ,gnupg-2.0)
        ("libassuan" ,libassuan)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'configure 'patch-cmake-file
+           (lambda _
+             (substitute* "lang/cpp/src/"
+               (("@libsuffix@") ".so")))))))
     (home-page "";)
     (synopsis "Library providing simplified access to GnuPG functionality")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]