From 06e4605bfcc5a73d5c1c329e3bff3188fc4ced01 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 24 Apr 2019 08:07:10 +0000 Subject: [PATCH] Update to bash 5.0.7 OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=291 --- bash-5.0-patches.tar.bz2 | 4 ++-- bash-5.0.dif | 11 +---------- bash-rpmlintrc | 1 + bash.changes | 19 +++++++++++++++++++ bash.spec | 3 ++- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/bash-5.0-patches.tar.bz2 b/bash-5.0-patches.tar.bz2 index 4768086a..988aa454 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:6baeefb72f30dbf93b0ba72d1fa7898c09c6082087684563e656524844a69435 -size 4752 +oid sha256:09106519737856f4ff06a5088d9c3c9b804afdb69e2812aa9c1993f9d7f1954a +size 6768 diff --git a/bash-5.0.dif b/bash-5.0.dif index 621a7c46..6753669d 100644 --- a/bash-5.0.dif +++ b/bash-5.0.dif @@ -6,14 +6,13 @@ general.h | 3 +++ parse.y | 2 +- shell.c | 6 +++++- - support/bashbug.sh | 2 +- support/man2html.c | 1 + support/rlvers.sh | 6 +++--- support/shobj-conf | 5 +++-- tests/glob.tests | 4 ++-- tests/run-intl | 2 +- tests/run-read | 2 +- - 14 files changed, 38 insertions(+), 22 deletions(-) + 13 files changed, 37 insertions(+), 21 deletions(-) --- Makefile.in +++ Makefile.in 2018-11-29 08:14:06.638693338 +0000 @@ -168,14 +167,6 @@ if (setuid (current_user.uid) < 0) { e = errno; ---- support/bashbug.sh -+++ support/bashbug.sh 2018-11-29 08:14:06.638693338 +0000 -@@ -1,4 +1,4 @@ --#!/bin/sh - -+#!/bin/bash - - # - # bashbug - create a bug report and mail it to the bug address - # --- support/man2html.c +++ support/man2html.c 2018-11-29 08:14:06.638693338 +0000 @@ -78,6 +78,7 @@ diff --git a/bash-rpmlintrc b/bash-rpmlintrc index db5425f0..3dcea1a0 100644 --- a/bash-rpmlintrc +++ b/bash-rpmlintrc @@ -1,2 +1,3 @@ addFilter(".*hidden-file-or-dir.*/etc/skel/\..*") addFilter(".*zero-length.*/etc/skel/\..*") +addFilter(".*call-to-mktemp.*/usr/bin/bash.*") diff --git a/bash.changes b/bash.changes index 1cbc95a8..15b294b4 100644 --- a/bash.changes +++ b/bash.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Tue Apr 23 12:58:16 UTC 2019 - Dr. Werner Fink + +- Add official patch bash50-004 + * In bash-5.0, the `wait' builtin without arguments waits for all children of the + shell. This includes children it `inherited' at shell invocation time. This + patch modifies the behavior to not wait for these inherited children, some + of which might be long-lived. +- Add official patch bash50-005 + * In certain cases, bash optimizes out a fork() call too early and prevents + traps from running. +- Add official patch bash50-006 + * Bash-5.0 did not build successfully if SYSLOG_HISTORY was defined without + also defining SYSLOG_SHOPT. +- Add official patch bash50-007 + * Running `exec' when job control was disabled, even temporarily, but after it + had been initialized, could leave the terminal in the wrong process group for + the executed process. + ------------------------------------------------------------------- Thu Apr 4 07:18:57 UTC 2019 - Dr. Werner Fink diff --git a/bash.spec b/bash.spec index 1136ebcf..785cf787 100644 --- a/bash.spec +++ b/bash.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -492,6 +492,7 @@ EOF chmod 600 %{buildroot}%{_sysconfdir}/skel/.bash_history %find_lang bash %fdupes -s %{buildroot}%{_datadir}/bash/helpfiles + sed -ri '1{ s@/bin/sh@/bin/bash@ }' %{buildroot}%{_bindir}/bashbug %post -p /bin/bash %{_sbindir}/update-alternatives --quiet --force \