summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhongxu <hongxu.jia@eng.windriver.com>2024-08-23 09:48:06 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-08-23 22:43:27 +0100
commite4736e17af3190e12e883e0cc4d4210a4af05eb5 (patch)
treee63b8711c6cc60fb1fdfc92f2d31e7615c8620f6
parentc4c681cdd7d3b92efa1155b42b1471a067edbe21 (diff)
downloadpoky-e4736e17af3190e12e883e0cc4d4210a4af05eb5.tar.gz
gnupg: 2.4.5 -> 2.5.0
Fix compile failure with musl (From OE-Core rev: e7bcd683365961e661c419e79a4bb641069f2a79) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch7
-rw-r--r--meta/recipes-support/gnupg/gnupg/0001-configure.ac-use-a-custom-value-for-the-location-of-.patch7
-rw-r--r--meta/recipes-support/gnupg/gnupg/0001-fix-compile-failure-with-musl.patch36
-rw-r--r--meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch3
-rw-r--r--meta/recipes-support/gnupg/gnupg/0004-autogen.sh-fix-find-version-for-beta-checking.patch9
-rw-r--r--meta/recipes-support/gnupg/gnupg/relocate.patch19
-rw-r--r--meta/recipes-support/gnupg/gnupg_2.5.0.bb (renamed from meta/recipes-support/gnupg/gnupg_2.4.5.bb)3
7 files changed, 57 insertions, 27 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 83195b5bd4..77d7507edc 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 e3adc816d2d56dd929016073937ba24e01e03cb8 Mon Sep 17 00:00:00 2001 1From 6392cb71a23adfd601537049da4e5e06e51d2e50 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
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 1 file changed, 1 insertion(+), 1 deletion(-) 17 1 file changed, 1 insertion(+), 1 deletion(-)
18 18
19diff --git a/dirmngr/dns.h b/dirmngr/dns.h 19diff --git a/dirmngr/dns.h b/dirmngr/dns.h
20index 024d6dcc8..c6e141e16 100644 20index 1f647e1..334acb6 100644
21--- a/dirmngr/dns.h 21--- a/dirmngr/dns.h
22+++ b/dirmngr/dns.h 22+++ b/dirmngr/dns.h
23@@ -139,7 +139,7 @@ DNS_PUBLIC int *dns_debug_p(void); 23@@ -139,7 +139,7 @@ DNS_PUBLIC int *dns_debug_p(void);
@@ -29,6 +29,3 @@ index 024d6dcc8..c6e141e16 100644
29 #define DNS_PRAGMA_PUSH _Pragma("GCC diagnostic push") 29 #define DNS_PRAGMA_PUSH _Pragma("GCC diagnostic push")
30 #define DNS_PRAGMA_QUIET _Pragma("GCC diagnostic ignored \"-Woverride-init\"") 30 #define DNS_PRAGMA_QUIET _Pragma("GCC diagnostic ignored \"-Woverride-init\"")
31 #define DNS_PRAGMA_POP _Pragma("GCC diagnostic pop") 31 #define DNS_PRAGMA_POP _Pragma("GCC diagnostic pop")
32--
332.17.1
34
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 f957f6b55e..12b1447138 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 6b581c43bd01f815db78a410fd3814fc5994171e Mon Sep 17 00:00:00 2001 1From a0e986b487891ef8e3bb41b95f969e00edd4923f 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
@@ -8,16 +8,15 @@ This should avoid clashes with the host gpg-agent observed on autobuilders.
8 8
9Upstream-Status: Inappropriate [oe-core specific, and only for -native] 9Upstream-Status: Inappropriate [oe-core specific, and only for -native]
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11
12--- 11---
13 configure.ac | 2 +- 12 configure.ac | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
15 14
16diff --git a/configure.ac b/configure.ac 15diff --git a/configure.ac b/configure.ac
17index 26d7f7b..e953c2e 100644 16index e4f8c0e..fa75ec8 100644
18--- a/configure.ac 17--- a/configure.ac
19+++ b/configure.ac 18+++ b/configure.ac
20@@ -1921,7 +1921,7 @@ AC_DEFINE_UNQUOTED(GPGCONF_DISP_NAME, "GPGConf", 19@@ -1925,7 +1925,7 @@ AC_DEFINE_UNQUOTED(GPGCONF_DISP_NAME, "GPGConf",
21 20
22 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])
23 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
new file mode 100644
index 0000000000..fef05cf3c8
--- /dev/null
+++ b/meta/recipes-support/gnupg/gnupg/0001-fix-compile-failure-with-musl.patch
@@ -0,0 +1,36 @@
1From 4a7d4d6e45c68708ec95335b0f11d6596b23095a Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 22 Aug 2024 15:31:16 +0800
4Subject: [PATCH] fix compile failure with musl
5
6```
7../../gnupg-2.5.0/scd/app.c:379:3: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
8 379 | write (card_list_lock.notify_pipe[1], "", 1);
9 | ^~~~~
10 | fwrite
11```
12To access the Posix low level file interface such as open, read,
13write and close, should include <unistd.h>.
14
15Upstream-Status: Backport [https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=1d5cfa9b7fd22e1c46eeed5fa9fed2af6f81d34f]
16
17Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
18---
19 scd/app.c | 1 +
20 1 file changed, 1 insertion(+)
21
22diff --git a/scd/app.c b/scd/app.c
23index 926ab79..7bf58a2 100644
24--- a/scd/app.c
25+++ b/scd/app.c
26@@ -23,6 +23,7 @@
27 #include <stdlib.h>
28 #include <string.h>
29 #include <npth.h>
30+#include <unistd.h>
31
32 #include "scdaemon.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 0e58fd4c4d..945abb55ff 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 d9048788d906774b1475c3bb1b17e22455c2add4 Mon Sep 17 00:00:00 2001 1From fa93b5f7c2da0e5846b80de9c6296966ca2a3d83 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
@@ -9,7 +9,6 @@ Signed-off-by: Saul Wold <sgw@linux.intel.com>
9 9
10Rebase to 2.1.23 10Rebase to 2.1.23
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12
13--- 12---
14 m4/npth.m4 | 53 ++++++++--------------------------------------------- 13 m4/npth.m4 | 53 ++++++++---------------------------------------------
15 1 file changed, 8 insertions(+), 45 deletions(-) 14 1 file changed, 8 insertions(+), 45 deletions(-)
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 d664c36a1b..761fd6c608 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 6a7f9b71d936847dcaeeac7d1b69d8299be4dd85 Mon Sep 17 00:00:00 2001 1From e8f67e3bbbdbaa17cfe88c1f7a8f488eb4936281 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
@@ -13,20 +13,19 @@ Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
13 13
14Rebase to 2.1.23 14Rebase to 2.1.23
15Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 15Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
16
17--- 16---
18 autogen.sh | 1 - 17 autogen.sh | 1 -
19 1 file changed, 1 deletion(-) 18 1 file changed, 1 deletion(-)
20 19
21diff --git a/autogen.sh b/autogen.sh 20diff --git a/autogen.sh b/autogen.sh
22index 0abf103..78753b5 100755 21index 9f91297..116fb7f 100755
23--- a/autogen.sh 22--- a/autogen.sh
24+++ b/autogen.sh 23+++ b/autogen.sh
25@@ -237,7 +237,6 @@ if [ "$myhost" = "find-version" ]; then 24@@ -270,7 +270,6 @@ if [ "$myhost" = "find-version" ]; then
26 rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null))) 25 rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null)))
27 else 26 else
28 ingit=no 27 ingit=no
29- beta=yes 28- beta=yes
30 tmp="-unknown" 29 tmp="-unknown"
30 cid="0000000"
31 rev="0000000" 31 rev="0000000"
32 rvd="0"
diff --git a/meta/recipes-support/gnupg/gnupg/relocate.patch b/meta/recipes-support/gnupg/gnupg/relocate.patch
index ea0252026a..5c4d81f87a 100644
--- a/meta/recipes-support/gnupg/gnupg/relocate.patch
+++ b/meta/recipes-support/gnupg/gnupg/relocate.patch
@@ -1,4 +1,4 @@
1From c50d0a95fcf8f96c272fadd4ba85f3eeac39fcaf Mon Sep 17 00:00:00 2001 1From 4e556a5edde8a97312abae63f8e9b5f989ca5c91 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
@@ -8,16 +8,15 @@ Upstream-Status: Inappropriate [OE-specific]
8Signed-off-by: Ross Burton <ross.burton@intel.com> 8Signed-off-by: Ross Burton <ross.burton@intel.com>
9 9
10Signed-off-by: Alexander Kanavin <alex@linutronix.de> 10Signed-off-by: Alexander Kanavin <alex@linutronix.de>
11
12--- 11---
13 common/homedir.c | 14 +++++++------- 12 common/homedir.c | 14 +++++++-------
14 1 file changed, 7 insertions(+), 7 deletions(-) 13 1 file changed, 7 insertions(+), 7 deletions(-)
15 14
16diff --git a/common/homedir.c b/common/homedir.c 15diff --git a/common/homedir.c b/common/homedir.c
17index 6f99f3e..f22aa9e 100644 16index 3929108..d3a7b8f 100644
18--- a/common/homedir.c 17--- a/common/homedir.c
19+++ b/common/homedir.c 18+++ b/common/homedir.c
20@@ -1284,7 +1284,7 @@ gnupg_socketdir (void) 19@@ -1439,7 +1439,7 @@ gnupg_socketdir (void)
21 if (!name) 20 if (!name)
22 { 21 {
23 unsigned int dummy; 22 unsigned int dummy;
@@ -26,7 +25,7 @@ index 6f99f3e..f22aa9e 100644
26 gpgrt_annotate_leaked_object (name); 25 gpgrt_annotate_leaked_object (name);
27 } 26 }
28 27
29@@ -1316,7 +1316,7 @@ gnupg_sysconfdir (void) 28@@ -1468,7 +1468,7 @@ gnupg_sysconfdir (void)
30 if (dir) 29 if (dir)
31 return dir; 30 return dir;
32 else 31 else
@@ -35,7 +34,7 @@ index 6f99f3e..f22aa9e 100644
35 #endif /*!HAVE_W32_SYSTEM*/ 34 #endif /*!HAVE_W32_SYSTEM*/
36 } 35 }
37 36
38@@ -1352,7 +1352,7 @@ gnupg_bindir (void) 37@@ -1504,7 +1504,7 @@ gnupg_bindir (void)
39 return name; 38 return name;
40 } 39 }
41 else 40 else
@@ -44,7 +43,7 @@ index 6f99f3e..f22aa9e 100644
44 #endif /*!HAVE_W32_SYSTEM*/ 43 #endif /*!HAVE_W32_SYSTEM*/
45 } 44 }
46 45
47@@ -1379,7 +1379,7 @@ gnupg_libexecdir (void) 46@@ -1531,7 +1531,7 @@ gnupg_libexecdir (void)
48 return name; 47 return name;
49 } 48 }
50 else 49 else
@@ -53,7 +52,7 @@ index 6f99f3e..f22aa9e 100644
53 #endif /*!HAVE_W32_SYSTEM*/ 52 #endif /*!HAVE_W32_SYSTEM*/
54 } 53 }
55 54
56@@ -1409,7 +1409,7 @@ gnupg_libdir (void) 55@@ -1561,7 +1561,7 @@ gnupg_libdir (void)
57 return name; 56 return name;
58 } 57 }
59 else 58 else
@@ -62,7 +61,7 @@ index 6f99f3e..f22aa9e 100644
62 #endif /*!HAVE_W32_SYSTEM*/ 61 #endif /*!HAVE_W32_SYSTEM*/
63 } 62 }
64 63
65@@ -1440,7 +1440,7 @@ gnupg_datadir (void) 64@@ -1592,7 +1592,7 @@ gnupg_datadir (void)
66 return name; 65 return name;
67 } 66 }
68 else 67 else
@@ -71,7 +70,7 @@ index 6f99f3e..f22aa9e 100644
71 #endif /*!HAVE_W32_SYSTEM*/ 70 #endif /*!HAVE_W32_SYSTEM*/
72 } 71 }
73 72
74@@ -1472,7 +1472,7 @@ gnupg_localedir (void) 73@@ -1624,7 +1624,7 @@ gnupg_localedir (void)
75 return name; 74 return name;
76 } 75 }
77 else 76 else
diff --git a/meta/recipes-support/gnupg/gnupg_2.4.5.bb b/meta/recipes-support/gnupg/gnupg_2.5.0.bb
index 97b5d8856c..9cfdbdf0a4 100644
--- a/meta/recipes-support/gnupg/gnupg_2.4.5.bb
+++ b/meta/recipes-support/gnupg/gnupg_2.5.0.bb
@@ -18,12 +18,13 @@ SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
18 file://0002-use-pkgconfig-instead-of-npth-config.patch \ 18 file://0002-use-pkgconfig-instead-of-npth-config.patch \
19 file://0004-autogen.sh-fix-find-version-for-beta-checking.patch \ 19 file://0004-autogen.sh-fix-find-version-for-beta-checking.patch \
20 file://0001-Woverride-init-is-not-needed-with-gcc-9.patch \ 20 file://0001-Woverride-init-is-not-needed-with-gcc-9.patch \
21 file://0001-fix-compile-failure-with-musl.patch \
21 " 22 "
22SRC_URI:append:class-native = " file://0001-configure.ac-use-a-custom-value-for-the-location-of-.patch \ 23SRC_URI:append:class-native = " file://0001-configure.ac-use-a-custom-value-for-the-location-of-.patch \
23 file://relocate.patch" 24 file://relocate.patch"
24SRC_URI:append:class-nativesdk = " file://relocate.patch" 25SRC_URI:append:class-nativesdk = " file://relocate.patch"
25 26
26SRC_URI[sha256sum] = "f68f7d75d06cb1635c336d34d844af97436c3f64ea14bcb7c869782f96f44277" 27SRC_URI[sha256sum] = "2222c827d4e7087f15e7f72739d004abc1d05c6c5f0a5a12b24c6a6cc5d173fb"
27 28
28EXTRA_OECONF = "--disable-ldap \ 29EXTRA_OECONF = "--disable-ldap \
29 --disable-ccid-driver \ 30 --disable-ccid-driver \