summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gnupg
diff options
context:
space:
mode:
authorhongxu <hongxu.jia@eng.windriver.com>2024-11-29 07:33:29 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-29 22:13:25 +0000
commit5a845d3a733dba3621ca8f07773f2b798116c77e (patch)
treebdfdb9e431f90df8448522fb603ecab7bf78d650 /meta/recipes-support/gnupg
parentcdea0085a3c1a54d8dc73ec140ea934d17423eb8 (diff)
downloadpoky-5a845d3a733dba3621ca8f07773f2b798116c77e.tar.gz
gnupg: upgrade 2.5.0 -> 2.5.1
Due to upstream [build: Remove configure option --enable-gpg-is-gpg2][1], drop option --enable-gpg-is-gpg2 and remove gpg2/gpgv2 installation Due to upsream [doc: Remove included yat2m and build HTML versions of the man pages.][2], it used standard detection on yat2m other than build it from source. Because no native recipe provide yat2m in Yocto, explicitly disable doc via option --disable-doc [1] https://github.com/gpg/gnupg/commit/2125f228d36c0882a87bce433a18253154653d50 [2] https://github.com/gpg/gnupg/commit/60c541f5880e8c603ca9372d3ca8b7ad68b97018 (From OE-Core rev: 3a00465f4b0c01580fb27e0c462696bd4f840828) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gnupg')
-rw-r--r--meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch2
-rw-r--r--meta/recipes-support/gnupg/gnupg/0001-configure.ac-use-a-custom-value-for-the-location-of-.patch6
-rw-r--r--meta/recipes-support/gnupg/gnupg/0001-fix-compile-failure-with-musl.patch11
-rw-r--r--meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch2
-rw-r--r--meta/recipes-support/gnupg/gnupg/0004-autogen.sh-fix-find-version-for-beta-checking.patch2
-rw-r--r--meta/recipes-support/gnupg/gnupg/relocate.patch4
-rw-r--r--meta/recipes-support/gnupg/gnupg_2.5.1.bb (renamed from meta/recipes-support/gnupg/gnupg_2.5.0.bb)14
7 files changed, 15 insertions, 26 deletions
diff --git a/meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch b/meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch
index 77d7507edc..024f4a9f10 100644
--- a/meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch
+++ b/meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch
@@ -1,4 +1,4 @@
1From 6392cb71a23adfd601537049da4e5e06e51d2e50 Mon Sep 17 00:00:00 2001 1From 69d132c4cca738f148551af24932010fb1029ea1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 20 Dec 2018 17:37:48 -0800 3Date: Thu, 20 Dec 2018 17:37:48 -0800
4Subject: [PATCH] Woverride-init is not needed with gcc 9 4Subject: [PATCH] Woverride-init is not needed with gcc 9
diff --git a/meta/recipes-support/gnupg/gnupg/0001-configure.ac-use-a-custom-value-for-the-location-of-.patch b/meta/recipes-support/gnupg/gnupg/0001-configure.ac-use-a-custom-value-for-the-location-of-.patch
index 12b1447138..702cba4b71 100644
--- a/meta/recipes-support/gnupg/gnupg/0001-configure.ac-use-a-custom-value-for-the-location-of-.patch
+++ b/meta/recipes-support/gnupg/gnupg/0001-configure.ac-use-a-custom-value-for-the-location-of-.patch
@@ -1,4 +1,4 @@
1From a0e986b487891ef8e3bb41b95f969e00edd4923f Mon Sep 17 00:00:00 2001 1From d9ef954b602c17839c52a1d7dc73e2354e5fbbbb Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 22 Jan 2018 18:00:21 +0200 3Date: Mon, 22 Jan 2018 18:00:21 +0200
4Subject: [PATCH] configure.ac: use a custom value for the location of 4Subject: [PATCH] configure.ac: use a custom value for the location of
@@ -13,10 +13,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
13 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
14 14
15diff --git a/configure.ac b/configure.ac 15diff --git a/configure.ac b/configure.ac
16index e4f8c0e..fa75ec8 100644 16index 29592fd..7286862 100644
17--- a/configure.ac 17--- a/configure.ac
18+++ b/configure.ac 18+++ b/configure.ac
19@@ -1925,7 +1925,7 @@ AC_DEFINE_UNQUOTED(GPGCONF_DISP_NAME, "GPGConf", 19@@ -1911,7 +1911,7 @@ AC_DEFINE_UNQUOTED(GPGCONF_DISP_NAME, "GPGConf",
20 20
21 AC_DEFINE_UNQUOTED(GPGTAR_NAME, "gpgtar", [The name of the gpgtar tool]) 21 AC_DEFINE_UNQUOTED(GPGTAR_NAME, "gpgtar", [The name of the gpgtar tool])
22 22
diff --git a/meta/recipes-support/gnupg/gnupg/0001-fix-compile-failure-with-musl.patch b/meta/recipes-support/gnupg/gnupg/0001-fix-compile-failure-with-musl.patch
index fef05cf3c8..13c1a36366 100644
--- a/meta/recipes-support/gnupg/gnupg/0001-fix-compile-failure-with-musl.patch
+++ b/meta/recipes-support/gnupg/gnupg/0001-fix-compile-failure-with-musl.patch
@@ -1,4 +1,4 @@
1From 4a7d4d6e45c68708ec95335b0f11d6596b23095a Mon Sep 17 00:00:00 2001 1From 2e7534f3f7694ba426615b2061c235908097bb9b Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 22 Aug 2024 15:31:16 +0800 3Date: Thu, 22 Aug 2024 15:31:16 +0800
4Subject: [PATCH] fix compile failure with musl 4Subject: [PATCH] fix compile failure with musl
@@ -20,17 +20,14 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
20 1 file changed, 1 insertion(+) 20 1 file changed, 1 insertion(+)
21 21
22diff --git a/scd/app.c b/scd/app.c 22diff --git a/scd/app.c b/scd/app.c
23index 926ab79..7bf58a2 100644 23index 525950e..7180178 100644
24--- a/scd/app.c 24--- a/scd/app.c
25+++ b/scd/app.c 25+++ b/scd/app.c
26@@ -23,6 +23,7 @@ 26@@ -24,6 +24,7 @@
27 #include <stdlib.h>
28 #include <string.h> 27 #include <string.h>
28 #include <unistd.h>
29 #include <npth.h> 29 #include <npth.h>
30+#include <unistd.h> 30+#include <unistd.h>
31 31
32 #include "scdaemon.h" 32 #include "scdaemon.h"
33 #include "../common/exechelp.h" 33 #include "../common/exechelp.h"
34--
352.27.0
36
diff --git a/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch b/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch
index 945abb55ff..a7a6f03c7d 100644
--- a/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch
+++ b/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch
@@ -1,4 +1,4 @@
1From fa93b5f7c2da0e5846b80de9c6296966ca2a3d83 Mon Sep 17 00:00:00 2001 1From d5fc05998d7260fd94a558c53f6e6c35a384d163 Mon Sep 17 00:00:00 2001
2From: Saul Wold <sgw@linux.intel.com> 2From: Saul Wold <sgw@linux.intel.com>
3Date: Wed, 16 Aug 2017 11:16:30 +0800 3Date: Wed, 16 Aug 2017 11:16:30 +0800
4Subject: [PATCH] use pkgconfig instead of npth config 4Subject: [PATCH] use pkgconfig instead of npth config
diff --git a/meta/recipes-support/gnupg/gnupg/0004-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 761fd6c608..8aeb87dfd4 100644
--- a/meta/recipes-support/gnupg/gnupg/0004-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,4 +1,4 @@
1From e8f67e3bbbdbaa17cfe88c1f7a8f488eb4936281 Mon Sep 17 00:00:00 2001 1From 21396a6e74d188a2198439aa27403c29c1dbcea8 Mon Sep 17 00:00:00 2001
2From: Wenzong Fan <wenzong.fan@windriver.com> 2From: Wenzong Fan <wenzong.fan@windriver.com>
3Date: Wed, 16 Aug 2017 11:23:22 +0800 3Date: Wed, 16 Aug 2017 11:23:22 +0800
4Subject: [PATCH] autogen.sh: fix find-version for beta checking 4Subject: [PATCH] autogen.sh: fix find-version for beta checking
diff --git a/meta/recipes-support/gnupg/gnupg/relocate.patch b/meta/recipes-support/gnupg/gnupg/relocate.patch
index 5c4d81f87a..6fcbc2d18f 100644
--- a/meta/recipes-support/gnupg/gnupg/relocate.patch
+++ b/meta/recipes-support/gnupg/gnupg/relocate.patch
@@ -1,4 +1,4 @@
1From 4e556a5edde8a97312abae63f8e9b5f989ca5c91 Mon Sep 17 00:00:00 2001 1From 3c761174b0ec6f49f184f16a0b0eaade44264edc Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com> 2From: Ross Burton <ross.burton@intel.com>
3Date: Wed, 19 Sep 2018 14:44:40 +0100 3Date: Wed, 19 Sep 2018 14:44:40 +0100
4Subject: [PATCH] Allow the environment to override where gnupg looks for its 4Subject: [PATCH] Allow the environment to override where gnupg looks for its
@@ -13,7 +13,7 @@ Signed-off-by: Alexander Kanavin <alex@linutronix.de>
13 1 file changed, 7 insertions(+), 7 deletions(-) 13 1 file changed, 7 insertions(+), 7 deletions(-)
14 14
15diff --git a/common/homedir.c b/common/homedir.c 15diff --git a/common/homedir.c b/common/homedir.c
16index 3929108..d3a7b8f 100644 16index a73182e..9994a9a 100644
17--- a/common/homedir.c 17--- a/common/homedir.c
18+++ b/common/homedir.c 18+++ b/common/homedir.c
19@@ -1439,7 +1439,7 @@ gnupg_socketdir (void) 19@@ -1439,7 +1439,7 @@ gnupg_socketdir (void)
diff --git a/meta/recipes-support/gnupg/gnupg_2.5.0.bb b/meta/recipes-support/gnupg/gnupg_2.5.1.bb
index 9cfdbdf0a4..080056f74c 100644
--- a/meta/recipes-support/gnupg/gnupg_2.5.0.bb
+++ b/meta/recipes-support/gnupg/gnupg_2.5.1.bb
@@ -24,7 +24,7 @@ SRC_URI:append:class-native = " file://0001-configure.ac-use-a-custom-value-for-
24 file://relocate.patch" 24 file://relocate.patch"
25SRC_URI:append:class-nativesdk = " file://relocate.patch" 25SRC_URI:append:class-nativesdk = " file://relocate.patch"
26 26
27SRC_URI[sha256sum] = "2222c827d4e7087f15e7f72739d004abc1d05c6c5f0a5a12b24c6a6cc5d173fb" 27SRC_URI[sha256sum] = "8a34bb318499867962c939e156666ada93ed81f01926590ac68f3ff79178375e"
28 28
29EXTRA_OECONF = "--disable-ldap \ 29EXTRA_OECONF = "--disable-ldap \
30 --disable-ccid-driver \ 30 --disable-ccid-driver \
@@ -32,17 +32,14 @@ EXTRA_OECONF = "--disable-ldap \
32 --with-bzip2=${STAGING_LIBDIR}/.. \ 32 --with-bzip2=${STAGING_LIBDIR}/.. \
33 --with-readline=${STAGING_LIBDIR}/.. \ 33 --with-readline=${STAGING_LIBDIR}/.. \
34 --with-mailprog=${sbindir}/sendmail \ 34 --with-mailprog=${sbindir}/sendmail \
35 --enable-gpg-is-gpg2 \
36 --disable-tests \ 35 --disable-tests \
36 --disable-doc \
37 " 37 "
38# yat2m can be found from recipe-sysroot-native non-deterministically with different versioning otherwise
39CACHED_CONFIGUREVARS += "ac_cv_path_YAT2M=./yat2m"
40 38
41# A minimal package containing just enough to run gpg+gpgagent (E.g. use gpgme in opkg) 39# A minimal package containing just enough to run gpg+gpgagent (E.g. use gpgme in opkg)
42PACKAGES =+ "${PN}-gpg" 40PACKAGES =+ "${PN}-gpg"
43FILES:${PN}-gpg = " \ 41FILES:${PN}-gpg = " \
44 ${bindir}/gpg \ 42 ${bindir}/gpg \
45 ${bindir}/gpg2 \
46 ${bindir}/gpg-agent \ 43 ${bindir}/gpg-agent \
47" 44"
48 45
@@ -62,11 +59,6 @@ do_configure:prepend () {
62 rm -f ${S}/m4/libgcrypt.m4 59 rm -f ${S}/m4/libgcrypt.m4
63} 60}
64 61
65do_install:append() {
66 ln -sf gpg2 ${D}${bindir}/gpg
67 ln -sf gpgv2 ${D}${bindir}/gpgv
68}
69
70do_install:append:class-native() { 62do_install:append:class-native() {
71 create_wrappers ${STAGING_BINDIR_NATIVE} 63 create_wrappers ${STAGING_BINDIR_NATIVE}
72} 64}
@@ -76,7 +68,7 @@ do_install:append:class-nativesdk() {
76} 68}
77 69
78create_wrappers() { 70create_wrappers() {
79 for i in gpg2 gpgconf gpg-agent gpg-connect-agent; do 71 for i in gpg gpgconf gpg-agent gpg-connect-agent; do
80 create_wrapper ${D}${bindir}/$i GNUPG_BINDIR=$1 72 create_wrapper ${D}${bindir}/$i GNUPG_BINDIR=$1
81 done 73 done
82} 74}