SHA256
3
0
forked from pool/bash
Commit Graph

462 Commits

Author SHA256 Message Date
Ana Guerrero
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
Dr. Werner Fink
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
Ana Guerrero
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
Dr. Werner Fink
53eb5bfab5 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=383
2024-03-25 14:32:42 +00:00
Dominique Leuenberger
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
Dr. Werner Fink
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
Ana Guerrero
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
Dr. Werner Fink
e3bbc3d8c8 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=379
2024-01-16 09:53:38 +00:00
Dr. Werner Fink
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
Ana Guerrero
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
Dr. Werner Fink
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
Dr. Werner Fink
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
Dr. Werner Fink
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
Dominique Leuenberger
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
Dr. Werner Fink
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
Dominique Leuenberger
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
Dr. Werner Fink
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
Dominique Leuenberger
1c3d3dff33 Accepting request 1038668 from Base:System
- Add upstream patches
  * bash52-010
    Bash-5.2 checks the first 128 characters of an executable file that execve()
    refuses to execute to see whether it's a binary file before trying to
    execute it as a shell script. This defeats some previously-supported use
    cases like "self-executing" jar files or "self-uncompressing" scripts.
  * bash52-011
    Using timeouts and readline editing with the `read' builtin (read -e -t) can
    leave the readline timeout enabled, potentially resulting in an erroneous
    timeout on the next call.
  * bash52-012
    When running in bash compatibility mode, nested command substitutions can
    leave the `extglob' option enabled.

OBS-URL: https://build.opensuse.org/request/show/1038668
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=185
2022-11-30 13:58:49 +00:00
Dr. Werner Fink
c57d56e9f6 Update to bash 5.2 patchlevel 12
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=368
2022-11-28 11:45:55 +00:00
Dominique Leuenberger
6eee2ee368 Accepting request 1035012 from Base:System
- Add upstream patches
  * bash52-003
    Command substitutions need to preserve newlines instead of replacing them
    with semicolons, especially in the presence of multiple here-documents.
  * bash52-004
    Bash needs to keep better track of nested brace expansions to avoid problems
    with quoting and POSIX semantics.
  * bash52-005
    Null pattern substitution replacement strings can cause a crash.
  * bash52-006
    In interactive shells, interrupting the shell while entering a command
    substitution can inhibit alias expansion.
  * bash52-007
    This patch fixes several problems with alias expansion inside command
    substitutions when in POSIX mode.
  * bash52-008
    Array subscript expansion can inappropriately quote brackets if the expression
    contains < or >.
  * bash52-009
    Bash arithmetic expansion should allow `@' and `*' to be used as associative
    array keys in expressions.

OBS-URL: https://build.opensuse.org/request/show/1035012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=184
2022-11-12 16:40:01 +00:00
Dr. Werner Fink
93d34af37b Add upstream patches from bash52-003 up to bash52-009
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=366
2022-11-09 15:14:20 +00:00
Dominique Leuenberger
a6df3f6728 Accepting request 1032788 from Base:System
- Set DEFAULT_LOADABLE_BUILTINS_PATH to get BASH_LOADABLES_PATH
  correct (boo#1204567)

OBS-URL: https://build.opensuse.org/request/show/1032788
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=183
2022-11-04 16:31:21 +00:00
Dr. Werner Fink
f48f1b9e51 BASH_LOADABLES_PATH
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=364
2022-11-02 08:18:10 +00:00
Dominique Leuenberger
a1d59f2d81 Accepting request 1030166 from Base:System
- Explicit require versioned libreadline8 as we face new ABI
  functions used by the bash (boo#1204336)

OBS-URL: https://build.opensuse.org/request/show/1030166
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=182
2022-10-23 14:32:35 +00:00
Dr. Werner Fink
f154a4ce64 Try to avoid trouble with ABI changes of (lib)readline with only minor version update
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=362
2022-10-20 11:26:29 +00:00
Dominique Leuenberger
483f72b908 Accepting request 1010475 from Base:System
- Don't strip binaries
- Work around a signal mask issue with qemu linux-user emulation (forwarded request 1010321 from Andreas_Schwab)

OBS-URL: https://build.opensuse.org/request/show/1010475
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=181
2022-10-18 10:44:09 +00:00
Dr. Werner Fink
9a41239ff4 Accepting request 1010321 from home:Andreas_Schwab:Factory
- Don't strip binaries
- Work around a signal mask issue with qemu linux-user emulation

OBS-URL: https://build.opensuse.org/request/show/1010321
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=360
2022-10-13 12:46:15 +00:00
Dr. Werner Fink
ad93408ffe Accepting request 1010225 from home:Andreas_Schwab:Factory
- Remove backup of patched tests

OBS-URL: https://build.opensuse.org/request/show/1010225
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=359
2022-10-12 12:36:34 +00:00
Richard Brown
25730d0bfa Accepting request 1008386 from Base:System
- 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

- Update to final bash 5.2 
  a. When replacing a history entry, make sure the existing entry has a non-NULL
     timestamp before copying it; it may have been added by the application, not
     the history library.

- Modernize run-tests 

- add checks

- Enable parallel builds by splitting clean and all at make time
- Update to bash 5.2 rc4
  Pos. aa is now enabled by default.
  m. Readline now checks for changes to locale settings (LC_ALL/LC_CTYPE/LANG)
     each time it is called, and modifies the appropriate locale-specific display
- Port patches
  * bash-2.03-manual.patch
  * bash-5.2.dif

- Update to bash 5.2 rc2
  gg. Since there is no `declare -' equivalent of `local -', make sure to use

OBS-URL: https://build.opensuse.org/request/show/1008386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=180
2022-10-11 15:59:13 +00:00
Dr. Werner Fink
df0616707c Add patches bash52-001 and bash52-002
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=357
2022-10-06 12:13:37 +00:00
Dr. Werner Fink
6e8cf7b7b7 Remove leftover bash-5.1-noaq.patch
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=356
2022-09-27 10:08:18 +00:00
Dr. Werner Fink
a46285f21c Update to bash 5.2
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=355
2022-09-27 08:10:33 +00:00
Dr. Werner Fink
5cd8fb7b6b Modernize run-tests
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=354
2022-09-27 07:47:59 +00:00
Dr. Werner Fink
38e59625ac Accepting request 1005780 from home:yecril71pl:branches:Base:System
- add checks
The check in the build section does not check anything because it overrides the test script.

OBS-URL: https://build.opensuse.org/request/show/1005780
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=353
2022-09-27 07:37:07 +00:00
Dominique Leuenberger
f43f485ec4 Accepting request 1004899 from Base:System
- Enable parallel builds by slpitting clean and all at make time
  (Thanks to Christopher Yeleighton)
- Do not copy more than 1 byte for \(aq becoming a "'" in
  quotes-man2html.patch

- Small change in quotes-man2html.patch
  * Use a simple "'" aka quote instead of "&prime;" for "\(aq"

- Add patch quotes-man2html.patch
  * Fix boo#1203091 -- BASH(1) Manual Page: Unprocessed macro aq

OBS-URL: https://build.opensuse.org/request/show/1004899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=179
2022-09-21 12:38:57 +00:00
Dr. Werner Fink
18e165be77 Fix the fix
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=351
2022-09-20 07:01:04 +00:00
Dr. Werner Fink
6d31bdd816 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=350
2022-09-19 13:30:02 +00:00
Dr. Werner Fink
e7e1b06c27 Simple quote
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=349
2022-09-19 13:12:58 +00:00
Dr. Werner Fink
3e6b4919cf boo#1203091
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=348
2022-09-15 13:15:46 +00:00
Dominique Leuenberger
b4c91ec3fc Accepting request 975257 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/975257
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=178
2022-05-10 13:09:36 +00:00
9b0894f00a - use https:// for source urls
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=346
2022-04-28 19:00:51 +00:00
Dominique Leuenberger
6418c2d844 Accepting request 964694 from Base:System
- Do use old legacy PreReq to get bash installed before bash-sh 
  but do not require bash-sh by bash (bsc#1197448)

OBS-URL: https://build.opensuse.org/request/show/964694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=177
2022-03-29 16:13:42 +00:00
Dr. Werner Fink
ea56a00ed8 Do use old legacy PreReq to get bash installed before bash-sh but do not require bash-sh by bash (bsc#1197448)
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=344
2022-03-24 14:45:01 +00:00
Dominique Leuenberger
fa7179c1e9 Accepting request 958697 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/958697
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=176
2022-03-05 13:42:54 +00:00
Dr. Werner Fink
acf579536e get_version_number.sh
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=342
2022-02-24 08:40:56 +00:00
Dr. Werner Fink
1efbd997a2 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=341
2022-02-24 08:22:27 +00:00
Dr. Werner Fink
d132b4a1c1 Signatures of the patches
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=340
2022-02-24 08:18:34 +00:00
Dr. Werner Fink
828b6ce49c Accepting request 957141 from home:bmwiedemann:branches:Base:System
Verify upstream release signatures

OBS-URL: https://build.opensuse.org/request/show/957141
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=339
2022-02-24 08:15:00 +00:00
Dominique Leuenberger
5cd1da5874 Accepting request 947929 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/947929
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=175
2022-01-25 16:35:35 +00:00
Dr. Werner Fink
00b42ecc1f Update bash 5.1 to patch level 16
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=338
2022-01-14 12:01:01 +00:00