gnupg: Fix gpgsm linking for gnupg 2.1.14
gnupg 2.1.14 fails to compile under OS X due to a missing -lintl flag [1].
This was fixed in commit c49c43d7 in the gnupg repository [2], which adds
the flag to Makefile.am.
This commit adds the flag to Makefile.in.
[1] https://lists.gnupg.org/pipermail/gnupg-devel/2016-July/031354.html
[2] https://lists.gnupg.org/pipermail/gnupg-devel/2016-July/031362.html
Fixes #17617.
commit092b6b68a0669121887d79e5d2685ed7a9da2d52
authorSvend Sorensen <svend@ciffer.net>
dateTue 9 Aug 2016, 17:01 (10 years ago)
parent88f3d04
pkgs/tools/security/gnupg/21.nix+2
@@ -27,6 +27,8 @@ stdenv.mkDerivation rec {
2727 readline libusb gnutls adns openldap zlib bzip2
2828 ];
2929
30+ patches = [ ./fix-gpgsm-linking.patch ];
31+
3032 postPatch = stdenv.lib.optionalString stdenv.isLinux ''
3133 sed -i 's,"libpcsclite\.so[^"]*","${pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
3234 ''; #" fix Emacs syntax highlighting :-(
pkgs/tools/security/gnupg/fix-gpgsm-linking.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/tests/gpgscm/Makefile.in
2++++ b/tests/gpgscm/Makefile.in
3+@@ -457,7 +457,7 @@
4+ scheme-config.h opdefines.h scheme.c scheme.h scheme-private.h
5+
6+ gpgscm_LDADD = $(LDADD) $(common_libs) \
7+- $(NETLIBS) $(LIBICONV) $(LIBREADLINE) \
8++ $(NETLIBS) $(LIBICONV) $(LIBREADLINE) $(LIBINTL) \
9+ $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)
10+
11+ t_child_SOURCES = t-child.c