Add patches bash52-001 and bash52-002

OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=357
This commit is contained in:
Dr. Werner Fink 2022-10-06 12:13:37 +00:00 committed by Git OBS Bridge
parent 9b78f4b218
commit d307901792
3 changed files with 25 additions and 5 deletions

BIN
bash-5.2-patches.tar.bz2 (Stored with Git LFS)

Binary file not shown.

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Thu Oct 6 10:43:59 UTC 2022 - Dr. Werner Fink <werner@suse.de>
- Add upstream patches
* bash52-001
Expanding unset arrays in an arithmetic context can cause a
segmentation fault.
* bash52-002
Starting bash with an invalid locale specification for
LC_ALL/LANG/LC_CTYPE can cause the shell to crash.
- Do not run checks in parallel as it eats memory, a lot of memory
- Disable alternate array implementation as it eats a lot of memory
-------------------------------------------------------------------
Tue Sep 27 07:54:48 UTC 2022 - Dr. Werner Fink <werner@suse.de>
@ -11,7 +24,6 @@ Tue Sep 27 07:44:16 UTC 2022 - Dr. Werner Fink <werner@suse.de>
- Modernize run-tests
-------------------------------------------------------------------
Sat Sep 24 13:57:27 UTC 2022 - Christopher Yeleighton <giecrilj@stegny.2a.pl>

View File

@ -21,6 +21,8 @@
%else
%bcond_without alternatives
%endif
# Unicode tests do alloc to much memory
%bcond_with altarray
%define bextend %{nil}
%define bversion 5.2
@ -87,6 +89,8 @@ Patch50: quotes-man2html.patch
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: glibc-locale
BuildRequires: glibc-locale-base
BuildRequires: makeinfo
BuildRequires: patchutils
BuildRequires: pkgconfig
@ -442,7 +446,11 @@ test ${rl1[2]} = ${rl2[2]} || exit 1
--enable-help-builtin \
--enable-separate-helpfiles \
--enable-array-variables \
%if %{with altarray}
--enable-alt-array-implementation \
%else
--disable-alt-array-implementation \
%endif
--enable-brace-expansion \
--enable-command-timing \
--enable-disabled-builtins \
@ -465,7 +473,7 @@ test ${rl1[2]} = ${rl2[2]} || exit 1
tail -q -s 0.5 -f $SCREENLOG & pid=$!
env -i HOME=$PWD TERM=$TERM LD_LIBRARY_PATH=$LD_RUN_PATH TMPDIR=$TMPDIR \
SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
screen -D -m %make_build TESTSCRIPT=%{SOURCE4} check
screen -D -m %make_build -j1 TESTSCRIPT=%{SOURCE4} check
kill -TERM $pid
%if 0%{?do_profiling}
rm -f jobs.gcda
@ -478,7 +486,7 @@ test ${rl1[2]} = ${rl2[2]} || exit 1
grep -F '$'\' doc/bash.html %{nil:test for boo#1203091}
%check
%make_build check
%make_build -j1 check
%install
%make_install