public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: voidanix <voidanix@keyedlimepie.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: Add patch due to upstream curl-8.9.1 regression
Date: Tue, 03 Nov 2026 12:39:14 GMT	[thread overview]
Message-ID: <179370955454.1.4080941854578723443.rpms-curl-cc42129b020d@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-11-03 12:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179370955454.1.4080941854578723443.rpms-curl-cc42129b020d@fedoraproject.org \
    --to=voidanix@keyedlimepie.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox