public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] rawhide: curl-8.23.0-3
@ 2026-11-04 8:08 Jan Macku
0 siblings, 0 replies; only message in thread
From: Jan Macku @ 2026-11-04 8:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/curl
Branch : rawhide
Commit : 90aa47612f24ae5d6c86813f713de3e017ef2039
Author : Jan Macku <jamacku@redhat.com>
Date : 2026-11-03T13:31:20+01:00
Stats : +324/-94 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/90aa47612f24ae5d6c86813f713de3e017ef2039?branch=rawhide
Log:
curl-8.23.0-3
---
diff --git a/0001-prevent-multilib-conflicts-on-the-curl-config-script.patch b/0001-prevent-multilib-conflicts-on-the-curl-config-script.patch
new file mode 100644
index 0000000..16c6423
--- /dev/null
+++ b/0001-prevent-multilib-conflicts-on-the-curl-config-script.patch
@@ -0,0 +1,90 @@
+From d0e2229cca5a235f597139438c38babd3971d360 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Fri, 12 Apr 2013 12:04:05 +0200
+Subject: [PATCH] prevent multilib conflicts on the curl-config script
+
+fedora-only
+---
+ curl-config.in | 23 +++++------------------
+ docs/curl-config.md | 4 +++-
+ libcurl.pc.in | 1 +
+ 3 files changed, 9 insertions(+), 19 deletions(-)
+
+diff --git a/curl-config.in b/curl-config.in
+index a1c8185875..bb43ca8335 100644
+--- a/curl-config.in
++++ b/curl-config.in
+@@ -74,7 +74,7 @@ while test "$#" -gt 0; do
+ ;;
+
+ --cc)
+- echo '@CC@'
++ echo 'gcc'
+ ;;
+
+ --prefix)
+@@ -149,16 +149,7 @@ while test "$#" -gt 0; do
+ ;;
+
+ --libs)
+- if test "@libdir@" != '/usr/lib' && test "@libdir@" != '/usr/lib64'; then
+- curllibdir="-L@libdir@ "
+- else
+- curllibdir=''
+- fi
+- if test '@ENABLE_SHARED@' = 'no'; then
+- echo "${curllibdir}-lcurl @LIBCURL_PC_LIBS_PRIVATE@"
+- else
+- echo "${curllibdir}-lcurl"
+- fi
++ echo '-lcurl'
+ ;;
+
+ --ssl-backends)
+@@ -166,16 +157,12 @@ while test "$#" -gt 0; do
+ ;;
+
+ --static-libs)
+- if test '@ENABLE_STATIC@' != 'no'; then
+- echo "@libdir@/libcurl.@libext@ @LIBCURL_PC_LDFLAGS_PRIVATE@ @LIBCURL_PC_LIBS_PRIVATE@"
+- else
+- echo 'curl was built with static libraries disabled' >&2
+- exit 1
+- fi
++ echo 'curl was built with static libraries disabled' >&2
++ exit 1
+ ;;
+
+ --configure)
+- echo @CONFIGURE_OPTIONS@
++ pkg-config libcurl --variable=configure_options | sed 's/^"//;s/"$//'
+ ;;
+
+ *)
+diff --git a/docs/curl-config.md b/docs/curl-config.md
+index 12ad245b79..fa0e03d273 100644
+--- a/docs/curl-config.md
++++ b/docs/curl-config.md
+@@ -87,7 +87,9 @@ no, one or several names. If more than one name, they appear comma-separated.
+ ## `--static-libs`
+
+ Shows the complete set of libs and other linker options you need in order to
+-link your application with libcurl statically. (Added in 7.17.1)
++link your application with libcurl statically. Note that Fedora/RHEL libcurl
++packages do not provide any static libraries, thus cannot be linked statically.
++(Added in 7.17.1)
+
+ ## `--version`
+
+diff --git a/libcurl.pc.in b/libcurl.pc.in
+index 8f7e35dd10..38324174b2 100644
+--- a/libcurl.pc.in
++++ b/libcurl.pc.in
+@@ -28,6 +28,7 @@ libdir=@libdir@
+ includedir=@includedir@
+ supported_protocols="@SUPPORT_PROTOCOLS@"
+ supported_features="@SUPPORT_FEATURES@"
++configure_options=@CONFIGURE_OPTIONS@
+
+ Name: libcurl
+ URL: https://curl.se/
diff --git a/0002-ci-setup-packit.patch b/0002-ci-setup-packit.patch
new file mode 100644
index 0000000..11bc43a
--- /dev/null
+++ b/0002-ci-setup-packit.patch
@@ -0,0 +1,59 @@
+From 38bf48a33c7e1645536c159d87b9d99561ecb0a9 Mon Sep 17 00:00:00 2001
+From: Jan Macku <jamacku@redhat.com>
+Date: Wed, 21 Oct 2026 09:53:07 +0200
+Subject: [PATCH] ci: setup packit
+
+inspired by systemd's .packit.yml
+
+fedora-only
+---
+ .packit.yml | 40 ++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 40 insertions(+)
+ create mode 100644 .packit.yml
+
+diff --git a/.packit.yml b/.packit.yml
+new file mode 100644
+index 0000000000..e876cd24c9
+--- /dev/null
++++ b/.packit.yml
+@@ -0,0 +1,40 @@
++specfile_path: .packit_rpm/curl.spec
++files_to_sync:
++ - .packit.yml
++ - src: .packit_rpm/curl.spec
++ dest: curl.spec
++upstream_package_name: curl
++downstream_package_name: curl
++upstream_tag_template: curl-{version}
++srpm_build_deps: []
++
++actions:
++ get-current-version:
++ # Show the closest matching tag for the checked out revision, otherwise
++ # Packit tries to get the latest tag by creation date, which doesn't work well.
++ - "bash -ec 'git describe --tags --abbrev=0 | cut -d- -f1'"
++
++ post-upstream-clone:
++ # Use the Fedora specfile
++ - "git clone -b rawhide https://src.fedoraproject.org/rpms/curl.git .packit_rpm --depth=1"
++ # Drop the "sources" file so rebase-helper doesn't think we're a dist-git
++ - "rm -fv .packit_rpm/sources"
++ # Drop all patches, since they're already included in the tarball
++ - "sed -ri '/^Patch[0-9]+:/d' .packit_rpm/curl.spec"
++ # Replace dynamic %(pkg-config ...) version macros with 0 — the
++ # specfile library's rpm.spec() call cannot evaluate %(...) shell
++ # expansions, causing Requires lines to end with bare '>='
++ - "sed -ri 's/^(%global \\S+_version )\\%\\(.*/\\1 0/' .packit_rpm/curl.spec"
++ # Drop GPG signature verification — packit generates its own tarball
++ # from git, so it will never match the upstream-signed archive
++ - "sed -ri '/gpgverify/d' .packit_rpm/curl.spec"
++
++# Available targets can be listed via `copr-cli list-chroots`
++jobs:
++- job: copr_build
++ trigger: pull_request
++ targets:
++ - fedora-rawhide-aarch64
++ - fedora-rawhide-ppc64le
++ - fedora-rawhide-s390x
++ - fedora-rawhide-x86_64
diff --git a/0003-conncache-poll-an-idle-connection-for-pending-input-.patch b/0003-conncache-poll-an-idle-connection-for-pending-input-.patch
new file mode 100644
index 0000000..40ae56f
--- /dev/null
+++ b/0003-conncache-poll-an-idle-connection-for-pending-input-.patch
@@ -0,0 +1,168 @@
+From 6b0f1c9fbb203a143cb464b588bd274df1747c52 Mon Sep 17 00:00:00 2001
+From: Rhino <195818135+1rhino2@users.noreply.github.com>
+Date: Thu, 15 Oct 2026 06:41:54 -0400
+Subject: [PATCH] conncache: poll an idle connection for pending input on every
+ reuse
+
+Since 2f1e94eaed the alive check in Curl_cpool_conn_seems_healthy() is
+skipped when it last ran less than a second ago, and that also skipped
+the pending input check that follows it. An idle HTTP/1.1 connection
+that had received unsolicited data from the server was then reused
+within that second and the stray bytes came back as the response to the
+next request, so every later response on that connection was shifted by
+one. 8.21.0 refused to reuse a connection with input pending on every
+reuse, and with 8.22.0 the tool reproduces it at a 900 ms gap between
+requests while 1100 ms gets a fresh connection.
+
+RFC 9112 section 9.2 says a client must not treat data received with no
+outstanding request as a response, so poll for pending input on every
+reuse of an idle non-multiplexed connection and keep the once a second
+limit only for the other checks, the protocol specific
+connection_is_dead callback and multiplexed connections.
+
+Test 1701 reproduces it with sws sending a second response after the
+first one completed and the tool starting the next request inside the
+window.
+
+Follow-up to 2f1e94eaed
+Ref: #22169
+Bug: https://hackerone.com/reports/4098761
+Closes #23412
+
+(cherry picked from commit ef6b17cf12d4af4dfb2af4f9bc35861772be71c7)
+---
+ lib/conncache.c | 14 ++++++--
+ tests/data/Makefile.am | 1 +
+ tests/data/test1701 | 75 ++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 87 insertions(+), 3 deletions(-)
+ create mode 100644 tests/data/test1701
+
+diff --git a/lib/conncache.c b/lib/conncache.c
+index 2f759bed2f..157db0f2d8 100644
+--- a/lib/conncache.c
++++ b/lib/conncache.c
+@@ -1044,11 +1044,20 @@ bool Curl_cpool_conn_seems_healthy(struct connectdata *conn,
+ {
+ struct Curl_easy *admin;
+ bool healthy = TRUE;
++ bool poll_input;
+
+ DEBUGASSERT(!data->conn);
+ if(cpool_conn_can_be_closed(conn) && cpool_conn_too_old(data, conn, pnow))
+ return FALSE;
+- if((curlx_ptimediff_ms(pnow, &conn->created) - conn->lastchecked_ms) < 1000)
++
++ /* An idle, non-multiplexed connection must not be reused when it has
++ * input pending (RFC 9112, section 9.2), so that is polled on every
++ * reuse. The once a second limit only applies to the other checks. */
++ poll_input = cpool_conn_can_be_closed(conn) &&
++ !Curl_conn_is_multiplex(conn, FIRSTSOCKET) &&
++ !conn->scheme->run->connection_is_dead;
++ if(!poll_input &&
++ (curlx_ptimediff_ms(pnow, &conn->created) - conn->lastchecked_ms) < 1000)
+ return TRUE;
+
+ admin = Curl_get_admin(data);
+@@ -1063,8 +1072,7 @@ bool Curl_cpool_conn_seems_healthy(struct connectdata *conn,
+ Curl_attach_connection(admin, conn, FALSE);
+ healthy = Curl_conn_is_alive(admin, conn, &input_pending);
+ Curl_detach_connection(admin);
+- if(healthy && input_pending && cpool_conn_can_be_closed(conn) &&
+- !Curl_conn_is_multiplex(conn, FIRSTSOCKET)) {
++ if(healthy && input_pending && poll_input) {
+ /* Non-multiplexed connections without attached transfers should
+ * not have input pending. The input might be a TLS Notify Close,
+ * for all we know. */
+diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
+index d066f2db58..0f4ce61062 100644
+--- a/tests/data/Makefile.am
++++ b/tests/data/Makefile.am
+@@ -1716,6 +1716,7 @@ TESTCASES = \
+ test1693 \
+ \
+ test1700 \
++ test1701 \
+ test1702 \
+ test1703 \
+ test1704 \
+diff --git a/tests/data/test1701 b/tests/data/test1701
+new file mode 100644
+index 0000000000..e4e3d04430
+--- /dev/null
++++ b/tests/data/test1701
+@@ -0,0 +1,75 @@
++<?xml version="1.0" encoding="US-ASCII"?>
++<testcase>
++<info>
++<keywords>
++HTTP
++HTTP GET
++DELAY
++</keywords>
++</info>
++# Server-side
++<reply>
++# the first response is exactly 60 bytes so that with writedelay the server
++# sends it in three 20 byte writes and the unsolicited second response only
++# starts arriving after the first transfer is complete and the connection
++# has been returned to the pool
++<data nocheck="yes">
++HTTP/1.1 200 OK
++Funny-head: yesyes
++Content-Length: 6
++
++first
++HTTP/1.1 200 OK
++Content-Length: 6
++
++stray
++</data>
++<data2>
++HTTP/1.1 200 OK
++Content-Length: 7
++
++second
++</data2>
++<servercmd>
++writedelay: 150
++</servercmd>
++</reply>
++
++# Client-side
++<client>
++<server>
++http
++</server>
++<name>
++HTTP/1.1 idle connection with unsolicited data is not reused
++</name>
++# --rate 1/s starts the second request 1000 ms after the first one started,
++# which is about 700 ms after the first response completed and the
++# connection went back to the pool, inside the one second window where the
++# pool used to skip the alive check. The stray response has fully arrived
++# about 750 ms in.
++<command option="no-include">
++http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002 --rate 1/s
++</command>
++</client>
++
++# Verify data after the test has been "shot"
++<verify>
++<protocol crlf="yes">
++GET /%TESTNUMBER HTTP/1.1
++Host: %HOSTIP:%HTTPPORT
++User-Agent: curl/%VERSION
++Accept: */*
++
++GET /%TESTNUMBER0002 HTTP/1.1
++Host: %HOSTIP:%HTTPPORT
++User-Agent: curl/%VERSION
++Accept: */*
++
++</protocol>
++<stdout>
++first
++second
++</stdout>
++</verify>
++</testcase>
diff --git a/0101-curl-7.32.0-multilib.patch b/0101-curl-7.32.0-multilib.patch
deleted file mode 100644
index f7f66e6..0000000
--- a/0101-curl-7.32.0-multilib.patch
+++ /dev/null
@@ -1,92 +0,0 @@
-From 6bb4e674cdc953f5c0048aa84172539900725166 Mon Sep 17 00:00:00 2001
-From: Jan Macku <jamacku@redhat.com>
-Date: Tue, 16 Dec 2025 10:04:40 +0100
-Subject: [PATCH] prevent multilib conflicts on the curl-config script
-
----
- curl-config.in | 23 +++++------------------
- docs/curl-config.md | 4 +++-
- libcurl.pc.in | 1 +
- 3 files changed, 9 insertions(+), 19 deletions(-)
-
-diff --git a/curl-config.in b/curl-config.in
-index a1c8185875..bb43ca8335 100644
---- a/curl-config.in
-+++ b/curl-config.in
-@@ -74,7 +74,7 @@ while test "$#" -gt 0; do
- ;;
-
- --cc)
-- echo '@CC@'
-+ echo 'gcc'
- ;;
-
- --prefix)
-@@ -149,16 +149,7 @@ while test "$#" -gt 0; do
- ;;
-
- --libs)
-- if test "@libdir@" != '/usr/lib' && test "@libdir@" != '/usr/lib64'; then
-- curllibdir="-L@libdir@ "
-- else
-- curllibdir=''
-- fi
-- if test '@ENABLE_SHARED@' = 'no'; then
-- echo "${curllibdir}-lcurl @LIBCURL_PC_LIBS_PRIVATE@"
-- else
-- echo "${curllibdir}-lcurl"
-- fi
-+ echo '-lcurl'
- ;;
-
- --ssl-backends)
-@@ -166,16 +157,12 @@ while test "$#" -gt 0; do
- ;;
-
- --static-libs)
-- if test '@ENABLE_STATIC@' != 'no'; then
-- echo "@libdir@/libcurl.@libext@ @LIBCURL_PC_LDFLAGS_PRIVATE@ @LIBCURL_PC_LIBS_PRIVATE@"
-- else
-- echo 'curl was built with static libraries disabled' >&2
-- exit 1
-- fi
-+ echo 'curl was built with static libraries disabled' >&2
-+ exit 1
- ;;
-
- --configure)
-- echo @CONFIGURE_OPTIONS@
-+ pkg-config libcurl --variable=configure_options | sed 's/^"//;s/"$//'
- ;;
-
- *)
-diff --git a/docs/curl-config.md b/docs/curl-config.md
-index 12ad245b79..fa0e03d273 100644
---- a/docs/curl-config.md
-+++ b/docs/curl-config.md
-@@ -87,7 +87,9 @@ no, one or several names. If more than one name, they appear comma-separated.
- ## `--static-libs`
-
- Shows the complete set of libs and other linker options you need in order to
--link your application with libcurl statically. (Added in 7.17.1)
-+link your application with libcurl statically. Note that Fedora/RHEL libcurl
-+packages do not provide any static libraries, thus cannot be linked statically.
-+(Added in 7.17.1)
-
- ## `--version`
-
-diff --git a/libcurl.pc.in b/libcurl.pc.in
-index c0ba5244a8..f3645e1748 100644
---- a/libcurl.pc.in
-+++ b/libcurl.pc.in
-@@ -28,6 +28,7 @@ libdir=@libdir@
- includedir=@includedir@
- supported_protocols="@SUPPORT_PROTOCOLS@"
- supported_features="@SUPPORT_FEATURES@"
-+configure_options=@CONFIGURE_OPTIONS@
-
- Name: libcurl
- URL: https://curl.se/
---
-2.52.0
-
diff --git a/curl.spec b/curl.spec
index d3f3487..52acf01 100644
--- a/curl.spec
+++ b/curl.spec
@@ -13,7 +13,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 8.23.0
-Release: 2%{?dist}
+Release: 3%{?dist}
License: curl
Source0: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz
Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
@@ -23,7 +23,9 @@ Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
Source2: mykey.asc
# Fedora-specific
-Patch101: 0101-curl-7.32.0-multilib.patch
+Patch0001: 0001-prevent-multilib-conflicts-on-the-curl-config-script.patch
+Patch0002: 0002-ci-setup-packit.patch
+Patch0003: 0003-conncache-poll-an-idle-connection-for-pending-input-.patch
Provides: curl-full = %{version}-%{release}
# do not fail when trying to install curl-minimal after drop
@@ -464,6 +466,9 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
%{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
%changelog
+* Tue Nov 03 2026 Jan Macku <jamacku@redhat.com> - 8.23.0-3
+- conncache: poll an idle connection for pending input on every reuse
+
* Thu Oct 29 2026 Jakub Jelen <jjelen@redhat.com> - 8.23.0-2
- Verify upstream source signatures with openpgpverify
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-04 8:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 8:08 [rpms/curl] rawhide: curl-8.23.0-3 Jan Macku
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox