diff options
author | Saul Wold <sgw@linux.intel.com> | 2014-11-10 13:59:37 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-07 23:35:08 +0000 |
commit | 31059be9777b6f452bfdaafc56d3fd3ad7fd0c65 (patch) | |
tree | e98f119e354cda5778367bfe992e2b83a8c1fd12 /meta/recipes-support | |
parent | 144630e6e83b131c7ed03d6e6a1a61aee0ba999e (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-support/gnupg/gnupg/dirmngr-uses-libgpg-error.patch | 16 | ||||
-rw-r--r-- | meta/recipes-support/gnupg/gnupg/pkgconfig.patch | 24 | ||||
-rw-r--r-- | meta/recipes-support/gnupg/gnupg/use-pkgconfig-instead-of-npth-config.patch | 72 | ||||
-rw-r--r-- | meta/recipes-support/gnupg/gnupg_2.1.0.bb (renamed from meta/recipes-support/gnupg/gnupg_2.0.26.bb) | 16 |
4 files changed, 111 insertions, 17 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 @@ | |||
1 | Upstream-Status: Pending | ||
2 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
3 | Index: 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 | ||
6 | RP 2014/5/22 | 6 | RP 2014/5/22 |
7 | 7 | ||
8 | Index: gnupg-2.0.22/m4/gnupg-pth.m4 | 8 | Index: 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 @@ | |||
1 | Upstream-Status: Inappropriate [openembedded specific] | ||
2 | |||
3 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
4 | |||
5 | |||
6 | Index: 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]) | ||
diff --git a/meta/recipes-support/gnupg/gnupg_2.0.26.bb b/meta/recipes-support/gnupg/gnupg_2.1.0.bb index 92dd3bd643..e9ade3b1a1 100644 --- a/meta/recipes-support/gnupg/gnupg_2.0.26.bb +++ b/meta/recipes-support/gnupg/gnupg_2.1.0.bb | |||
@@ -4,21 +4,21 @@ LICENSE = "GPLv3 & LGPLv3" | |||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \ | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \ |
5 | file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" | 5 | file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" |
6 | 6 | ||
7 | DEPENDS = "${PTH} libassuan libksba zlib bzip2 readline libgcrypt" | 7 | DEPENDS = "npth libassuan libksba zlib bzip2 readline libgcrypt" |
8 | PTH = "pth" | ||
9 | PTH_libc-uclibc = "npth" | ||
10 | 8 | ||
11 | inherit autotools gettext texinfo pkgconfig | 9 | inherit autotools gettext texinfo pkgconfig |
12 | 10 | ||
13 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/${BPN}/${BPN}-${PV}.tar.bz2 \ | 11 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/${BPN}/${BPN}-${PV}.tar.bz2 \ |
14 | file://pkgconfig.patch" | 12 | file://pkgconfig.patch \ |
13 | file://use-pkgconfig-instead-of-npth-config.patch \ | ||
14 | file://dirmngr-uses-libgpg-error.patch \ | ||
15 | " | ||
15 | 16 | ||
16 | SRC_URI[md5sum] = "fa7e704aad33eb114d1840164455aec1" | 17 | SRC_URI[md5sum] = "43a809789a1d897f4386680be0b09d02" |
17 | SRC_URI[sha256sum] = "7758e30dc382ae7a7167ed41b7f936aa50af5ea2d6fccdef663b5b750b65b8e0" | 18 | SRC_URI[sha256sum] = "16a8c3f50a15bf37d2dfb1c5e4bb3ec533e1d0b6a4043ff3680a376a3ad4058b" |
18 | 19 | ||
19 | EXTRA_OECONF = "--disable-ldap \ | 20 | EXTRA_OECONF = "--disable-ldap \ |
20 | --disable-ccid-driver \ | 21 | --disable-ccid-driver \ |
21 | --without-libcurl \ | ||
22 | --with-zlib=${STAGING_LIBDIR}/.. \ | 22 | --with-zlib=${STAGING_LIBDIR}/.. \ |
23 | --with-bzip2=${STAGING_LIBDIR}/.. \ | 23 | --with-bzip2=${STAGING_LIBDIR}/.. \ |
24 | --with-readline=${STAGING_LIBDIR}/.. \ | 24 | --with-readline=${STAGING_LIBDIR}/.. \ |
@@ -37,3 +37,5 @@ do_install_append() { | |||
37 | ln -sf gpg2 ${D}${bindir}/gpg | 37 | ln -sf gpg2 ${D}${bindir}/gpg |
38 | ln -sf gpgv2 ${D}${bindir}/gpgv | 38 | ln -sf gpgv2 ${D}${bindir}/gpgv |
39 | } | 39 | } |
40 | |||
41 | RDEPENDS_${PN} = "gnutls" | ||