diff --git a/srcpkgs/curl/patches/fix-sigpipe.patch b/srcpkgs/curl/patches/fix-sigpipe.patch new file mode 100644 index 00000000000..f4f0346d881 --- /dev/null +++ b/srcpkgs/curl/patches/fix-sigpipe.patch @@ -0,0 +1,32 @@ +From 3eec5afbd0b6377eca893c392569b2faf094d970 Mon Sep 17 00:00:00 2001 +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 +--- + 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/srcpkgs/curl/template b/srcpkgs/curl/template index b69608d4d1c..870d0785715 100644 --- a/srcpkgs/curl/template +++ b/srcpkgs/curl/template @@ -1,6 +1,6 @@ # Template file for 'curl' pkgname=curl -version=8.9.0 +version=8.9.1 revision=1 build_style=gnu-configure configure_args="ac_cv_sizeof_off_t=8 --enable-threaded-resolver --enable-ipv6 @@ -30,7 +30,7 @@ license="MIT" homepage="https://curl.se" changelog="https://curl.se/changes.html" distfiles="https://curl.se/download/curl-${version}.tar.gz" -checksum=14d931fa98a329310dca7b190d047c3d4987674b1f466481f5490e4e12067ba4 +checksum=291124a007ee5111997825940b3876b3048f7d31e73e9caa681b80fe48b2dcd5 build_options="gnutls gssapi idn ldap psl rtmp ssh ssl zstd" build_options_default="idn psl ssh ssl zstd" vopt_conflict ssl gnutls