Commit Graph

464 Commits

Author SHA1 Message Date
Dr. Werner Fink
b7cee26ef7 Temporary change to build bash 5.0 static linked for SLES-15
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=293
2019-05-16 07:41:25 +00:00
Yuchen Lin
0b5da1973e Accepting request 697366 from Base:System
- Add official patch bash50-004
  * In bash-5.0, the `wait' builtin without arguments waits for all children of the
    shell. This includes children it `inherited' at shell invocation time. This
    patch modifies the behavior to not wait for these inherited children, some
    of which might be long-lived.
- Add official patch bash50-005
  * In certain cases, bash optimizes out a fork() call too early and prevents
    traps from running.
- Add official patch bash50-006
  * Bash-5.0 did not build successfully if SYSLOG_HISTORY was defined without
    also defining SYSLOG_SHOPT.
- Add official patch bash50-007
  * Running `exec' when job control was disabled, even temporarily, but after it
    had been initialized, could leave the terminal in the wrong process group for
    the executed process.

OBS-URL: https://build.opensuse.org/request/show/697366
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=155
2019-04-28 17:56:42 +00:00
Dr. Werner Fink
06e4605bfc Update to bash 5.0.7
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=291
2019-04-24 08:07:10 +00:00
Dominique Leuenberger
45ca510a09 Accepting request 691415 from Base:System
- Add temporary fix from upstream for boo#1128936

- Add patch assignment-preceding-builtin.patch from upstream
  mailing list. Note that this break backward behaviour with
  bash-4.4 but implies that POSIX mode is more correct 

- Replace the temporary patch with official bash50-003

OBS-URL: https://build.opensuse.org/request/show/691415
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=154
2019-04-08 08:29:52 +00:00
Dr. Werner Fink
f94b4b46a3 boo#1128936
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=289
2019-04-04 07:21:24 +00:00
Dr. Werner Fink
435b2d9213 bash-5.0-003 and assignment-preceding-builtin.patch
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=288
2019-03-21 08:27:04 +00:00
Dominique Leuenberger
688e4e1bc8 Accepting request 684640 from Base:System
OBS-URL: https://build.opensuse.org/request/show/684640
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=153
2019-03-18 09:33:32 +00:00
Dr. Werner Fink
59f3a6a56d Accepting request 684575 from openSUSE:Factory
This is what was lost in Base:System due to the revert of bash in openSUSE:Factory

See https://bugzilla.opensuse.org/show_bug.cgi?id=1129036

It is up to you to decide what to do with it - but at least in its current form,
it is not working (install cycle with u-a/bash, detailed in the bug)

At least the non-/bin/sh related changes, like the patches, are certainly still wanted though.


- Update temporary patch from upstream to make sed testsuite
  work again

- Requires(postun) -> Requires(preun)

- Do not link /bin/sh as slave alternative to /usr/bin/sh

- Add temporary patch from upstream to fix boo#1127700

- Refine and harden update-alternatives work flow
- Move header and Makefile from bash-loadables to bash-devel 

- Make update-alternatives work flawless

- Put "sh" under control of update-alternatives

OBS-URL: https://build.opensuse.org/request/show/684575
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=286
2019-03-13 09:47:48 +00:00
Dominique Leuenberger
3eaeedece0 Revert /bin/sh handling, see https://bugzilla.opensuse.org/show_bug.cgi?id=1129036
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=152
2019-03-13 08:47:41 +00:00
OBS User buildservice-autocommit
e3e03d6844 Updating link to change in openSUSE:Factory/bash revision 152.0
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=27cc63c809dc006b287f7ff21a894ae9
2019-03-13 08:47:41 +00:00
Dominique Leuenberger
aa8b621240 Accepting request 683701 from Base:System
- Update temporary patch from upstream to make sed testsuite
  work again

- Requires(postun) -> Requires(preun)

- Do not link /bin/sh as slave alternative to /usr/bin/sh

- Add temporary patch from upstream to fix boo#1127700

- Refine and harden update-alternatives work flow
- Move header and Makefile from bash-loadables to bash-devel 

- Make update-alternatives work flawless

- Put "sh" under control of update-alternatives

OBS-URL: https://build.opensuse.org/request/show/683701
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=151
2019-03-13 08:04:43 +00:00
Dr. Werner Fink
60d7c1de11 Update temporary patch from upstream to make sed testsuite work again
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=284
2019-03-11 07:33:22 +00:00
Dr. Werner Fink
fa9d81339a Requires(postun) -> Requires(preun)
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=283
2019-03-06 11:08:24 +00:00
Dr. Werner Fink
abf9b51ef9 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=282
2019-03-05 14:06:47 +00:00
Dr. Werner Fink
9106a65f1b .
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=281
2019-03-05 12:43:41 +00:00
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