495 Commits

Author SHA256 Message Date
f3a2eb1a60 Accepting request 1322180 from Base:System
- Add upstream patch
  * Bash-5.3 Official patch 8 -- bash53-009
    A SIGINT during a reverse i-search can cause a segmentation fault
    due to accessing data freed by a signal handler.

OBS-URL: https://build.opensuse.org/request/show/1322180
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=204
2025-12-12 20:40:10 +00:00
49082f499f .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=418
2025-12-11 10:04:44 +00:00
c7f94abf87 Accepting request 1320336 from Base:System
- Add upstream patches
  * Bash-5.3 Official patch 4 -- bash53-004
    The Linux kernel reports incorrect sizes for files in /sys/block/*/uevent,
    leading bash to report a read error when the byte count does not agree
    with the file size from fstat(2).
  * Bash-5.3 Official patch 5 -- bash53-005
    Restoring the default disposition in a subshell for a signal bash treats
    specially can cause a crash.
  * Bash-5.3 Official patch 6 -- bash53-006
    When `globasciiranges' is enabled, glob patterns with ranges in bracket
    expressions can produce incorrect matches for character ranges whose
    start and end are non-ascii characters.
  * Bash-5.3 Official patch 7 -- bash53-007
    No-fork command substitutions can perform redirections that act on the
    enclosing command as well.
  * Bash-5.3 Official patch 8 -- bash53-008
    Bash tries to consume entire multibyte characters when looking for backslash
    escapes in $'...' strings, and treats too many characters as potentially
    beginning a multibyte character in UTF-8 locales. Being more selective about
    when to call mbrtowc() can lead to optimized string processing and script
    speedups. This patch also handles the unlikely situation of a locale
    encoding null wide characters with non-null bytes.
- Remove patch boo1254087.patch now upstream with bash53-004

OBS-URL: https://build.opensuse.org/request/show/1320336
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=203
2025-11-28 15:50:28 +00:00
69d28879c8 Update to patch level 8
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=416
2025-11-27 09:15:29 +00:00
493bbaf549 Accepting request 1319067 from Base:System
- Cherry pick from commit 01070d43248fb97f3b2a08d780ae5a392573ce34 
  two fixes:
  * boo1254087.patch -- fix for short reads by `source' builtin (boo#1254087)
  * risc-v.patch -- fix for crash on RISC-V machines

OBS-URL: https://build.opensuse.org/request/show/1319067
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=202
2025-11-24 13:05:06 +00:00
55ed49367f .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=414
2025-11-21 11:23:20 +00:00
665f524c71 Fix for boo#1254087 and fix for RISC-V
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=413
2025-11-21 09:56:37 +00:00
34f048fc25 Accepting request 1308134 from Base:System
To discuss: this would simplyfy our Bootstrap cycle; patchutils just gains new deps on xmlto, which pulls docbook-xsl, docbook-4, libxslt, sgml-skel, and unzip into ring0 - for something we might easily avoid (forwarded request 1307921 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1308134
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=201
2025-10-01 16:55:34 +00:00
2842114277 To discuss: this would simplyfy our Bootstrap cycle; patchutils just gains new deps on xmlto, which pulls docbook-xsl, docbook-4, libxslt, sgml-skel, and unzip into ring0 - for something we might easily avoid
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=411
2025-09-30 08:51:54 +00:00
33941c88ba Accepting request 1296985 from Base:System
- Take refreshed source tar ball with uptodate (g)po files
- Refresh (g)po files as well due our patches

- Add upstream patches
  * bash53-001
    In posix mode, `wait -n' with pid arguments does not restrict the set of
    processes it considers to those arguments.
  * bash53-002
    There are too many differences in the various implementations of shm_open(2)
    to rely on it for bash's use.
  * bash53-003
    Bash leaves internal quoting in place when expanding array subscripts
    that appear inside array subscripts in an arithmetic context, causing
    expansion failures.

- The package bash-loadables supplements a specific bash version

-  Update to bash 5.3
a. When checking whether a script file argument is a binary file, check the
   first two lines of a script if the first line begins with `#!'.
b. Bash does a better job of preserving user-supplied quotes around a word
   completion, instead of requoting it.
c. Bash reports the starting line number in an error message about an
   unterminated compound command like `if' without a `fi'.
d. Implement the POSIX requirement that running the `jobs' builtin removes
   jobs from the jobs list.
f. Call bash signal handlers while executing programmable completion commands,
   instead of readline's.
g. Print an error message if a regular expression used with [[ fails to compile.
h. The `umask' builtin now has additional features for full POSIX conformance.

OBS-URL: https://build.opensuse.org/request/show/1296985
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=200
2025-08-13 14:23:38 +00:00
ee4a955a1b Take refreshed upstream source tar ball
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=409
2025-08-01 08:01:16 +00:00
0fcc03b90e Refresh (g)po file
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=408
2025-08-01 06:02:25 +00:00
d1ee8de64e Add upstream patches bash53-001, bash53-002, and bash53-003
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=407
2025-07-28 11:10:08 +00:00
3dfda705d0 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=406
2025-07-17 10:39:18 +00:00
1ff9bfb719 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=405
2025-07-17 09:33:29 +00:00
345055046f .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=404
2025-07-17 09:28:51 +00:00
6f04a8d61d Update to bash-5.3
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=403
2025-07-17 09:15:35 +00:00
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
29cfdbf34c Accepting request 1194674 from Base:System
- Add upstream patches
  * bash52-027
    The configure test for the presence of strtoimax(3) is inverted.
  * bash52-028
    A DEBUG trap in an asynchronous process can steal the controlling terminal
    away from the calling shell, causing it to exit.
  * bash52-030
    `wait -n' can fail to return some jobs if they exit due to signals the shell
    does not report to the user.
  * bash52-031
    There is a memory leak in the code that implements the optimized $(<file)
    expansion for some code paths.
  * bash52-032
    When printing functions containing coprocesses, the displayed coproc command
    has the word COPROC inserted unconditionally, resulting in function bodies
    that cannot be re-read as input.

OBS-URL: https://build.opensuse.org/request/show/1194674
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=192
2024-08-20 14:12:19 +00:00
8ec570e397 Add upstream patches bash52-027, bash52-028, bash52-030, bash52-031, and bash52-032
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=385
2024-08-19 09:21:15 +00:00
0378552021 Accepting request 1163955 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1163955
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=191
2024-04-03 15:18:10 +00:00
53eb5bfab5 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=383
2024-03-25 14:32:42 +00:00
ba43d5ea5c Accepting request 1152946 from Base:System
- Harden bash to be compiled with gcc 14 (boo#1220564)
  * Modify patch bash-4.2-nscdunmap.dif to include <sys/mman.h>
  * Port bash-5.2.dif to the former change
  * Add patch bash-5.2-gcc14.patch

OBS-URL: https://build.opensuse.org/request/show/1152946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=190
2024-03-01 22:35:57 +00:00
7d70e4ce7c Harden for gcc 14
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=381
2024-02-28 14:05:40 +00:00
15863f5432 Accepting request 1139152 from Base:System
- Add upstream patches
  * bash52-022
    It's possible for readline to try to zero out a line that's not
    null-terminated, leading to a memory fault.
  * bash52-023
    Running `local -' multiple times in a shell function would
    overwrite the original saved set of options.
  * bash52-024
    Fix bug where associative array compound assignment would not
    expand tildes in values.
  * bash52-025
    Make sure a subshell checks for and handles any terminating
    signals before exiting (which might have arrived after the
    command completed) so the parent and any EXIT trap will see
    the correct value for $?.

OBS-URL: https://build.opensuse.org/request/show/1139152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=189
2024-01-17 21:14:14 +00:00
e3bbc3d8c8 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=379
2024-01-16 09:53:38 +00:00
5a7ee7d04a Update to bash 5.2 patchlevel 26
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=378
2024-01-16 09:08:48 +00:00
3dda9bc1a4 Accepting request 1126551 from Base:System
- Declare token YYEOF to be able to support older bison versions
  as well 

- Be sure to have a usable bison installed at build time 

- Add upstream patches
  * bash52-021
    There is an off-by-one error that causes command substitutions to fail when
    they appear in a word expansion inside a here-document.
  * bash52-020
    The parser did not allow `time' to appear as the first reserved word in a
    command substitution.
  * bash52-019
    There are some cases where the shell reaped a background (asynchronous) job
    and would incorrectly try to set the terminal's process group back to the
    shell's. In these cases it never set the terminal process group to that
    jobs's process group initially, so resetting it is incorrect.
  * bash52-018
    There are two problems with returning tokens to yyparse() when the shell
    encounters a syntax error or when it reads EOF.
    When reading a WORD token, the parser has to return the correct value to
    yyparse. Previous versions returned a value < 0, which the bash parser
    translated into YYERRCODE for bison, and in newer versions of bison, the
    appropriate reset actions didn't happen. We should return YYUNDEF, which
    bison uses for `invalid token'. Since we can return a token < 0 for both
    invalid tokens and EOF, the bash tokenizer needs to differentiate between
    those two cases.
  * bash52-017
    In certain cases, using the `.' builtin in a subshell would optimize away
    the rest of the commands in the subshell.

OBS-URL: https://build.opensuse.org/request/show/1126551
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=188
2023-11-17 19:47:59 +00:00
b6fcb37fbd support also older bison versions
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=376
2023-11-15 09:09:46 +00:00
f4a5a50cce bison version
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=375
2023-11-15 07:37:26 +00:00
4973cd1e61 Update to bash 5.2 patchlevel 21
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=374
2023-11-14 17:16:52 +00:00
2adf5b188e Accepting request 1057035 from Base:System
- Replace transitional %usrmerged macro with regular version check (boo#1206798) (forwarded request 1051448 from lnussel)

OBS-URL: https://build.opensuse.org/request/show/1057035
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=187
2023-01-11 13:32:45 +00:00
6eb94e4614 Accepting request 1051448 from home:lnussel:usrmerge
- Replace transitional %usrmerged macro with regular version check (boo#1206798)

OBS-URL: https://build.opensuse.org/request/show/1051448
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=372
2023-01-09 10:27:26 +00:00
1c3fd5819c Accepting request 1043053 from Base:System
- Add upstream patches
  * bash52-013
    Bash can leak memory when referencing a non-existent associative
    array element.
  * bash52-014
    Bash defers processing additional terminating signals when running
    the EXIT trap while exiting due to a terminating signal.  This
    patch allows the new terminating signal to kill the shell immediately.
  * bash52-015
    There are several cases where bash is too aggressive when optimizing
    out forks in subshells. For example, `eval' and traps should never
    be optimized.

OBS-URL: https://build.opensuse.org/request/show/1043053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=186
2022-12-18 16:22:19 +00:00
ec30bb5420 Update to bash52-015
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=370
2022-12-14 14:56:41 +00:00