net-libs/libmicrohttpd: Sync with Gentoo

It's from Gentoo commit 72c8d81471764e7447a5606e60a7fd9fd08e1e0d.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-09-22 07:10:34 +00:00 committed by Krzesimir Nowak
parent 04caa2e19c
commit 5f207e5b93
5 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,32 @@
From b03f13f32c2547b050f88e0a5ad758734c9be96c Mon Sep 17 00:00:00 2001
From: "Evgeny Grin (Karlson2k)" <k2k@narod.ru>
Date: Sun, 21 Sep 2025 16:20:49 +0200
Subject: test_get_close_keep_alive: a minimal fix for curl 8.16
curl 8.16 is silently dropping second 'Connection: ' header from
requests, making some of the checks in the test unreliable.
See https://bugs.gnunet.org/view.php?id=10403
---
src/testcurl/test_get_close_keep_alive.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/testcurl/test_get_close_keep_alive.c b/src/testcurl/test_get_close_keep_alive.c
index 243a8087..0e70a348 100644
--- a/src/testcurl/test_get_close_keep_alive.c
+++ b/src/testcurl/test_get_close_keep_alive.c
@@ -919,6 +919,11 @@ performTestQueries (struct MHD_Daemon *d, uint16_t d_port)
if ((! ! res_close) != (! ! conn_close))
continue; /* Another mode is in test currently */
+#if CURL_AT_LEAST_VERSION (8,16,0)
+ if ((f_client_close) && (f_client_k_alive))
+ continue;
+#endif /* CURL >= 8.16.0 */
+
mhd_add_close = f_mhd_close;
mhd_set_10_cmptbl = f_10_cmptbl;
mhd_set_10_server = f_10_server;
--
cgit v1.2.3

View File

@ -35,6 +35,7 @@ DOCS=( AUTHORS NEWS COPYING README ChangeLog )
PATCHES=(
"${FILESDIR}"/${PN}-0.9.76-fix-test_tricky-libcurl.patch # Gentoo Bug #953520
"${FILESDIR}"/${PN}-0.9.76-fix-test-with-curl-8-16.patch # Gentoo Bug #962980
)
# All checks in libmicrohttpd's configure are correct

View File

@ -29,6 +29,7 @@ DOCS=( AUTHORS NEWS COPYING README ChangeLog )
PATCHES=(
"${FILESDIR}"/${PN}-0.9.76-fix-test_tricky-libcurl.patch # Gentoo Bug #953520
"${FILESDIR}"/${PN}-0.9.76-fix-test-with-curl-8-16.patch # Gentoo Bug #962980
)
# All checks in libmicrohttpd's configure are correct

View File

@ -35,6 +35,7 @@ DOCS=( AUTHORS NEWS COPYING README ChangeLog )
PATCHES=(
"${FILESDIR}"/${PN}-0.9.76-fix-test_tricky-libcurl.patch # Gentoo Bug #953520
"${FILESDIR}"/${PN}-0.9.76-fix-test-with-curl-8-16.patch # Gentoo Bug #962980
)
# All checks in libmicrohttpd's configure are correct

View File

@ -29,6 +29,7 @@ DOCS=( AUTHORS NEWS COPYING README ChangeLog )
PATCHES=(
"${FILESDIR}"/${PN}-0.9.76-fix-test_tricky-libcurl.patch # Gentoo Bug #953520
"${FILESDIR}"/${PN}-0.9.76-fix-test-with-curl-8-16.patch # Gentoo Bug #962980
)
# All checks in libmicrohttpd's configure are correct