Commit Graph

449 Commits

Author SHA1 Message Date
Dr. Werner Fink
e9cd66710e Repair build environment in Base:System
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=280
2019-03-05 12:24:22 +00:00
Dr. Werner Fink
673b3e4972 Do not link /bin/sh as slave alternative to /usr/bin/sh
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=279
2019-03-05 12:08:17 +00:00
Dr. Werner Fink
ce134bb18f Add temporary patch from upstream to fix boo#1127700
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=278
2019-03-04 14:33:14 +00:00
Dr. Werner Fink
1c5e5d95f0 Refine update alternatives
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=277
2019-03-04 10:18:00 +00:00
Dr. Werner Fink
e8a5212472 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=276
2019-03-01 15:00:33 +00:00
Dr. Werner Fink
33fc734348 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=275
2019-03-01 14:45:10 +00:00
Dr. Werner Fink
fe7ab20ef8 ghosts
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=274
2019-03-01 14:10:47 +00:00
Dr. Werner Fink
d6f1e24b21 Accepting request 672763 from home:jengelh:branches:Base:System
- Put "sh" under control of update-alternatives
(allows doing the same for dash)

OBS-URL: https://build.opensuse.org/request/show/672763
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=273
2019-03-01 12:21:51 +00:00
Dominique Leuenberger
a8fb8c6599 Accepting request 672490 from Base:System
- Add upstream patches bash50-001 and bash50-002

OBS-URL: https://build.opensuse.org/request/show/672490
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=150
2019-02-14 13:10:51 +00:00
Dr. Werner Fink
0e0be74bb2 Add upstream patches bash50-001 and bash50-002
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=271
2019-02-07 15:09:21 +00:00
Dominique Leuenberger
f9e495fcc1 Accepting request 664075 from Base:System
- Update to bash 5.0 (final)
  a. Tilde expansion isn't performed on indexed array subscripts, even for
     backwards compatibility.
  b. The shell doesn't exit in posix mode if the eval builtin gets a parse
     error when run by the command builtin.
  c. Fixed a bug that caused a shell comment in an alias to not find the end
     of the alias properly.
  d. Reverted a change from April, 2018 that caused strings containing
     backslashes to be flagged as glob patterns.
- Modify patches
  * bash-2.03-manual.patch
  * bash-4.3-loadables.dif
  * bash-5.0.dif

- Update to bash 5.0 rc1
  a. Fix to initial word completion detection code.
  b. Fixed a bug that caused issues with assignment statements containing ^A in
     the value assigned when IFS contains ^A.
  c. Added a fallback to fnmatch() when strcoll can't correctly deal with
     bracket expression character equivalence classes.
  d. Fixed a bug that caused $BASH_COMMAND to contain the trap handler command
     when running a trap handler containing [[ or (( commands.
  e. Fixed a bug that caused nameref assignments in the temporary environment
     to potentially create variables with invalid names.
  f. Fixed a bug that caused `local -' to turn off alias expansion in scripts.
  g. Fixed a parser issue with a command string containing EOF after an invalid
     command as an argument to a special builtin not causing a posix-mode shell
     to exit.
  h. Made a slight change to the FNV-1 string hash algorithm used for associative
     arrays (corrected the initial seed).

OBS-URL: https://build.opensuse.org/request/show/664075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=149
2019-01-29 13:38:13 +00:00
Dr. Werner Fink
f67253210a Update to bash-5.0
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=269
2019-01-09 13:08:47 +00:00
Dominique Leuenberger
63bcf57eb3 Accepting request 621861 from Base:System
- Add bash-memmove.patch to make bash.html build reproducible (boo#1100488)

- In patch bash-4.4.dif avoid setgroups(2) but use initgroups(3) (boo#1095670)

OBS-URL: https://build.opensuse.org/request/show/621861
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=148
2018-07-17 07:36:24 +00:00
Dr. Werner Fink
d5df4a43f4 boo#1100488
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=267
2018-07-10 10:01:43 +00:00
Dr. Werner Fink
9215244af1 Accepting request 621385 from home:bmwiedemann:reproducible:test
Add bash-memmove.patch to make bash.html build reproducible (boo#1100488)

OBS-URL: https://build.opensuse.org/request/show/621385
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=266
2018-07-10 09:59:35 +00:00
Yuchen Lin
5d6883a93f Accepting request 614491 from Base:System
OBS-URL: https://build.opensuse.org/request/show/614491
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=147
2018-06-13 13:13:01 +00:00
Dr. Werner Fink
ced73c8702 Accepting request 613679 from home:avindra:branches:Base:System
- Add patch 20, 21, 22 and 23 to bash-4.4-patches.tar.bz2
  * 20: In circumstances involving long-running scripts that create
    and reap many processes, it is possible for the hash table bash
    uses to store exit statuses from asynchronous processes to
    develop loops. This patch fixes the loop causes and adds code
    to detect any future loops.
  * 21: A SIGINT received inside a SIGINT trap handler can possibly
    cause the shell to loop.
  * 22: There are cases where a failing readline command (e.g.,
    delete-char at the end of a line) can cause a multi-character
    key sequence to `back up' and attempt to re-read some of the
    characters in the sequence.
  * 23: When sourcing a file from an interactive shell, setting the
    SIGINT handler to the default and typing ^C will cause the
    shell to exit.
- remove bash-4.4-wait-sigint-handler.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/613679
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=264
2018-06-06 08:34:03 +00:00
Dr. Werner Fink
526b82607c In patch bash-4.4.dif avoud setgroups(2) but use initgroups(3)
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=263
2018-06-04 11:40:45 +00:00
Dominique Leuenberger
2466663b26 Accepting request 598555 from Base:System
- Add patch bash-4.4-wait-sigint-handler.patch to fix bug bsc#1086247
  that is repeating self inserting trap due external command in the
  trap.

OBS-URL: https://build.opensuse.org/request/show/598555
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=146
2018-04-22 12:35:33 +00:00
Dr. Werner Fink
3b530b728b fix bug bsc#1086247
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=261
2018-04-19 12:34:09 +00:00
Dominique Leuenberger
52bb5e5bd0 Accepting request 587961 from Base:System
- Make sure that correct readline-devel version is used (current 7.0) 

- Correct documentation path 

- Due package split removed patches (for the bots)
  * readline-6.2-xmalloc.dif
  * readline-6.2-endpw.dif
  * readline-6.3-destdir.patch
  * readline-6.2-metamode.patch
  * readline-7.0.dif
  * readline-6.3-input.dif
  * readline-5.2-conf.patch
  * readline-6.3-rltrace.patch

- Split readline off into its own package

OBS-URL: https://build.opensuse.org/request/show/587961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=145
2018-03-22 10:52:33 +00:00
Dr. Werner Fink
50b5e1ae63 Readline version check at build
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=259
2018-03-16 18:25:33 +00:00
Dr. Werner Fink
e999f6ca71 /usr/share/doc/packages/%{name}/
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=258
2018-03-16 06:54:20 +00:00
Dr. Werner Fink
ab94dc8352 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=257
2018-03-12 15:32:27 +00:00
Dr. Werner Fink
bf77a35541 Accepting request 585952 from home:Andreas_Schwab:Factory
- Split readline off into its own package

OBS-URL: https://build.opensuse.org/request/show/585952
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=256
2018-03-12 15:23:59 +00:00
Dominique Leuenberger
032a7bf688 Accepting request 580635 from Base:System
- Create readline-devel-static package to re-enable static libraries
  again (boo#1082913)

- Use %license (boo#1082318)

OBS-URL: https://build.opensuse.org/request/show/580635
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=144
2018-03-07 09:28:20 +00:00
Dr. Werner Fink
9a131a1247 static readline libs
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=254
2018-02-27 14:38:26 +00:00
2c1afa84ec Accepting request 580078 from home:favogt:licensetag
Use %license (boo#1082318). Please forward to SLE, if possible

OBS-URL: https://build.opensuse.org/request/show/580078
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=253
2018-02-27 09:48:21 +00:00
Dominique Leuenberger
b399fd66b9 Accepting request 573586 from Base:System
OBS-URL: https://build.opensuse.org/request/show/573586
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=143
2018-02-10 16:52:08 +00:00
Dr. Werner Fink
f7635ef826 Accepting request 573552 from home:avindra
- Add patch 19 to bash-4.4-patches.tar.bz2
  * With certain values for PS1, especially those that wrap onto
    three or more lines, readline will miscalculate the number of
    invisible characters, leading to crashes and core dumps.

OBS-URL: https://build.opensuse.org/request/show/573552
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=251
2018-02-07 07:10:01 +00:00
Dominique Leuenberger
270f9a687a Accepting request 570849 from Base:System
- Add patches 13-18 to bash-4.4-patches.tar.bz2
  * 13: If a here-document contains a command substitution, the
    command substitution can get access to the file descriptor used
    to write the here-document.
  * 14: Under some circumstances, functions that return via the
    `return' builtin do not clean up memory they allocated to keep
    track of FIFOs.
  * 15: Process substitution can leak internal quoting to the
    parser in the invoked subshell.
  * 16: Bash can perform trap processing while reading command
    substitution output instead of waiting until the command
    completes.
  * 17: There is a memory leak when `read -e' is used to read a
    line using readline.
  * 18: Under certain circumstances (e.g., reading from /dev/zero),
    read(2) will not return -1 even when interrupted by a signal.
    The read builtin needs to check for signals in this case.
- partial cleanup with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/570849
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=142
2018-02-03 14:35:40 +00:00
Dr. Werner Fink
ff398b2191 %defattr(-,root,root)
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=249
2018-01-30 07:20:06 +00:00
Dr. Werner Fink
800cfd5133 Accepting request 570827 from home:avindra
- Add patches 13-18 to bash-4.4-patches.tar.bz2
  * 13: If a here-document contains a command substitution, the
    command substitution can get access to the file descriptor used
    to write the here-document.
  * 14: Under some circumstances, functions that return via the
    `return' builtin do not clean up memory they allocated to keep
    track of FIFOs.
  * 15: Process substitution can leak internal quoting to the
    parser in the invoked subshell.
  * 16: Bash can perform trap processing while reading command
    substitution output instead of waiting until the command
    completes.
  * 17: There is a memory leak when `read -e' is used to read a
    line using readline.
  * 18: Under certain circumstances (e.g., reading from /dev/zero),
    read(2) will not return -1 even when interrupted by a signal.
    The read builtin needs to check for signals in this case.
- partial cleanup with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/570827
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=248
2018-01-30 07:16:19 +00:00
Dominique Leuenberger
324187c675 Accepting request 569479 from Base:System
- Modify patch bash-4.3-pathtemp.patch to avoid crash at full
  file system (boo#1076909)

OBS-URL: https://build.opensuse.org/request/show/569479
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=141
2018-01-29 13:54:57 +00:00
Dr. Werner Fink
efc24a4967 Add fix for boo#1076909
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=246
2018-01-24 12:42:37 +00:00
Dominique Leuenberger
ab109129c5 Accepting request 555156 from Base:System
- Enable multibyte characters by default

OBS-URL: https://build.opensuse.org/request/show/555156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=140
2017-12-12 20:19:15 +00:00
Dr. Werner Fink
a9446ef467 Enable multibyte characters by default
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=244
2017-12-08 06:13:58 +00:00
Dominique Leuenberger
662bbff064 Accepting request 528605 from Base:System
- Modify patch bash-4.4.dif to let bashline.h install as well as
  this header file is included by general.h due to the same patch
  (boo#1060069)

OBS-URL: https://build.opensuse.org/request/show/528605
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=139
2017-10-02 14:43:53 +00:00
Dr. Werner Fink
60bc147691 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=242
2017-09-25 09:15:48 +00:00
Dominique Leuenberger
88c38ea3a2 Accepting request 498391 from Base:System
Make build reproducible in spite of profile based optimizations (boo#1040589) (forwarded request 498339 from bmwiedemann)

OBS-URL: https://build.opensuse.org/request/show/498391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=138
2017-06-02 08:30:54 +00:00
Dr. Werner Fink
0299389492 Accepting request 498339 from home:bmwiedemann:branches:Base:System
Make build reproducible in spite of profile based optimizations (boo#1040589)

OBS-URL: https://build.opensuse.org/request/show/498339
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=240
2017-05-26 06:34:47 +00:00
Dr. Werner Fink
b52cdc65e2 Accepting request 497989 from home:bmwiedemann:branches:Base:System
Allow to disable do_profiling in builds (related to boo#1040589)

now keeping the tests enabled

OBS-URL: https://build.opensuse.org/request/show/497989
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=239
2017-05-24 13:58:50 +00:00
Dominique Leuenberger
5292863f38 Accepting request 491274 from Base:System
- Simplify patch readline-5.2-conf.patch 

- Do not throw info and manual pages away

OBS-URL: https://build.opensuse.org/request/show/491274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=137
2017-05-17 08:45:13 +00:00
Dr. Werner Fink
2cf1224931 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=237
2017-04-26 16:05:14 +00:00
Dr. Werner Fink
08ad72078a .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=236
2017-04-25 09:21:03 +00:00
Dominique Leuenberger
4a5e3669b9 Accepting request 460239 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/460239
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=136
2017-03-05 16:49:22 +00:00
Dr. Werner Fink
83b180bf09 remove bash-4.0-async-bnc523667.dif
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=234
2017-02-17 14:10:21 +00:00
Dominique Leuenberger
8a56a515bb Accepting request 453464 from Base:System
- Add upstream patch readline70-002 which replace old one
  There is a race condition in add_history() that can be triggered by a fatal
  signal arriving between the time the history length is updated and the time
  the history list update is completed. A later attempt to reference an
  invalid history entry can cause a crash.
- Add upstream patch readline70-003
  Readline-7.0 uses pselect(2) to allow readline to handle signals that do not
  interrupt read(2), such as SIGALRM, before reading another character.  The
  signal mask used in the pselect call did not take into account signals the
  calling application blocked before calling readline().

- Add upstream patch bash44-006 
  Out-of-range negative offsets to popd can cause the shell to crash
  attempting to free an invalid memory block.
- Remove patch popd-offset-overflow.patch to use bash44-006
- Add upstream patch bash44-007 
  When performing filename completion, bash dequotes the directory
  name being completed, which can result in match failures and
  potential unwanted expansion.
- Duplicate bash44-007 as readline70-002 as it seems to be missed
- Add upstream patch bash44-008 
  Under certain circumstances, bash will evaluate arithmetic
  expressions as part of reading an expression token even when
  evaluation is suppressed. This happens while evaluating a
  conditional expression and skipping over the failed branch of the
  expression.
- Add upstream patch bash44-009 
  There is a race condition in add_history() that can be triggered
  by a fatal signal arriving between the time the history length
  is updated and the time the history list update is completed.

OBS-URL: https://build.opensuse.org/request/show/453464
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=135
2017-02-08 11:11:42 +00:00
Dr. Werner Fink
a2d9a23d44 Also update readline patches
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=232
2017-01-30 16:13:13 +00:00
Dr. Werner Fink
65e65d3aa6 Update from patch 006 upto 012
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=231
2017-01-27 17:54:19 +00:00