gnupg: add recipe for version 2.1.19 (#1237)

This commit is contained in:
Schrijvers Luc
2017-03-22 10:37:07 +00:00
committed by Jérôme Duval
parent 5f0e05be4b
commit f019743418
2 changed files with 155 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
From 971db23d4c872cdd4daee96f3ea55eb1b5879c0e Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Tue, 21 Mar 2017 11:13:43 +0000
Subject: patch source file to use "extern char" instead of "static const char"
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index b2ff721..e89ce32 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -89,7 +89,7 @@ static int stricmp(const char *s1, const char *s2)
#endif /* __APPLE__ */
#if USE_STRLWR
-static const char *strlwr(char *s) {
+extern char *strlwr(char *s) {
const char *p=s;
while(*s) {
*s=tolower(*s);
--
2.7.0
From e6d7b1f0ea81cee4f8da51853a019177515929af Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Thu, 18 Feb 2016 22:55:30 +0000
Subject: Fix detection of libnetwork
diff --git a/configure.ac b/configure.ac
index 4b9ceca..c5fecc8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1015,10 +1015,9 @@ AC_MSG_NOTICE([checking for networking options])
# ELF runtime link paths), then link will fail and LDAP support won't
# be detected.
#
-AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname,
- [NETLIBS="-lnsl $NETLIBS"]))
-AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt,
- [NETLIBS="-lsocket $NETLIBS"]))
+AC_SEARCH_LIBS(gethostbyname, nsl network)
+AC_SEARCH_LIBS(setsockopt, network socket)
+NETLIBS="$LIBS"
#
@@ -1032,8 +1031,8 @@ if test "$build_dirmngr" = "yes"; then
# the dirmngr option --standard-resolver.
# the double underscore thing is a glibc-ism?
- AC_SEARCH_LIBS(res_query,resolv bind,,
- AC_SEARCH_LIBS(__res_query,resolv bind,,have_resolver=no))
+ AC_SEARCH_LIBS(res_query,resolv network bind socket,,
+ AC_SEARCH_LIBS(__res_query,resolv network bind socket,,have_resolver=no))
AC_SEARCH_LIBS(dn_expand,resolv bind,,
AC_SEARCH_LIBS(__dn_expand,resolv bind,,have_resolver=no))
--
2.7.0