From 7be93d8db83e39c62de291a53eb8b88475da95fe Mon Sep 17 00:00:00 2001 From: Rmys Date: Thu, 9 Feb 2023 14:46:14 +0300 Subject: [PATCH] make rebuild --- .../devel/make/files/make-4.4-sigpipe.patch | 33 +++++++++++++++++++ system/devel/make/pspec.xml | 10 ++++-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 system/devel/make/files/make-4.4-sigpipe.patch diff --git a/system/devel/make/files/make-4.4-sigpipe.patch b/system/devel/make/files/make-4.4-sigpipe.patch new file mode 100644 index 00000000..f34d9cfa --- /dev/null +++ b/system/devel/make/files/make-4.4-sigpipe.patch @@ -0,0 +1,33 @@ +From 92ab2e642d2c04b3dcb5a736ae6193680bfd5f74 Mon Sep 17 00:00:00 2001 +From: Paul Smith +Date: Sun, 6 Nov 2022 15:22:02 -0500 +Subject: * src/main.c (main): [SV 63307] Handle SIGPIPE as a fatal signal + +Always ignoring SIGPIPE is visible to child processes. + +diff --git a/src/main.c b/src/main.c +index eec93656..f2caf7a8 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -1182,11 +1182,6 @@ main (int argc, char **argv, char **envp) + /* Useful for attaching debuggers, etc. */ + SPIN ("main-entry"); + +- /* Don't die if our stdout sends us SIGPIPE. */ +-#ifdef SIGPIPE +- bsd_signal (SIGPIPE, SIG_IGN); +-#endif +- + #ifdef HAVE_ATEXIT + if (ANY_SET (check_io_state (), IO_STDOUT_OK)) + atexit (close_stdout); +@@ -1264,6 +1259,9 @@ main (int argc, char **argv, char **envp) + #endif + #ifdef SIGQUIT + FATAL_SIG (SIGQUIT); ++#endif ++#ifdef SIGPIPE ++ FATAL_SIG (SIGPIPE); + #endif + FATAL_SIG (SIGINT); + FATAL_SIG (SIGTERM); diff --git a/system/devel/make/pspec.xml b/system/devel/make/pspec.xml index 5cf00186..27b1384c 100644 --- a/system/devel/make/pspec.xml +++ b/system/devel/make/pspec.xml @@ -22,8 +22,7 @@ - - + make-4.4-sigpipe.patch @@ -43,6 +42,13 @@ + + 2023-02-09 + 4.4 + Rebuild. + Mustafa Cinasal + muscnsl@gmail.com + 2023-01-28 4.4