SHA256
6
0
forked from pool/bash

16 Commits

Author SHA256 Message Date
16f158c508 Accepting request 1271572 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1271572
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=199
2025-04-23 15:26:42 +00:00
24f7263a79 add -std=gnu17 to CFLAGS to fix gcc15 compile time error
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=401
2025-04-22 09:53:11 +00:00
9b0583936c Accepting request 1267821 from Base:System
- Make it build even on s390 with profiling

OBS-URL: https://build.opensuse.org/request/show/1267821
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=198
2025-04-14 10:55:10 +00:00
f898c87e56 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=399
2025-04-08 06:08:21 +00:00
a943772ba0 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=398
2025-04-04 14:24:31 +00:00
09051f4fdc Accepting request 1251754 from Base:System
Skip PGO with %want_reproducible_builds (boo#1040589) (forwarded request 1251745 from bmwiedemann)

OBS-URL: https://build.opensuse.org/request/show/1251754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=197
2025-03-12 14:19:57 +00:00
84fb95b1c6 Skip PGO with %want_reproducible_builds (boo#1040589)
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=396
2025-03-10 10:35:22 +00:00
4067fbfe71 Accepting request 1248296 from Base:System
- Explicitly specify that the build recipe needs bash (forwarded request 1248227 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/1248296
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=196
2025-02-27 13:48:57 +00:00
76976d061a - Explicitly specify that the build recipe needs bash
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=394
2025-02-25 08:09:14 +00:00
9f72dc4ce8 Accepting request 1240150 from Base:System
- As in bash-sh there is only a symbolic link avoid to require a version

- Move (/etc/skel/.bashrc) and (/etc/skel/.profile) to (/usr/etc/skel/).

OBS-URL: https://build.opensuse.org/request/show/1240150
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=195
2025-01-25 18:10:09 +00:00
f5f7eccbf4 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=392
2025-01-24 12:10:46 +00:00
6fd380aa66 - Move (/etc/skel/.bashrc) and (/etc/skel/.profile) to (/usr/etc/skel/).
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=391
2025-01-24 12:08:52 +00:00
6f5213578a Accepting request 1233142 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1233142
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=194
2024-12-24 15:25:28 +00:00
62053e37b8 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=389
2024-12-16 12:47:42 +00:00
df7b276f8f Accepting request 1203319 from Base:System
- Add upstream patches
  * bash52-037
    Fix the case where text to be completed from the line buffer (quoted) is
    compared to the common prefix of the possible matches (unquoted) and the
    quoting makes the former appear to be longer than the latter. Readline
    assumes the match doesn't add any characters to the word and doesn't display
    multiple matches.
  * bash52-036
    When readline is accumulating bytes until it reads a complete multibyte
    character, reading a byte that makes the multibyte character invalid can
    result in discarding the bytes in the partial character.
  * bash52-035
    There are systems that supply one of select or pselect, but not both.
  * bash52-034
    If we parse a compound assignment during an alias expansion, it's possible
    to have the current input string popped out from underneath the parse. In
    this case, we should not restore the input we were using when we began to
    parse the compound assignment.
  * bash52-033
    A typo in the autoconf test for strtold causes false negatives for strtold
    being available and working when compiled with gcc-14.
- Port patch bash-3.2-printf.patch to fit change in bash52-033

OBS-URL: https://build.opensuse.org/request/show/1203319
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=193
2024-09-25 19:51:33 +00:00
28a8c60032 Update to bash-5.2 patch level 37
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=387
2024-09-25 07:21:27 +00:00
5 changed files with 83 additions and 36 deletions

View File

@ -24,7 +24,7 @@
@@ -710,7 +711,12 @@ printf_builtin (list) @@ -710,7 +711,12 @@ printf_builtin (list)
p = getfloatmax (); p = getfloatmax ();
f = mklong (start, "L", 1); f = mklong (start, FLOATMAX_CONV, USE_LONG_DOUBLE);
+ +
+ if (lce && lcl) setlocale(LC_NUMERIC, lce); + if (lce && lcl) setlocale(LC_NUMERIC, lce);
+ +

View File

@ -1,15 +0,0 @@
---
config-top.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- config-top.h
+++ config-top.h 2018-09-20 08:15:45.026318359 +0000
@@ -142,7 +142,7 @@
/* Define to 0 if you want the checkwinsize option off by default, 1 if you
want it on. */
-#define CHECKWINSIZE_DEFAULT 0
+#define CHECKWINSIZE_DEFAULT 1
/* Define to 1 if you want to optimize for sequential array assignment when
using indexed arrays, 0 if you want bash-4.2 behavior, which favors

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

Binary file not shown.

View File

@ -1,3 +1,64 @@
-------------------------------------------------------------------
Sun Apr 20 20:27:08 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
- add -std=gnu17 to CFLAGS to fix gcc15 compile time error
-------------------------------------------------------------------
Tue Apr 8 06:07:24 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Make it build even on s390 with profiling
-------------------------------------------------------------------
Mon Mar 10 09:38:26 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
- Skip PGO with %want_reproducible_builds (boo#1040589)
-------------------------------------------------------------------
Mon Feb 24 18:21:33 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Explicitly specify that the build recipe needs bash
-------------------------------------------------------------------
Fri Jan 24 12:09:40 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- As in bash-sh there is only a symbolic link avoid to require a version
-------------------------------------------------------------------
Sat Dec 28 20:38:43 UTC 2024 - Heitor Moreira da Silva <heitor@opensuse.org>
- Move (/etc/skel/.bashrc) and (/etc/skel/.profile) to (/usr/etc/skel/).
-------------------------------------------------------------------
Mon Dec 16 12:47:07 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Remove bash-4.3-winch.dif as this is the (current) default
-------------------------------------------------------------------
Wed Sep 25 06:33:29 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Add upstream patches
* bash52-037
Fix the case where text to be completed from the line buffer (quoted) is
compared to the common prefix of the possible matches (unquoted) and the
quoting makes the former appear to be longer than the latter. Readline
assumes the match doesn't add any characters to the word and doesn't display
multiple matches.
* bash52-036
When readline is accumulating bytes until it reads a complete multibyte
character, reading a byte that makes the multibyte character invalid can
result in discarding the bytes in the partial character.
* bash52-035
There are systems that supply one of select or pselect, but not both.
* bash52-034
If we parse a compound assignment during an alias expansion, it's possible
to have the current input string popped out from underneath the parse. In
this case, we should not restore the input we were using when we began to
parse the compound assignment.
* bash52-033
A typo in the autoconf test for strtold causes false negatives for strtold
being available and working when compiled with gcc-14.
- Port patch bash-3.2-printf.patch to fit change in bash52-033
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 19 08:57:30 UTC 2024 - Dr. Werner Fink <werner@suse.de> Mon Aug 19 08:57:30 UTC 2024 - Dr. Werner Fink <werner@suse.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package bash # spec file for package bash
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,7 @@
# #
%define _buildshell /bin/bash
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
%bcond_with alternatives %bcond_with alternatives
%else %else
@ -75,8 +76,6 @@ Patch13: bash-4.2-nscdunmap.dif
Patch14: bash-4.3-sigrestart.patch Patch14: bash-4.3-sigrestart.patch
# PATCH-FIX-UPSTREAM bnc#382214 -- disabled due bnc#806628 by -DBNC382214=0 # PATCH-FIX-UPSTREAM bnc#382214 -- disabled due bnc#806628 by -DBNC382214=0
Patch16: bash-4.0-setlocale.dif Patch16: bash-4.0-setlocale.dif
# PATCH-EXTEND-SUSE bnc#828877 -- xterm resizing does not pass to all sub clients
Patch18: bash-4.3-winch.dif
Patch40: bash-4.1-bash.bashrc.dif Patch40: bash-4.1-bash.bashrc.dif
# PATCH-FIX-SUSE For bsc#1065158 add support for broken Japanese locale Shift JIS # PATCH-FIX-SUSE For bsc#1065158 add support for broken Japanese locale Shift JIS
Patch42: bash-4.3-SJIS.patch Patch42: bash-4.3-SJIS.patch
@ -111,7 +110,7 @@ BuildRequires: pkgconfig(readline) >= %{rl_version}
%if %{with alternatives} %if %{with alternatives}
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(post): libreadline%{rl_major} >= %{rl_version} Requires(post): libreadline%{rl_major} >= %{rl_version}
Requires(preun):update-alternatives Requires(preun): update-alternatives
%endif %endif
Requires: libreadline%{rl_major} >= %{rl_version} Requires: libreadline%{rl_major} >= %{rl_version}
Suggests: bash-doc = %{version} Suggests: bash-doc = %{version}
@ -150,7 +149,7 @@ Group: System/Shells
Provides: alternative(sh) Provides: alternative(sh)
Conflicts: alternative(sh) Conflicts: alternative(sh)
Provides: bash:%{_bindir}/sh Provides: bash:%{_bindir}/sh
PreReq: bash = %{version} PreReq: bash
BuildArch: noarch BuildArch: noarch
%description sh %description sh
@ -240,7 +239,12 @@ Legacy usrmove helper files for the build system. Do not install.
%if %{with sjis} %if %{with sjis}
%{warn:Shift JIS support is enabled} %{warn:Shift JIS support is enabled}
%else %else
%{echo:Shift JIS support disabled} %{echo:Shift JIS support is DISABLED}
%endif
%if %{with alternatives}
%{echo:alternatives is enabled}
%else
%{echo:alternatives is DISABLED}
%endif %endif
%setup -q -n bash-%{bversion}%{bextend} -b1 %setup -q -n bash-%{bversion}%{bextend} -b1
typeset -i level typeset -i level
@ -272,7 +276,6 @@ set -x
%patch -P13 -b .nscdunmap %patch -P13 -b .nscdunmap
%patch -P14 -b .sigrestart %patch -P14 -b .sigrestart
%patch -P16 -b .setlocale %patch -P16 -b .setlocale
#%patch -P18 -p0 -b .winch
%patch -P40 -b .bashrc %patch -P40 -b .bashrc
%if %{with sjis} %if %{with sjis}
%patch -P42 -b .sjis %patch -P42 -b .sjis
@ -357,7 +360,8 @@ echo exit 0 > tests/read7.sub
set +o noclobber set +o noclobber
} }
LARGEFILE="$(getconf LFS_CFLAGS)" LARGEFILE="$(getconf LFS_CFLAGS)"
CFLAGS="%{optflags} $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g" # add -std=gnu17 to build w/ gcc-15; not needed for bash-5.3
CFLAGS="%{optflags} $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g -std=gnu17"
LDFLAGS="" LDFLAGS=""
# #
# Never ever put -DMUST_UNBLOCK_CHLD herein as this breaks bash # Never ever put -DMUST_UNBLOCK_CHLD herein as this breaks bash
@ -484,7 +488,7 @@ echo exit 0 > tests/read7.sub
$READLINE $READLINE
sed -rn '/Configuration feature settings controllable by autoconf/,/End of configuration settings controllable by autoconf/p' < config.h sed -rn '/Configuration feature settings controllable by autoconf/,/End of configuration settings controllable by autoconf/p' < config.h
profilecflags=CFLAGS="$CFLAGS" profilecflags=CFLAGS="$CFLAGS"
%if 0%{?do_profiling} %if 0%{?do_profiling} && !0%{?want_reproducible_builds}
profilecflags=CFLAGS="$CFLAGS %{cflags_profile_generate}" profilecflags=CFLAGS="$CFLAGS %{cflags_profile_generate}"
%endif %endif
ulimit -Hv unlimited ulimit -Hv unlimited
@ -499,7 +503,7 @@ echo exit 0 > tests/read7.sub
SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \ SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
screen -D -m %make_build -j1 TESTSCRIPT=%{SOURCE4} check screen -D -m %make_build -j1 TESTSCRIPT=%{SOURCE4} check
kill -TERM $pid kill -TERM $pid
%if 0%{?do_profiling} %if 0%{?do_profiling} && !0%{?want_reproducible_builds}
rm -f jobs.gcda rm -f jobs.gcda
profilecflags=CFLAGS="$CFLAGS %{cflags_profile_feedback} -fprofile-correction" profilecflags=CFLAGS="$CFLAGS %{cflags_profile_feedback} -fprofile-correction"
%make_build $makeopts "$profilecflags" clean %make_build $makeopts "$profilecflags" clean
@ -565,11 +569,9 @@ set in %{_sysconfdir}/inputrc or $HOME/.inputrc avoids this
but disables multi byte handling. but disables multi byte handling.
EOF EOF
# remove unpackaged files # remove unpackaged files
mkdir -p %{buildroot}%{_sysconfdir}/skel mkdir -p %{buildroot}%{_prefix}%{_sysconfdir}/skel
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/skel/.bashrc install -m 640 %{SOURCE5} %{buildroot}%{_prefix}%{_sysconfdir}/skel/.bashrc
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/skel/.profile install -m 640 %{SOURCE6} %{buildroot}%{_prefix}%{_sysconfdir}/skel/.profile
touch -t 199605181720.50 %{buildroot}%{_sysconfdir}/skel/.bash_history
chmod 600 %{buildroot}%{_sysconfdir}/skel/.bash_history
%find_lang bash %find_lang bash
%fdupes -s %{buildroot}%{_datadir}/bash/helpfiles %fdupes -s %{buildroot}%{_datadir}/bash/helpfiles
sed -ri '1{ s@/bin/sh@/bin/bash@ }' %{buildroot}%{_bindir}/bashbug sed -ri '1{ s@/bin/sh@/bin/bash@ }' %{buildroot}%{_bindir}/bashbug
@ -587,9 +589,8 @@ fi
%files %files
%license COPYING %license COPYING
%config %attr(600,root,root) %{_sysconfdir}/skel/.bash_history %{_prefix}%{_sysconfdir}/skel/.bashrc
%config %attr(644,root,root) %{_sysconfdir}/skel/.bashrc %{_prefix}%{_sysconfdir}/skel/.profile
%config %attr(644,root,root) %{_sysconfdir}/skel/.profile
%if %{with alternatives} %if %{with alternatives}
%ghost %config %{_sysconfdir}/alternatives/sh %ghost %config %{_sysconfdir}/alternatives/sh
%endif %endif