From 8ec570e3977a00d1418559bec50feb20a4d8162c16806b63036185d2870fbd13 Mon Sep 17 00:00:00 2001
From: "Dr. Werner Fink" <werner@suse.com>
Date: Mon, 19 Aug 2024 09:21:15 +0000
Subject: [PATCH] Add upstream patches bash52-027, bash52-028, bash52-030,
 bash52-031, and bash52-032

OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=385
---
 bash-5.2-patches.tar.bz2 |  4 ++--
 bash.changes             | 20 ++++++++++++++++++++
 bash.spec                |  2 +-
 3 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/bash-5.2-patches.tar.bz2 b/bash-5.2-patches.tar.bz2
index aa7b42b..3579954 100644
--- a/bash-5.2-patches.tar.bz2
+++ b/bash-5.2-patches.tar.bz2
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:fd2f5e8ab1d04f97c681be63d585c545cd4d6b9ba5bee5e42ff06e107fbd9c37
-size 32648
+oid sha256:05848ea08ae66bede10e81d33e64bbde0a308da1a6e02cb866103a94410715ab
+size 35886
diff --git a/bash.changes b/bash.changes
index 8d5b3c5..49981c4 100644
--- a/bash.changes
+++ b/bash.changes
@@ -1,3 +1,23 @@
+-------------------------------------------------------------------
+Mon Aug 19 08:57:30 UTC 2024 - Dr. Werner Fink <werner@suse.de>
+
+- Add upstream patches
+  * bash52-027
+    The configure test for the presence of strtoimax(3) is inverted.
+  * bash52-028
+    A DEBUG trap in an asynchronous process can steal the controlling terminal
+    away from the calling shell, causing it to exit.
+  * bash52-030
+    `wait -n' can fail to return some jobs if they exit due to signals the shell
+    does not report to the user.
+  * bash52-031
+    There is a memory leak in the code that implements the optimized $(<file)
+    expansion for some code paths.
+  * bash52-032
+    When printing functions containing coprocesses, the displayed coproc command
+    has the word COPROC inserted unconditionally, resulting in function bodies
+    that cannot be re-read as input.
+
 -------------------------------------------------------------------
 Mon Mar 25 14:20:17 UTC 2024 - Dr. Werner Fink <werner@suse.de>
 
diff --git a/bash.spec b/bash.spec
index 1796045..13f269f 100644
--- a/bash.spec
+++ b/bash.spec
@@ -111,7 +111,7 @@ BuildRequires:  pkgconfig(readline) >= %{rl_version}
 %if %{with alternatives}
 Requires(post): update-alternatives
 Requires(post): libreadline%{rl_major} >= %{rl_version}
-Requires(preun): update-alternatives
+Requires(preun):update-alternatives
 %endif
 Requires:       libreadline%{rl_major} >= %{rl_version}
 Suggests:       bash-doc = %{version}