public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.23.0-3: Add patch due to upstream curl-8.9.1 regression
@ 2026-11-03 12:39 voidanix
0 siblings, 0 replies; only message in thread
From: voidanix @ 2026-11-03 12:39 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : cc42129b020d949298d0b33be56d64c3b79cf096
Author : voidanix <voidanix@keyedlimepie.org>
Date : 2024-08-05T16:22:44+02:00
Stats : +40/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/cc42129b020d949298d0b33be56d64c3b79cf096?branch=curl-v8.23.0-3
Log:
Add patch due to upstream curl-8.9.1 regression
---
diff --git a/0001-curl-8.9.1-sigpipe.patch b/0001-curl-8.9.1-sigpipe.patch
new file mode 100644
index 0000000..f4f0346
--- /dev/null
+++ b/0001-curl-8.9.1-sigpipe.patch
@@ -0,0 +1,32 @@
+From 3eec5afbd0b6377eca893c392569b2faf094d970 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Mon, 5 Aug 2024 00:17:17 +0200
+Subject: [PATCH] sigpipe: init the struct so that first apply ignores
+
+Initializes 'no_signal' to TRUE, so that a call to sigpipe_apply() after
+init ignores the signal (unless CURLOPT_NOSIGNAL) is set.
+
+I have read the existing code multiple times now and I think it gets the
+initial state reversed this missing to ignore.
+
+Regression from 17e6f06ea37136c36d27
+
+Reported-by: Rasmus Thomsen
+Fixes #14344
+Closes #14390
+---
+ lib/sigpipe.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/sigpipe.h b/lib/sigpipe.h
+index b91a2f51333956..d78afd905d3414 100644
+--- a/lib/sigpipe.h
++++ b/lib/sigpipe.h
+@@ -39,6 +39,7 @@ struct sigpipe_ignore {
+ static void sigpipe_init(struct sigpipe_ignore *ig)
+ {
+ memset(ig, 0, sizeof(*ig));
++ ig->no_signal = TRUE;
+ }
+
+ /*
diff --git a/curl.spec b/curl.spec
index 9ee3966..174562f 100644
--- a/curl.spec
+++ b/curl.spec
@@ -7,7 +7,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 8.9.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: curl
Source0: https://curl.se/download/%{name}-%{version}.tar.xz
Source1: https://curl.se/download/%{name}-%{version}.tar.xz.asc
@@ -25,6 +25,10 @@ Patch102: 0102-curl-7.84.0-test3026.patch
# do not fail on warnings in the upstream test driver
Patch104: 0104-curl-7.88.0-tests-warnings.patch
+# Fix crashes with transmission due to SIGPIPE
+# https://github.com/curl/curl/commit/3eec5afbd0b6377eca893c392569b2faf094d970
+Patch001: 0001-curl-8.9.1-sigpipe.patch
+
Provides: curl-full = %{version}-%{release}
# do not fail when trying to install curl-minimal after drop
Provides: curl-minimal = %{version}-%{release}
@@ -404,6 +408,9 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
%{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
%changelog
+* Mon Aug 5 2024 voidanix <voidanix@keyedlimepie.org> - 8.9.1-2
+- Apply SIGPIPE-related patch due to upstream regression
+
* Wed Jul 24 2024 Jan Macku <jamacku@redhat.com> - 8.9.1-1
- new upstream release
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-03 12:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 12:39 [rpms/curl] curl-v8.23.0-3: Add patch due to upstream curl-8.9.1 regression voidanix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox