summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gnupg/gnupg
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2014-11-10 13:59:37 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-07 23:35:08 +0000
commit31059be9777b6f452bfdaafc56d3fd3ad7fd0c65 (patch)
treee98f119e354cda5778367bfe992e2b83a8c1fd12 /meta/recipes-support/gnupg/gnupg
parent144630e6e83b131c7ed03d6e6a1a61aee0ba999e (diff)
downloadpoky-31059be9777b6f452bfdaafc56d3fd3ad7fd0c65.tar.gz
gnupg: Upgrade to 2.1.0
Add patch to use pkg-config instead of npth-config and remove --without-curl as it's not used anymore. Also needed a patch to add libgpg-error to correctly build dirmngr (From OE-Core rev: 0509f3b6f880b516dfbe053b13d417f724509b99) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gnupg/gnupg')
-rw-r--r--meta/recipes-support/gnupg/gnupg/dirmngr-uses-libgpg-error.patch16
-rw-r--r--meta/recipes-support/gnupg/gnupg/pkgconfig.patch24
-rw-r--r--meta/recipes-support/gnupg/gnupg/use-pkgconfig-instead-of-npth-config.patch72
3 files changed, 102 insertions, 10 deletions
diff --git a/meta/recipes-support/gnupg/gnupg/dirmngr-uses-libgpg-error.patch b/meta/recipes-support/gnupg/gnupg/dirmngr-uses-libgpg-error.patch
new file mode 100644
index 0000000000..3dc506c2f2
--- /dev/null
+++ b/meta/recipes-support/gnupg/gnupg/dirmngr-uses-libgpg-error.patch
@@ -0,0 +1,16 @@
1Upstream-Status: Pending
2Signed-off-by: Saul Wold <sgw@linux.intel.com>
3Index: gnupg-2.1.0/dirmngr/Makefile.am
4===================================================================
5--- gnupg-2.1.0.orig/dirmngr/Makefile.am
6+++ gnupg-2.1.0/dirmngr/Makefile.am
7@@ -71,7 +71,8 @@ endif
8 dirmngr_LDADD = $(libcommontlsnpth) $(libcommonpth) \
9 ../gl/libgnu.a $(DNSLIBS) $(LIBASSUAN_LIBS) \
10 $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(NPTH_LIBS) \
11- $(NTBTLS_LIBS) $(LIBGNUTLS_LIBS) $(LIBINTL) $(LIBICONV)
12+ $(NTBTLS_LIBS) $(LIBGNUTLS_LIBS) $(LIBINTL) $(LIBICONV) \
13+ $(GPG_ERROR_LIBS)
14 if !USE_LDAPWRAPPER
15 dirmngr_LDADD += $(ldaplibs)
16 endif
diff --git a/meta/recipes-support/gnupg/gnupg/pkgconfig.patch b/meta/recipes-support/gnupg/gnupg/pkgconfig.patch
index ae92392dae..5e036bac90 100644
--- a/meta/recipes-support/gnupg/gnupg/pkgconfig.patch
+++ b/meta/recipes-support/gnupg/gnupg/pkgconfig.patch
@@ -5,11 +5,11 @@ Upstream-Status: Rejected
5 5
6RP 2014/5/22 6RP 2014/5/22
7 7
8Index: gnupg-2.0.22/m4/gnupg-pth.m4 8Index: gnupg-2.1.0/m4/gnupg-pth.m4
9=================================================================== 9===================================================================
10--- gnupg-2.0.22.orig/m4/gnupg-pth.m4 2013-10-04 12:32:53.000000000 +0000 10--- gnupg-2.1.0.orig/m4/gnupg-pth.m4
11+++ gnupg-2.0.22/m4/gnupg-pth.m4 2014-05-13 21:33:21.000000000 +0000 11+++ gnupg-2.1.0/m4/gnupg-pth.m4
12@@ -17,33 +17,9 @@ 12@@ -17,33 +17,9 @@ dnl implied warranty of MERCHANTABILITY
13 # Taken and modified from the m4 macros which come with Pth. 13 # Taken and modified from the m4 macros which come with Pth.
14 AC_DEFUN([GNUPG_PTH_VERSION_CHECK], 14 AC_DEFUN([GNUPG_PTH_VERSION_CHECK],
15 [ 15 [
@@ -44,7 +44,7 @@ Index: gnupg-2.0.22/m4/gnupg-pth.m4
44 if test $have_pth = yes; then 44 if test $have_pth = yes; then
45 AC_MSG_RESULT(yes) 45 AC_MSG_RESULT(yes)
46 AC_MSG_CHECKING([whether PTH installation is sane]) 46 AC_MSG_CHECKING([whether PTH installation is sane])
47@@ -51,9 +29,9 @@ 47@@ -51,9 +27,9 @@ AC_DEFUN([GNUPG_PTH_VERSION_CHECK],
48 _gnupg_pth_save_cflags=$CFLAGS 48 _gnupg_pth_save_cflags=$CFLAGS
49 _gnupg_pth_save_ldflags=$LDFLAGS 49 _gnupg_pth_save_ldflags=$LDFLAGS
50 _gnupg_pth_save_libs=$LIBS 50 _gnupg_pth_save_libs=$LIBS
@@ -57,30 +57,34 @@ Index: gnupg-2.0.22/m4/gnupg-pth.m4
57 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pth.h> 57 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pth.h>
58 ], 58 ],
59 [[ pth_init ();]])], 59 [[ pth_init ();]])],
60@@ -81,23 +59,11 @@ 60@@ -80,26 +56,13 @@ AC_DEFUN([GNUPG_PTH_VERSION_CHECK],
61 # PTH_CLFAGS and PTH_LIBS are AS_SUBST.
61 # 62 #
62 AC_DEFUN([GNUPG_PATH_PTH], 63 AC_DEFUN([GNUPG_PATH_PTH],
63+[
64-[ AC_ARG_WITH(pth-prefix, 64-[ AC_ARG_WITH(pth-prefix,
65- AC_HELP_STRING([--with-pth-prefix=PFX], 65- AC_HELP_STRING([--with-pth-prefix=PFX],
66- [prefix where GNU Pth is installed]), 66- [prefix where GNU Pth is installed (optional)]),
67- pth_config_prefix="$withval", pth_config_prefix="") 67- pth_config_prefix="$withval", pth_config_prefix="")
68- if test x$pth_config_prefix != x ; then 68- if test x$pth_config_prefix != x ; then
69- PTH_CONFIG="$pth_config_prefix/bin/pth-config" 69- PTH_CONFIG="$pth_config_prefix/bin/pth-config"
70- fi 70- fi
71- AC_PATH_PROG(PTH_CONFIG, pth-config, no) 71- AC_PATH_PROG(PTH_CONFIG, pth-config, no)
72+[
72 tmp=ifelse([$1], ,1.3.7,$1) 73 tmp=ifelse([$1], ,1.3.7,$1)
73- if test "$PTH_CONFIG" != "no"; then 74- if test "$PTH_CONFIG" != "no"; then
74- GNUPG_PTH_VERSION_CHECK($tmp) 75- GNUPG_PTH_VERSION_CHECK($tmp)
75- if test $have_pth = yes; then 76- if test $have_pth = yes; then
76- PTH_CFLAGS=`$PTH_CONFIG --cflags` 77- PTH_CFLAGS=`$PTH_CONFIG --cflags`
77- PTH_LIBS=`$PTH_CONFIG --ldflags` 78- PTH_LIBS=`$PTH_CONFIG --ldflags`
78- PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`" 79- PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
80- AC_DEFINE(HAVE_PTH, 1,
79+ GNUPG_PTH_VERSION_CHECK($tmp) 81+ GNUPG_PTH_VERSION_CHECK($tmp)
80+ if test $have_pth = yes; then 82+ if test $have_pth = yes; then
81 AC_DEFINE(HAVE_PTH, 1, 83+ AC_DEFINE(HAVE_PTH, 1,
82 [Defined if the GNU Pth is available]) 84 [Defined if the GNU Pth is available])
83- fi 85- fi
84 fi 86 fi
85 AC_SUBST(PTH_CFLAGS) 87 AC_SUBST(PTH_CFLAGS)
86 AC_SUBST(PTH_LIBS) 88 AC_SUBST(PTH_LIBS)
89 ])
90-
diff --git a/meta/recipes-support/gnupg/gnupg/use-pkgconfig-instead-of-npth-config.patch b/meta/recipes-support/gnupg/gnupg/use-pkgconfig-instead-of-npth-config.patch
new file mode 100644
index 0000000000..c6dbf1b75a
--- /dev/null
+++ b/meta/recipes-support/gnupg/gnupg/use-pkgconfig-instead-of-npth-config.patch
@@ -0,0 +1,72 @@
1Upstream-Status: Inappropriate [openembedded specific]
2
3Signed-off-by: Saul Wold <sgw@linux.intel.com>
4
5
6Index: gnupg-2.1.0/m4/npth.m4
7===================================================================
8--- gnupg-2.1.0.orig/m4/npth.m4
9+++ gnupg-2.1.0/m4/npth.m4
10@@ -17,10 +17,10 @@ AC_DEFUN([_AM_PATH_NPTH_CONFIG],
11 if test "x$npth_config_prefix" != x ; then
12 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
13 fi
14- AC_PATH_PROG(NPTH_CONFIG, npth-config, no)
15+ AC_PATH_PROG(PKGCONFIG, pkg-config, no)
16
17- if test "$NPTH_CONFIG" != "no" ; then
18- npth_version=`$NPTH_CONFIG --version`
19+ if test "$PKGCONFIG" != "no" ; then
20+ npth_version=`$PKGCONFIG --modversion npth`
21 fi
22 npth_version_major=`echo $npth_version | \
23 sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
24@@ -45,7 +45,7 @@ AC_DEFUN([AM_PATH_NPTH],
25
26 AC_MSG_CHECKING(for NPTH - version >= $min_npth_version)
27 ok=no
28- if test "$NPTH_CONFIG" != "no" ; then
29+ if test "$PKGCONFIG" != "no" ; then
30 req_major=`echo $min_npth_version | \
31 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
32 req_minor=`echo $min_npth_version | \
33@@ -66,28 +66,9 @@ AC_DEFUN([AM_PATH_NPTH],
34 fi
35 if test $ok = yes; then
36 AC_MSG_RESULT([yes ($npth_version)])
37- else
38- AC_MSG_RESULT(no)
39- fi
40- if test $ok = yes; then
41- # If we have a recent NPTH, we should also check that the
42- # API is compatible.
43- if test "$req_npth_api" -gt 0 ; then
44- tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
45- if test "$tmp" -gt 0 ; then
46- AC_MSG_CHECKING([NPTH API version])
47- if test "$req_npth_api" -eq "$tmp" ; then
48- AC_MSG_RESULT([okay])
49- else
50- ok=no
51- AC_MSG_RESULT([does not match. want=$req_npth_api got=$tmp])
52- fi
53- fi
54- fi
55- fi
56- if test $ok = yes; then
57- NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
58- NPTH_LIBS=`$NPTH_CONFIG --libs`
59+ NPTH_CFLAGS=`$PKGCONFIG --cflags npth`
60+ NPTH_LIBS=`$PKGCONFIG --libs npth`
61+ AC_MSG_WARN([[GOT HERE - $NPTH_LIBS ]])
62 ifelse([$2], , :, [$2])
63 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
64 if test x"$npth_config_host" != xnone ; then
65@@ -103,6 +84,7 @@ AC_DEFUN([AM_PATH_NPTH],
66 fi
67 fi
68 else
69+ AC_MSG_RESULT(no)
70 NPTH_CFLAGS=""
71 NPTH_LIBS=""
72 ifelse([$3], , :, [$3])