From 6a4e61a4aacb56b2a1c96c471eeea674d6c0dabe Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Mar 01 2022 12:38:01 +0000 Subject: import bash-5.1.8-4.el9 --- diff --git a/SOURCES/bash-5.0-syslog-history.patch b/SOURCES/bash-5.0-syslog-history.patch new file mode 100644 index 0000000..1ec2651 --- /dev/null +++ b/SOURCES/bash-5.0-syslog-history.patch @@ -0,0 +1,13 @@ +diff --git a/doc/bash.1 b/doc/bash.1 +--- a/doc/bash.1 ++++ b/doc/bash.1 +@@ -9889,6 +9889,9 @@ If set, the + to find the directory containing the file supplied as an argument. + This option is enabled by default. + .TP 8 ++.B syslog_history ++If set, command history is logged to syslog. ++.TP 8 + .B xpg_echo + If set, the \fBecho\fP builtin expands backslash-escape sequences + by default. diff --git a/SPECS/bash.spec b/SPECS/bash.spec index 2c01dec..752929b 100644 --- a/SPECS/bash.spec +++ b/SPECS/bash.spec @@ -6,7 +6,7 @@ Version: %{baseversion}%{patchleveltag} Name: bash Summary: The GNU Bourne Again shell -Release: 2%{?dist} +Release: 4%{?dist} License: GPLv3+ Url: https://www.gnu.org/software/bash Source0: https://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz @@ -83,6 +83,10 @@ Patch126: bash-4.3-memleak-lc_all.patch # this patch disables it Patch127: bash-4.4-no-loadable-builtins.patch +# 2020519 - [Regression] Add a runtime option to enable history logging to syslog +# This option is undocumented in upstream and is documented by this patch +Patch128: bash-5.0-syslog-history.patch + BuildRequires: gcc BuildRequires: texinfo bison BuildRequires: ncurses-devel @@ -130,7 +134,7 @@ autoconf # Recycles pids is neccessary. When bash's last fork's pid was X # and new fork's pid is also X, bash has to wait for this same pid. # Without Recycles pids bash will not wait. -MFLAGS="CPPFLAGS=-D_GNU_SOURCE -DRECYCLES_PIDS -DDEFAULT_PATH_VALUE='\"/usr/local/bin:/usr/bin\"' `getconf LFS_CFLAGS`" +MFLAGS="CPPFLAGS=-D_GNU_SOURCE -DRECYCLES_PIDS -DDEFAULT_PATH_VALUE='\"/usr/local/bin:/usr/bin\"' `getconf LFS_CFLAGS` -DSYSLOG_HISTORY -DSYSLOG_SHOPT=0" # work around missing deps in Makefiles make "$MFLAGS" version.h @@ -314,6 +318,14 @@ end %{_libdir}/pkgconfig/%{name}.pc %changelog +* Fri Nov 05 2021 Siteshwar Vashisht - 5.1.8-4 +- Fix runtime option to enable history logging to syslog + Resolves: #2020519 + +* Thu Sep 30 2021 Siteshwar Vashisht - 5.1.8-3 +- Bump version number + Resolves: #2006138 + * Mon Aug 09 2021 Mohan Boddu - 5.1.8-2 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688