[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) |
Hi,
an error (https://bugs.gnupg.org/gnupg/issue2877) 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 “libgpgme.so” (see
http://hydra.gnu.org/build/1748813/nixlog/1/raw).
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)?
Thomas
>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
'.so'.
---
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).")
(inputs
`(("gnupg" ,gnupg-2.0)
("libassuan" ,libassuan)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'patch-cmake-file
+ (lambda _
+ (substitute* "lang/cpp/src/GpgmeppConfig.cmake.in"
+ (("@libsuffix@") ".so")))))))
(home-page "https://www.gnupg.org/related_software/gpgme/")
(synopsis "Library providing simplified access to GnuPG functionality")
(description
--
2.7.4
- [PATCH] gnu: gpgme: Patch CMake files.,
Thomas Danckaert <=