diff --git a/SOURCES/proc-rv.patch b/SOURCES/proc-rv.patch new file mode 100644 index 0000000..3e2f342 --- /dev/null +++ b/SOURCES/proc-rv.patch @@ -0,0 +1,22 @@ +diff --git a/io.c b/io.c +index 1d440c1..07d8368 100644 +--- a/io.c ++++ b/io.c +@@ -2599,7 +2599,7 @@ wait_any(int interesting) /* pid of interest, if any */ + for (redp = red_head; redp != NULL; redp = redp->next) + if (interesting == redp->pid) { + redp->pid = -1; +- redp->status = status; ++ redp->status = sanitize_exit_status(status); + break; + } + } +@@ -2629,7 +2629,7 @@ wait_any(int interesting) /* pid of interest, if any */ + for (redp = red_head; redp != NULL; redp = redp->next) + if (pid == redp->pid) { + redp->pid = -1; +- redp->status = status; ++ redp->status = sanitize_exit_status(status); + break; + } + } diff --git a/SPECS/gawk.spec b/SPECS/gawk.spec index f2a5e5f..6196c90 100644 --- a/SPECS/gawk.spec +++ b/SPECS/gawk.spec @@ -47,7 +47,7 @@ Name: gawk Summary: The GNU version of the AWK text processing utility Version: 5.1.0 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ and GPLv2+ and LGPLv2+ and BSD @@ -115,7 +115,7 @@ BuildRequires: make # Upstream patches -- official upstream patches released by upstream since the # ---------------- last rebase that are necessary for any reason: #Patch000: example000.patch - +Patch001: proc-rv.patch #Parts of the patch dealing with .info files, were removed, some parts of documentation might be broken #Patch008: gawk-api-version.patch @@ -289,6 +289,10 @@ install -m 0644 -p doc/gawkinet.{pdf,ps} %{buildroot}%{_docdir}/%{name} # ============================================================================= %changelog +* Wed Feb 16 2022 Jakub Martisko - 5.1.0-6 +Fix the issue with incorect handling of return values of some processes +Resolves: rhbz#2055107 + * Mon Aug 09 2021 Mohan Boddu - 5.1.0-5 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688