From 2b2eee6e8a9e41f5ee26411edf0feae574d790e1816572feabadeabbf54a578c Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 16 May 2019 07:41:25 +0000 Subject: [PATCH 1/4] Temporary change to build bash 5.0 static linked for SLES-15 OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=293 --- bash.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bash.spec b/bash.spec index 51b6e96..46ef654 100644 --- a/bash.spec +++ b/bash.spec @@ -84,6 +84,11 @@ BuildRequires: patchutils BuildRequires: pkg-config # This has to be always the same version as included in the bash its self BuildRequires: readline-devel == 8.0 +%if 0%{?sle_version} > 0 +%if 0%{?suse_version} == 1500 +BuildRequires: readline-devel-static == 8.0 +%endif +%endif BuildRequires: screen BuildRequires: sed BuildRequires: update-alternatives @@ -347,6 +352,11 @@ test ${rl1[2]} = ${rl2[2]} || exit 1 # READLINE=" --with-installed-readline +%if 0%{?sle_version} > 0 +%if 0%{?suse_version} == 1500 + --enable-static-link +%endif +%endif " bash support/mkconffiles -v %if %_minsh From 403067309f269438cee0d0e92c7e526a84a38d68786c4db7a15d9ce2cb5a4444 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 16 May 2019 07:55:19 +0000 Subject: [PATCH 2/4] Temporary change to build bash 5.0 static linked for SLES-15 OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=294 --- bash.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bash.spec b/bash.spec index 46ef654..6b9d69a 100644 --- a/bash.spec +++ b/bash.spec @@ -304,6 +304,11 @@ test ${rl1[2]} = ${rl2[2]} || exit 1 LARGEFILE="$(getconf LFS_CFLAGS)" CFLAGS="$RPM_OPT_FLAGS $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g" LDFLAGS="" +%if 0%{?sle_version} > 0 +%if 0%{?suse_version} == 1500 + LDFLAGS="-Wl,-Bstatic -lreadline -Wl,-Bdynamic" +%endif +%endif # # Never ever put -DMUST_UNBLOCK_CHLD herein as this breaks bash # @@ -352,11 +357,6 @@ test ${rl1[2]} = ${rl2[2]} || exit 1 # READLINE=" --with-installed-readline -%if 0%{?sle_version} > 0 -%if 0%{?suse_version} == 1500 - --enable-static-link -%endif -%endif " bash support/mkconffiles -v %if %_minsh From 7cb315952e6cc7efd7b29100ea78f9bc225283fd430807e83d1269122cb7e1ea Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 16 May 2019 08:31:30 +0000 Subject: [PATCH 3/4] Restore previous state OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=295 --- bash.spec | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bash.spec b/bash.spec index 6b9d69a..51b6e96 100644 --- a/bash.spec +++ b/bash.spec @@ -84,11 +84,6 @@ BuildRequires: patchutils BuildRequires: pkg-config # This has to be always the same version as included in the bash its self BuildRequires: readline-devel == 8.0 -%if 0%{?sle_version} > 0 -%if 0%{?suse_version} == 1500 -BuildRequires: readline-devel-static == 8.0 -%endif -%endif BuildRequires: screen BuildRequires: sed BuildRequires: update-alternatives @@ -304,11 +299,6 @@ test ${rl1[2]} = ${rl2[2]} || exit 1 LARGEFILE="$(getconf LFS_CFLAGS)" CFLAGS="$RPM_OPT_FLAGS $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g" LDFLAGS="" -%if 0%{?sle_version} > 0 -%if 0%{?suse_version} == 1500 - LDFLAGS="-Wl,-Bstatic -lreadline -Wl,-Bdynamic" -%endif -%endif # # Never ever put -DMUST_UNBLOCK_CHLD herein as this breaks bash # From d9716910b7f011a570938bc8f91caa016bc159d97055fb9a279a860a6667d5ae Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 15 Aug 2019 13:47:41 +0000 Subject: [PATCH 4/4] Add official patch bash50-008 and bash50-009 OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=296 --- bash-5.0-patches.tar.bz2 | 4 ++-- bash.changes | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bash-5.0-patches.tar.bz2 b/bash-5.0-patches.tar.bz2 index 7416d81..301135a 100644 --- a/bash-5.0-patches.tar.bz2 +++ b/bash-5.0-patches.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:09106519737856f4ff06a5088d9c3c9b804afdb69e2812aa9c1993f9d7f1954a -size 6768 +oid sha256:0e159d1054254d66c5bf02f0c59eb468df678253b29ee4485def1e5e26ffe9c2 +size 7451 diff --git a/bash.changes b/bash.changes index 7cba725..9d5ca5c 100644 --- a/bash.changes +++ b/bash.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Aug 15 13:43:55 UTC 2019 - Dr. Werner Fink + +- Add official patch bash50-008 + When HISTSIZE is set to 0, history expansion can leave the history length + set to an incorrect value, leading to subsequent attempts to access invalid + memory. +- Add official patch bash50-009 + The history file reading code doesn't close the file descriptor open to + the history file when it encounters a zero-length file. + ------------------------------------------------------------------- Tue Apr 23 12:58:16 UTC 2019 - Dr. Werner Fink