diff --git a/curl-8.9.1-sigpipe.patch b/curl-8.9.1-sigpipe.patch new file mode 100644 index 0000000..d308fc4 --- /dev/null +++ b/curl-8.9.1-sigpipe.patch @@ -0,0 +1,26 @@ +https://github.com/curl/curl/commit/3eec5afbd0b6377eca893c392569b2faf094d970 +From: Daniel Stenberg +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 +--- 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 30c6fc3..ebde112 100644 --- a/curl.spec +++ b/curl.spec @@ -2,7 +2,7 @@ Name: curl Version: 8.9.1 -Release: 1mamba +Release: 2mamba Summary: A tool for transfering data with URL syntax that supports many protocols Group: Applications/Networking Vendor: openmamba @@ -10,6 +10,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://curl.se/ Source: http://curl.haxx.se/download/curl-%{version}.tar.bz2 +Patch0: curl-8.9.1-sigpipe.patch License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -91,6 +92,7 @@ This package contains static libraries and header files needed for development. %setup -q #-D -T #:<< _EOF +%patch 0 -p1 -b .sigpipe mkdir gnutls cd gnutls @@ -216,6 +218,9 @@ cd gnutls/lib/ %doc CHANGES README RELEASE-NOTES %changelog +* Mon Aug 05 2024 Silvan Calarco 8.9.1-2mamba +- apply patch resolving a sigpipe issue reported with transmission + * Wed Jul 31 2024 Automatic Build System 8.9.1-1mamba - automatic version update by autodist