diff options
| author | Hongxu Jia <hongxu.jia@windriver.com> | 2017-08-21 05:49:29 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-23 08:47:02 +0100 |
| commit | c55b3706124ef0298be3697a4dcf1fc121f45d75 (patch) | |
| tree | 856b91a081960bfe41a1579f1809765428fa8952 /meta/recipes-support | |
| parent | 624da0cc25cd3fb352fa58ee69bb52d66aa0ad66 (diff) | |
| download | poky-c55b3706124ef0298be3697a4dcf1fc121f45d75.tar.gz | |
gnupg: 2.1.20 -> 2.1.23
1. COPYING.LIB: Rename to COPYING.LGPL3.
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=3419a339d9c4e800bf30e9021e05982d8c1021c1
2. Rebase patches:
- pkgconfig.patch -> 0001
- use-pkgconfig-instead-of-npth-config.patch -> 0002
- dirmngr-uses-libgpg-error.patch -> 0003
- autogen.sh-fix-find-version-for-beta-checking.patch -> 0004
3. Fix gpg2 not found
...
dnf -vy makecache
|Cannot download 'http://192.168.7.1:33541': repomd.xml GPG signature
verification error: gpgme_engine_check_version() error: Invalid crypto
engine.
...
The upstream install gpg by default and no gpg2
...
commit a69464b0b6dac88b360a13d3faf19dd7f2a0e02b
Author: Werner Koch <wk@gnupg.org>
Date: Sat Aug 5 14:39:32 2017 +0200
gpg: Install gpg by default under the name gpg.
...
Add --enable-gpg-is-gpg2 to revert it.
(From OE-Core rev: f62d844424670967d2d40cd2afc96f5fc597bf1d)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
| -rw-r--r-- | meta/recipes-support/gnupg/gnupg/0001-Use-pkg-config-to-find-pth-instead-of-pth-config.patch (renamed from meta/recipes-support/gnupg/gnupg/pkgconfig.patch) | 29 | ||||
| -rw-r--r-- | meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch (renamed from meta/recipes-support/gnupg/gnupg/use-pkgconfig-instead-of-npth-config.patch) | 21 | ||||
| -rw-r--r-- | meta/recipes-support/gnupg/gnupg/0003-dirmngr-uses-libgpg-error.patch | 32 | ||||
| -rw-r--r-- | meta/recipes-support/gnupg/gnupg/0004-autogen.sh-fix-find-version-for-beta-checking.patch (renamed from meta/recipes-support/gnupg/gnupg/autogen.sh-fix-find-version-for-beta-checking.patch) | 17 | ||||
| -rw-r--r-- | meta/recipes-support/gnupg/gnupg/dirmngr-uses-libgpg-error.patch | 16 | ||||
| -rw-r--r-- | meta/recipes-support/gnupg/gnupg_2.1.23.bb (renamed from meta/recipes-support/gnupg/gnupg_2.1.20.bb) | 17 |
6 files changed, 90 insertions, 42 deletions
diff --git a/meta/recipes-support/gnupg/gnupg/pkgconfig.patch b/meta/recipes-support/gnupg/gnupg/0001-Use-pkg-config-to-find-pth-instead-of-pth-config.patch index f958603ca7..5c9c022226 100644 --- a/meta/recipes-support/gnupg/gnupg/pkgconfig.patch +++ b/meta/recipes-support/gnupg/gnupg/0001-Use-pkg-config-to-find-pth-instead-of-pth-config.patch | |||
| @@ -1,15 +1,27 @@ | |||
| 1 | Use pkg-config to find pth instead of pth-config. | 1 | From 59a3c76d4016ffc615f1c45184f4c6820061d69c Mon Sep 17 00:00:00 2001 |
| 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 3 | Date: Wed, 16 Aug 2017 11:14:12 +0800 | ||
| 4 | Subject: [PATCH 1/4] Use pkg-config to find pth instead of pth-config. | ||
| 2 | 5 | ||
| 3 | Upstream-Status: Denied | 6 | Upstream-Status: Denied |
| 4 | [not submitted but they've been clear they don't want a pkg-config dependency] | 7 | [not submitted but they've been clear they don't want a pkg-config |
| 8 | dependency] | ||
| 5 | 9 | ||
| 6 | RP 2014/5/22 | 10 | RP 2014/5/22 |
| 7 | 11 | ||
| 8 | Index: gnupg-2.1.0/m4/gnupg-pth.m4 | 12 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 9 | =================================================================== | 13 | |
| 10 | --- gnupg-2.1.0.orig/m4/gnupg-pth.m4 | 14 | Rebase to 2.1.23 |
| 11 | +++ gnupg-2.1.0/m4/gnupg-pth.m4 | 15 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 12 | @@ -17,33 +17,9 @@ dnl implied warranty of MERCHANTABILITY | 16 | --- |
| 17 | m4/gnupg-pth.m4 | 53 ++++++++--------------------------------------------- | ||
| 18 | 1 file changed, 8 insertions(+), 45 deletions(-) | ||
| 19 | |||
| 20 | diff --git a/m4/gnupg-pth.m4 b/m4/gnupg-pth.m4 | ||
| 21 | index 6dc9e0e..5892531 100644 | ||
| 22 | --- a/m4/gnupg-pth.m4 | ||
| 23 | +++ b/m4/gnupg-pth.m4 | ||
| 24 | @@ -17,33 +17,9 @@ dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 13 | # Taken and modified from the m4 macros which come with Pth. | 25 | # Taken and modified from the m4 macros which come with Pth. |
| 14 | AC_DEFUN([GNUPG_PTH_VERSION_CHECK], | 26 | AC_DEFUN([GNUPG_PTH_VERSION_CHECK], |
| 15 | [ | 27 | [ |
| @@ -88,3 +100,6 @@ Index: gnupg-2.1.0/m4/gnupg-pth.m4 | |||
| 88 | AC_SUBST(PTH_LIBS) | 100 | AC_SUBST(PTH_LIBS) |
| 89 | ]) | 101 | ]) |
| 90 | - | 102 | - |
| 103 | -- | ||
| 104 | 1.8.3.1 | ||
| 105 | |||
diff --git a/meta/recipes-support/gnupg/gnupg/use-pkgconfig-instead-of-npth-config.patch b/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch index c6dbf1b75a..6d86e5c99b 100644 --- a/meta/recipes-support/gnupg/gnupg/use-pkgconfig-instead-of-npth-config.patch +++ b/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch | |||
| @@ -1,12 +1,22 @@ | |||
| 1 | From 53c2aec2e13f4e2d09be7148869c862f07dfdd4d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Saul Wold <sgw@linux.intel.com> | ||
| 3 | Date: Wed, 16 Aug 2017 11:16:30 +0800 | ||
| 4 | Subject: [PATCH 2/4] use pkgconfig instead of npth config | ||
| 5 | |||
| 1 | Upstream-Status: Inappropriate [openembedded specific] | 6 | Upstream-Status: Inappropriate [openembedded specific] |
| 2 | 7 | ||
| 3 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | 8 | Signed-off-by: Saul Wold <sgw@linux.intel.com> |
| 4 | 9 | ||
| 10 | Rebase to 2.1.23 | ||
| 11 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 12 | --- | ||
| 13 | m4/npth.m4 | 34 ++++++++-------------------------- | ||
| 14 | 1 file changed, 8 insertions(+), 26 deletions(-) | ||
| 5 | 15 | ||
| 6 | Index: gnupg-2.1.0/m4/npth.m4 | 16 | diff --git a/m4/npth.m4 b/m4/npth.m4 |
| 7 | =================================================================== | 17 | index 17c2644..15a931b 100644 |
| 8 | --- gnupg-2.1.0.orig/m4/npth.m4 | 18 | --- a/m4/npth.m4 |
| 9 | +++ gnupg-2.1.0/m4/npth.m4 | 19 | +++ b/m4/npth.m4 |
| 10 | @@ -17,10 +17,10 @@ AC_DEFUN([_AM_PATH_NPTH_CONFIG], | 20 | @@ -17,10 +17,10 @@ AC_DEFUN([_AM_PATH_NPTH_CONFIG], |
| 11 | if test "x$npth_config_prefix" != x ; then | 21 | if test "x$npth_config_prefix" != x ; then |
| 12 | NPTH_CONFIG="$npth_config_prefix/bin/npth-config" | 22 | NPTH_CONFIG="$npth_config_prefix/bin/npth-config" |
| @@ -70,3 +80,6 @@ Index: gnupg-2.1.0/m4/npth.m4 | |||
| 70 | NPTH_CFLAGS="" | 80 | NPTH_CFLAGS="" |
| 71 | NPTH_LIBS="" | 81 | NPTH_LIBS="" |
| 72 | ifelse([$3], , :, [$3]) | 82 | ifelse([$3], , :, [$3]) |
| 83 | -- | ||
| 84 | 1.8.3.1 | ||
| 85 | |||
diff --git a/meta/recipes-support/gnupg/gnupg/0003-dirmngr-uses-libgpg-error.patch b/meta/recipes-support/gnupg/gnupg/0003-dirmngr-uses-libgpg-error.patch new file mode 100644 index 0000000000..3e798efd06 --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg/0003-dirmngr-uses-libgpg-error.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 9c3858ffda6246bf9e1e6aeeb920532a56b19408 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Saul Wold <sgw@linux.intel.com> | ||
| 3 | Date: Wed, 16 Aug 2017 11:18:01 +0800 | ||
| 4 | Subject: [PATCH 3/4] dirmngr uses libgpg error | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
| 8 | |||
| 9 | Rebase to 2.1.23 | ||
| 10 | |||
| 11 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 12 | --- | ||
| 13 | dirmngr/Makefile.am | 3 ++- | ||
| 14 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/dirmngr/Makefile.am b/dirmngr/Makefile.am | ||
| 17 | index b404165..d3f916e 100644 | ||
| 18 | --- a/dirmngr/Makefile.am | ||
| 19 | +++ b/dirmngr/Makefile.am | ||
| 20 | @@ -82,7 +82,8 @@ endif | ||
| 21 | dirmngr_LDADD = $(libcommonpth) \ | ||
| 22 | $(DNSLIBS) $(LIBASSUAN_LIBS) \ | ||
| 23 | $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(NPTH_LIBS) \ | ||
| 24 | - $(NTBTLS_LIBS) $(LIBGNUTLS_LIBS) $(LIBINTL) $(LIBICONV) | ||
| 25 | + $(NTBTLS_LIBS) $(LIBGNUTLS_LIBS) $(LIBINTL) $(LIBICONV) \ | ||
| 26 | + $(GPG_ERROR_LIBS) | ||
| 27 | if USE_LDAP | ||
| 28 | dirmngr_LDADD += $(ldaplibs) | ||
| 29 | endif | ||
| 30 | -- | ||
| 31 | 1.8.3.1 | ||
| 32 | |||
diff --git a/meta/recipes-support/gnupg/gnupg/autogen.sh-fix-find-version-for-beta-checking.patch b/meta/recipes-support/gnupg/gnupg/0004-autogen.sh-fix-find-version-for-beta-checking.patch index 4241bc3a2e..dcd8582ca6 100644 --- a/meta/recipes-support/gnupg/gnupg/autogen.sh-fix-find-version-for-beta-checking.patch +++ b/meta/recipes-support/gnupg/gnupg/0004-autogen.sh-fix-find-version-for-beta-checking.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 717f994be2466d378e6611a4739c606db6d0dc46 Mon Sep 17 00:00:00 2001 | 1 | From 914ae4a3f7529fb069467bf0ded57dd24ee2e763 Mon Sep 17 00:00:00 2001 |
| 2 | From: Wenzong Fan <wenzong.fan@windriver.com> | 2 | From: Wenzong Fan <wenzong.fan@windriver.com> |
| 3 | Date: Sun, 25 Oct 2015 22:44:47 -0400 | 3 | Date: Wed, 16 Aug 2017 11:23:22 +0800 |
| 4 | Subject: [PATCH] autogen.sh: fix find-version for beta checking | 4 | Subject: [PATCH 4/4] autogen.sh: fix find-version for beta checking |
| 5 | 5 | ||
| 6 | find-version always assumes that gnupg is beta if autogen.sh is run | 6 | find-version always assumes that gnupg is beta if autogen.sh is run |
| 7 | out of git-repo. This doesn't work for users whom just take release | 7 | out of git-repo. This doesn't work for users whom just take release |
| @@ -10,16 +10,19 @@ tarball and re-run autoconf in their local build dir. | |||
| 10 | Upstream-Status: Pending | 10 | Upstream-Status: Pending |
| 11 | 11 | ||
| 12 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | 12 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> |
| 13 | |||
| 14 | Rebase to 2.1.23 | ||
| 15 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 13 | --- | 16 | --- |
| 14 | autogen.sh | 1 - | 17 | autogen.sh | 1 - |
| 15 | 1 file changed, 1 deletion(-) | 18 | 1 file changed, 1 deletion(-) |
| 16 | 19 | ||
| 17 | diff --git a/autogen.sh b/autogen.sh | 20 | diff --git a/autogen.sh b/autogen.sh |
| 18 | index 7effd56..d673432 100755 | 21 | index e5ba5bf..05e0e11 100755 |
| 19 | --- a/autogen.sh | 22 | --- a/autogen.sh |
| 20 | +++ b/autogen.sh | 23 | +++ b/autogen.sh |
| 21 | @@ -228,7 +228,6 @@ if [ "$myhost" = "find-version" ]; then | 24 | @@ -245,7 +245,6 @@ if [ "$myhost" = "find-version" ]; then |
| 22 | rvd=$((0x$(echo ${rev} | head -c 4))) | 25 | rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null))) |
| 23 | else | 26 | else |
| 24 | ingit=no | 27 | ingit=no |
| 25 | - beta=yes | 28 | - beta=yes |
| @@ -27,5 +30,5 @@ index 7effd56..d673432 100755 | |||
| 27 | rev="0000000" | 30 | rev="0000000" |
| 28 | rvd="0" | 31 | rvd="0" |
| 29 | -- | 32 | -- |
| 30 | 1.9.1 | 33 | 1.8.3.1 |
| 31 | 34 | ||
diff --git a/meta/recipes-support/gnupg/gnupg/dirmngr-uses-libgpg-error.patch b/meta/recipes-support/gnupg/gnupg/dirmngr-uses-libgpg-error.patch deleted file mode 100644 index 7af1955d52..0000000000 --- a/meta/recipes-support/gnupg/gnupg/dirmngr-uses-libgpg-error.patch +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 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 | @@ -78,7 +78,8 @@ endif | ||
| 8 | dirmngr_LDADD = $(libcommontlsnpth) $(libcommonpth) \ | ||
| 9 | $(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_LDAP | ||
| 15 | dirmngr_LDADD += $(ldaplibs) | ||
| 16 | endif | ||
diff --git a/meta/recipes-support/gnupg/gnupg_2.1.20.bb b/meta/recipes-support/gnupg/gnupg_2.1.23.bb index e56421feae..8cbe5e12f8 100644 --- a/meta/recipes-support/gnupg/gnupg_2.1.20.bb +++ b/meta/recipes-support/gnupg/gnupg_2.1.23.bb | |||
| @@ -2,7 +2,7 @@ SUMMARY = "GNU Privacy Guard - encryption and signing tools (2.x)" | |||
| 2 | HOMEPAGE = "http://www.gnupg.org/" | 2 | HOMEPAGE = "http://www.gnupg.org/" |
| 3 | LICENSE = "GPLv3 & LGPLv3" | 3 | LICENSE = "GPLv3 & LGPLv3" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=189af8afca6d6075ba6c9e0aa8077626 \ | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=189af8afca6d6075ba6c9e0aa8077626 \ |
| 5 | file://COPYING.LIB;md5=a2b6bf2cb38ee52619e60f30a1fc7257" | 5 | file://COPYING.LGPL3;md5=a2b6bf2cb38ee52619e60f30a1fc7257" |
| 6 | 6 | ||
| 7 | DEPENDS = "npth libassuan libksba zlib bzip2 readline libgcrypt" | 7 | DEPENDS = "npth libassuan libksba zlib bzip2 readline libgcrypt" |
| 8 | 8 | ||
| @@ -10,20 +10,21 @@ inherit autotools gettext texinfo pkgconfig | |||
| 10 | 10 | ||
| 11 | UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" | 11 | UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" |
| 12 | SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \ | 12 | SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \ |
| 13 | file://pkgconfig.patch \ | 13 | file://0001-Use-pkg-config-to-find-pth-instead-of-pth-config.patch \ |
| 14 | file://use-pkgconfig-instead-of-npth-config.patch \ | 14 | file://0002-use-pkgconfig-instead-of-npth-config.patch \ |
| 15 | file://dirmngr-uses-libgpg-error.patch \ | 15 | file://0003-dirmngr-uses-libgpg-error.patch \ |
| 16 | file://autogen.sh-fix-find-version-for-beta-checking.patch \ | 16 | file://0004-autogen.sh-fix-find-version-for-beta-checking.patch \ |
| 17 | " | 17 | " |
| 18 | 18 | ||
| 19 | SRC_URI[md5sum] = "f6bc7e0b82893dfafe09109d86ff6e9b" | 19 | SRC_URI[md5sum] = "86c2304ead54b74a422e76c3f1bc7a91" |
| 20 | SRC_URI[sha256sum] = "24cf9a69369be64a9f6f8cc11a1be33ab7780ad77a6a1b93719438f49f69960d" | 20 | SRC_URI[sha256sum] = "a94476391595e9351f219188767a9d6ea128e83be5ed3226a7890f49aa2d0d77" |
| 21 | 21 | ||
| 22 | EXTRA_OECONF = "--disable-ldap \ | 22 | EXTRA_OECONF = "--disable-ldap \ |
| 23 | --disable-ccid-driver \ | 23 | --disable-ccid-driver \ |
| 24 | --with-zlib=${STAGING_LIBDIR}/.. \ | 24 | --with-zlib=${STAGING_LIBDIR}/.. \ |
| 25 | --with-bzip2=${STAGING_LIBDIR}/.. \ | 25 | --with-bzip2=${STAGING_LIBDIR}/.. \ |
| 26 | --with-readline=${STAGING_LIBDIR}/.. \ | 26 | --with-readline=${STAGING_LIBDIR}/.. \ |
| 27 | --enable-gpg-is-gpg2 \ | ||
| 27 | " | 28 | " |
| 28 | RRECOMMENDS_${PN} = "pinentry" | 29 | RRECOMMENDS_${PN} = "pinentry" |
| 29 | 30 | ||
