summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2024-08-07 11:43:33 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-08-08 14:28:49 +0100
commit6bdd2311e662629d021c89f68dc63b33f8eec532 (patch)
tree82acfd861bc567657259cc99b088176834774542
parent81af9c633745b247eed4ac7e51afeed1dee1af74 (diff)
downloadpoky-6bdd2311e662629d021c89f68dc63b33f8eec532.tar.gz
libassuan: upgrade 2.5.7 -> 3.0.1
Patch 'libassuan-add-pkgconfig-support.patch' had to be adjusted to apply on top of 3.0.1. While doing so, the format was updated so that it'll work more easily with git. Changelog (git log --oneline libassuan-2.5.7..libassuan-3.0.1): c9e9027 (tag: libassuan-3.0.1) Release 3.0.1 9e90c79 Post release updates 0351ecf (tag: libassuan-3.0.0) Release 3.0.0 1fe7aa3 Add release targets 6bef35b Update copyright notices 87f92fe Add new socket flags "linger" and "reuseaddr". 24f05d6 Spell fix in gpg-error.m4 from GnuPG. 577c1cd m4: Update gpg-error.m4. db27c94 libassuan.m4: Fix setting/using GPG_ERROR_CONFIG. ee9167c Always append the process identification to hello line. d5e0aa3 Modify documentation for new release. c1bbbe8 Fix the previous commit. 1c27538 m4: Include _AM_PATH_GPGRT_CONFIG definition. 6756482 tests: Cleanup mention of removed variable a8c38df doc: Minor style fixes. 76816b1 build: Change the default for --with-libtool-modification. d63bf50 build: Update libtool-patch.sed from libgpg-error. 9bb7a2a build: New configure option --with-libtool-modification. ce35bd9 Add NEWS entries for 2.5.6 from libassuan 2.5 branch. b975f9a Fix for v2 support: ASSUAN_REALLY_REQUIRE_V2_NPTH_SYSTEM_HOOKS bb7aa0e New function: assuan_control. 9ce1b41 libassuan.m4: Allow use of libassuan 3 for API of version 2. c6ae222 Update NEWS. bf25d0e Add new pipe functions to control its server process. c14409b socket: Don't call pre/post_syscall for bind. dd7e0c5 build: Prepare release with API change. c4687db Update NEWS. 782d5f8 Expose assuan_sock_accept function. 703b410 Add _assuan_pre_syscall / _assuan_post_syscall to _assuan_sock_*. 5de5774 Support larger greeting message. 413b294 Next release will be 3.0 049b800 Flush data before clearing the confidential flag. 2f0232b w32: Fix closing for non-socket HANDLE. 592f6bb w32: Fix hello_line parsing for fd passing. c69578b w32: Always include process information in HELLO. efccdb3 w32: Fix error return for sending fd. 8d83aea Allow use of global system hooks with API version 2. af34d84 doc: Update documentation for the method spawn and waitpid. 316fae4 w32: File handle passing to server is now supported. 5d1cdaa Don't use ASSUAN_INVALID_PID for assuan_pid_t value. 6350f79 w32: Cleaner semantics for PID and Process handle. f3b3ddf Fix comments. 18edc4f Fix wrong return type for functions. 6957813 tests: Use -no-fast-install LDFLAGS for Windows. 9ecbd8e Deprecate ASSUAN_SYSTEM_NPTH. 1eb66ef Allow NULL for system_hooks. 620acf6 Fix the previous commit. 223cc95 Fix calling gpgrt_get_syscall_clamp. fb5d02d tests: Fix for POSIX machine. 7191c12 w32: Fix test header file for 64-bit Windows. f2d829e w32: Fix pipeconnect test program for Windows. 295e334 w32: Minor fixes for ifdef/endif for W32 and W64. 17055e1 w32: Fix the semantics of sending FD, it's Windows HANDLE. 9110945 Implement timeout in assuan_sock_connect_byname. 3d8195e build: Update gpg-error.m4. e4e54fb w32: Fix assuan_socket_connect. a720b6c Fix make dist target 523e3cb w32: Fix confusion between process ID and process HANDLE. 05eb70c doc: Update the description about pkg-config. ba84b78 w32: Have PROCESS_HANDLE in struct assuan_context_s. 7e6f3f0 tests: Use common code for Windows. 8962c1e tests: Add fdpassing-socket.sh script. 3297e45 w32: Support fd passing through socket. a1f4804 w32: Support fd passing through pipe. 07adf41 Show the pid of listening process in the hello line. 870fdcf w32: Support sendfd/recvfd through pipe connection. ce794a0 w32: Add SENDFD internal command. 27acee6 client: Only call _assuan_waitpid when it's not socket. d769ec2 build: Prefer gpgrt-config when available. 62547ec w32: Fix make dist 6d5a2b1 Fix an explanation for socket on Windows. 0c22952 build: Update gpg-error.m4. df6aec5 build: Remove WindowsCE support from mkheader. 6bc8a10 Silence compiler warnings. e3b1e38 Drop WindowsCE support. 6da6a3d build: Update config.guess, config.sub, and config.rpath. 3156f29 build: Update gpg-error.m4. 5277f24 Fix the previous commit. 97516d6 Don't access NULL by wipememory. 2e310bb tests: Remove dead code 850f404 config: Remove 18 years unused variable 70b465e tests: Avoid leaking file descriptors on errors 2a5550b client: Handle inquiry from server with CONFIDENTIAL. aafbde9 struct assuan_context_s: Move boolean fields to flags. fd1ac5c client: Wipe the inbound buffer when CONFIDENTIAL. 89e8f26 server,client: Wipe the outbound buffer when CONFIDENTIAL. d812e28 server: Wipe out the memory used by assuan_inquire if CONFIDENTIAL. 84ae2b1 Add assuan_sock_accept function. c93eb90 w32: Store a flag if it's socket or not in Assuan CTX. 5b77d39 Fix API break. 9260fb1 build: Remove unused putc_unlocked.c. 0fae582 Take advantage of gpgrt_get_syscall_clamp function. a43090e build: Fix listing m4 files. 28a40a2 w32: Fix assuan_socket_connect_fd to be usable. a054a0a build: Better cross build support. a8125eb Fix internal socket API to be consistent for SOCKET. 9de02ca build: When no gpg-error-config, not install libassuan-config. eeda9ac Remove GNU Pth support. 564e0d9 w32: Fix definition of type to be generated into assuan.h. (From OE-Core rev: 9f55a2ee159ca08f60151abc55e93edce724d335) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch35
-rw-r--r--meta/recipes-support/libassuan/libassuan_3.0.1.bb (renamed from meta/recipes-support/libassuan/libassuan_2.5.7.bb)2
2 files changed, 22 insertions, 15 deletions
diff --git a/meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch b/meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch
index fe811254d3..d67087f4ac 100644
--- a/meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch
+++ b/meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch
@@ -1,6 +1,7 @@
1Add pkgconfig support to libassuan. 1From 9d28122b7e7ae3f17364e1ab97355cf5eaf14cb8 Mon Sep 17 00:00:00 2001
2This patch is rejected by upstream for the reason below: 2From: Trevor Gamblin <tgamblin@baylibre.com>
3They think pkgconfig adds no portability and maintaining them is not worthwhile. 3Date: Wed, 7 Aug 2024 11:36:26 -0400
4Subject: [PATCH] libassuan: add pkgconfig support
4 5
5Upstream-Status: Denied 6Upstream-Status: Denied
6Signed-off-by: Chen Qi <Qi.Chen@windriver.com> 7Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
@@ -8,18 +9,23 @@ Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
8 9
9forward ported to 2.4.4 10forward ported to 2.4.4
10Signed-off-by: Armin Kuster <akuster@mvista.com> 11Signed-off-by: Armin Kuster <akuster@mvista.com>
12
13Refactor to apply on top of 3.0.1, including reformatting as an mbox for
14easier use.
15
16Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
11--- 17---
12 src/libassuan.m4 | 81 ++---------------------------------------------- 18 src/libassuan.m4 | 82 ++----------------------------------------------
13 1 file changed, 3 insertions(+), 78 deletions(-) 19 1 file changed, 3 insertions(+), 79 deletions(-)
14 20
15diff --git a/src/libassuan.m4 b/src/libassuan.m4 21diff --git a/src/libassuan.m4 b/src/libassuan.m4
16index df50484..380a48a 100644 22index 2e98b39..404796f 100644
17--- a/src/libassuan.m4 23--- a/src/libassuan.m4
18+++ b/src/libassuan.m4 24+++ b/src/libassuan.m4
19@@ -17,27 +17,6 @@ dnl Returns ok set to yes or no. 25@@ -103,27 +103,6 @@ dnl
20 dnl
21 AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON], 26 AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
22 [ AC_REQUIRE([AC_CANONICAL_HOST]) 27 [ AC_REQUIRE([AC_CANONICAL_HOST])dnl
28 AC_REQUIRE([_AM_PATH_GPGRT_CONFIG])dnl
23- AC_ARG_WITH(libassuan-prefix, 29- AC_ARG_WITH(libassuan-prefix,
24- AS_HELP_STRING([--with-libassuan-prefix=PFX], 30- AS_HELP_STRING([--with-libassuan-prefix=PFX],
25- [prefix where LIBASSUAN is installed (optional)]), 31- [prefix where LIBASSUAN is installed (optional)]),
@@ -31,7 +37,7 @@ index df50484..380a48a 100644
31- fi 37- fi
32- 38-
33- use_gpgrt_config="" 39- use_gpgrt_config=""
34- if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then 40- if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
35- if $GPGRT_CONFIG libassuan --exists; then 41- if $GPGRT_CONFIG libassuan --exists; then
36- LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan" 42- LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
37- AC_MSG_NOTICE([Use gpgrt-config as libassuan-config]) 43- AC_MSG_NOTICE([Use gpgrt-config as libassuan-config])
@@ -44,7 +50,7 @@ index df50484..380a48a 100644
44 50
45 tmp=ifelse([$1], ,1:0.9.2,$1) 51 tmp=ifelse([$1], ,1:0.9.2,$1)
46 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then 52 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
47@@ -47,59 +26,11 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON], 53@@ -133,60 +112,11 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
48 req_libassuan_api=0 54 req_libassuan_api=0
49 min_libassuan_version="$tmp" 55 min_libassuan_version="$tmp"
50 fi 56 fi
@@ -90,6 +96,7 @@ index df50484..380a48a 100644
90- 96-
91- if test $ok = yes; then 97- if test $ok = yes; then
92- AC_MSG_RESULT([yes ($libassuan_config_version)]) 98- AC_MSG_RESULT([yes ($libassuan_config_version)])
99- AC_DEFINE(LIBASSUAN_API_REQUESTED, $req_libassuan_api, Requested API version for libassuan)
93- else 100- else
94- AC_MSG_RESULT(no) 101- AC_MSG_RESULT(no)
95- fi 102- fi
@@ -106,7 +113,7 @@ index df50484..380a48a 100644
106 if test "$tmp" -gt 0 ; then 113 if test "$tmp" -gt 0 ; then
107 AC_MSG_CHECKING([LIBASSUAN API version]) 114 AC_MSG_CHECKING([LIBASSUAN API version])
108 if test "$req_libassuan_api" -eq "$tmp" ; then 115 if test "$req_libassuan_api" -eq "$tmp" ; then
109@@ -115,9 +46,7 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON], 116@@ -204,9 +134,7 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
110 if test $ok = yes; then 117 if test $ok = yes; then
111 if test x"$host" != x ; then 118 if test x"$host" != x ; then
112 if test -z "$use_gpgrt_config"; then 119 if test -z "$use_gpgrt_config"; then
@@ -117,7 +124,7 @@ index df50484..380a48a 100644
117 fi 124 fi
118 if test x"$libassuan_config_host" != xnone ; then 125 if test x"$libassuan_config_host" != xnone ; then
119 if test x"$libassuan_config_host" != x"$host" ; then 126 if test x"$libassuan_config_host" != x"$host" ; then
120@@ -159,12 +88,8 @@ dnl 127@@ -248,12 +176,8 @@ dnl
121 AC_DEFUN([AM_PATH_LIBASSUAN], 128 AC_DEFUN([AM_PATH_LIBASSUAN],
122 [ _AM_PATH_LIBASSUAN_COMMON($1) 129 [ _AM_PATH_LIBASSUAN_COMMON($1)
123 if test $ok = yes; then 130 if test $ok = yes; then
@@ -131,5 +138,5 @@ index df50484..380a48a 100644
131 fi 138 fi
132 AC_SUBST(LIBASSUAN_CFLAGS) 139 AC_SUBST(LIBASSUAN_CFLAGS)
133-- 140--
1342.25.1 1412.39.2
135 142
diff --git a/meta/recipes-support/libassuan/libassuan_2.5.7.bb b/meta/recipes-support/libassuan/libassuan_3.0.1.bb
index d1e622635f..0518ed75aa 100644
--- a/meta/recipes-support/libassuan/libassuan_2.5.7.bb
+++ b/meta/recipes-support/libassuan/libassuan_3.0.1.bb
@@ -20,7 +20,7 @@ SRC_URI = "${GNUPG_MIRROR}/libassuan/libassuan-${PV}.tar.bz2 \
20 file://libassuan-add-pkgconfig-support.patch \ 20 file://libassuan-add-pkgconfig-support.patch \
21 " 21 "
22 22
23SRC_URI[sha256sum] = "0103081ffc27838a2e50479153ca105e873d3d65d8a9593282e9c94c7e6afb76" 23SRC_URI[sha256sum] = "c8f0f42e6103dea4b1a6a483cb556654e97302c7465308f58363778f95f194b1"
24 24
25BINCONFIG = "${bindir}/libassuan-config" 25BINCONFIG = "${bindir}/libassuan-config"
26 26