Mon Oct 3 12:50:27 2022 UTC ()
bash: update to 5.2.

This is a terse description of the new features added to bash-5.2 since
the release of bash-5.1.  As always, the manual page (doc/bash.1) is
the place to look for complete descriptions.

1. New Features in Bash

a. The bash malloc returns memory that is aligned on 16-byte boundaries.

b. There is a new internal timer framework used for read builtin timeouts.

c. Rewrote the command substitution parsing code to call the parser recursively
   and rebuild the command string from the parsed command. This allows better
   syntax checking and catches errors much earlier. Along with this, if
   command substitution parsing completes with here-documents remaining to be
   read, the shell prints a warning message and reads the here-document bodies
   from the current input stream.

d. The `ulimit' builtin now treats an operand remaining after all of the options
   and arguments are parsed as an argument to the last command specified by
   an option. This is for POSIX compatibility.

e. Here-document parsing now handles $'...' and $"..." quoting when reading the
   here-document body.

f. The `shell-expand-line' and `history-and-alias-expand-line' bindable readline
   commands now understand $'...' and $"..." quoting.

g. There is a new `spell-correct-word' bindable readline command to perform
   spelling correction on the current word.

h. The `unset' builtin now attempts to treat arguments as array subscripts
   without parsing or expanding the subscript, even when `assoc_expand_once'
   is not set.

i. There is a default value for $BASH_LOADABLES_PATH in config-top.h.

j. Associative array assignment and certain instances of referencing (e.g.,
   `test -v' now allow `@' and `*' to be used as keys.

k. Bash attempts to expand indexed array subscripts only once when executing
   shell constructs and word expansions.

l. The `unset' builtin allows a subscript of `@' or `*' to unset a key with
   that value for associative arrays instead of unsetting the entire array
   (which you can still do with `unset arrayname'). For indexed arrays, it
   removes all elements of the array without unsetting it (like `A=()').

m. Additional builtins (printf/test/read/wait) do a better job of not
   parsing array subscripts if array_expand_once is set.

n. New READLINE_ARGUMENT variable set to numeric argument for readline commands
   defined using `bind -x'.

o. The new `varredir_close' shell option causes bash to automatically close
   file descriptors opened with {var}<fn and other styles of varassign
   redirection unless they're arguments to the `exec' builtin.

p. The `$0' special parameter is now set to the name of the script when running
   any (non-interactive) startup files such as $BASH_ENV.

q. The `enable' builtin tries to load a loadable builtin using the default
   search path if `enable name' (without any options) attempts to enable a
   non-existent builtin.

r. The `printf' builtin has a new format specifier: %Q. This acts like %q but
   applies any specified precision to the original unquoted argument, then
   quotes and outputs the result.

s. The new `noexpand_translations' option controls whether or not the translated
   output of $"..." is single-quoted.

t. There is a new parameter transformation operator: @k. This is like @K, but
   expands the result to separate words after word splitting.

u. There is an alternate array implementation, selectable at `configure' time,
   that optimizes access speed over memory use (use the new configure
    --enable-alt-array-implementation option).

v. If an [N]<&WORD- or [N]>&WORD- redirection has WORD expand to the empty
   string, treat the redirection as [N]<&- or [N]>&- and close file descriptor
   N (default 0).

w. Invalid parameter transformation operators are now invalid word expansions,
   and so cause fatal errors in non-interactive shells.

x. New shell option: patsub_replacement. When enabled, a `&' in the replacement
   string of the pattern substitution expansion is replaced by the portion of
   the string that matched the pattern. Backslash will escape the `&' and
   insert a literal `&'.

y. `command -p' no longer looks in the hash table for the specified command.

z. The new `--enable-translatable-strings' option to `configure' allows $"..."
   support to be compiled in or out.

aa. The new `globskipdots' shell option forces pathname expansion never to
    return `.' or `..' unless explicitly matched. It is enabled by default.

bb. Array references using `@' and `*' that are the value of nameref variables
    (declare -n ref='v[@]' ; echo $ref) no longer cause the shell to exit if
    set -u is enabled and the array (v) is unset.

cc. There is a new bindable readline command name:
    `vi-edit-and-execute-command'.

dd. In posix mode, the `printf' builtin checks for the `L' length modifier and
    uses long double for floating point conversion specifiers if it's present,
    double otherwise.

ee. The `globbing' completion code now takes the `globstar' option into account.

ff. `suspend -f' now forces the shell to suspend even if job control is not
   currently enabled.

gg. Since there is no `declare -' equivalent of `local -', make sure to use
    `local -' in the output of `local -p'.


(wiz)
diff -r1.103 -r1.104 pkgsrc/shells/bash/Makefile
diff -r1.11 -r1.12 pkgsrc/shells/bash/PLIST
diff -r1.70 -r1.71 pkgsrc/shells/bash/distinfo
diff -r1.2 -r1.3 pkgsrc/shells/bash/patches/patch-lib_malloc_malloc.c
diff -r1.2 -r1.3 pkgsrc/shells/bash/patches/patch-support_shobj-conf

cvs diff -r1.103 -r1.104 pkgsrc/shells/bash/Makefile (expand / switch to unified diff)

--- pkgsrc/shells/bash/Makefile 2022/01/05 20:50:16 1.103
+++ pkgsrc/shells/bash/Makefile 2022/10/03 12:50:27 1.104
@@ -1,28 +1,27 @@ @@ -1,28 +1,27 @@
1# $NetBSD: Makefile,v 1.103 2022/01/05 20:50:16 wiz Exp $ 1# $NetBSD: Makefile,v 1.104 2022/10/03 12:50:27 wiz Exp $
2 2
3BASH_VERSION= 5.1 3BASH_VERSION= 5.2
4BASH_PATCHLEVEL= 16 
5 4
6DISTNAME= bash-${BASH_VERSION} 5DISTNAME= bash-${BASH_VERSION}
7PKGNAME= bash-${BASH_VERSION}.${BASH_PATCHLEVEL} 6#PKGNAME= bash-${BASH_VERSION}.${BASH_PATCHLEVEL}
8CATEGORIES= shells 7CATEGORIES= shells
9MASTER_SITES= ${MASTER_SITE_GNU:=bash/} 8MASTER_SITES= ${MASTER_SITE_GNU:=bash/}
10 9
11PATCH_SITES= ${MASTER_SITES:=bash-5.1-patches/} 10#PATCH_SITES= ${MASTER_SITES:=bash-5.1-patches/}
12PATCHFILES+= bash51-001 bash51-002 bash51-003 bash51-004 11#PATCHFILES+= bash51-001 bash51-002 bash51-003 bash51-004
13PATCHFILES+= bash51-005 bash51-006 bash51-007 bash51-008 12#PATCHFILES+= bash51-005 bash51-006 bash51-007 bash51-008
14PATCHFILES+= bash51-009 bash51-010 bash51-011 bash51-012 13#PATCHFILES+= bash51-009 bash51-010 bash51-011 bash51-012
15PATCHFILES+= bash51-013 bash51-014 bash51-015 bash51-016 14#PATCHFILES+= bash51-013 bash51-014 bash51-015 bash51-016
16 15
17MAINTAINER= pkgsrc-users@NetBSD.org 16MAINTAINER= pkgsrc-users@NetBSD.org
18HOMEPAGE= https://www.gnu.org/software/bash/bash.html 17HOMEPAGE= https://www.gnu.org/software/bash/bash.html
19COMMENT= The GNU Bourne Again Shell 18COMMENT= The GNU Bourne Again Shell
20LICENSE= gnu-gpl-v3 19LICENSE= gnu-gpl-v3
21 20
22USE_TOOLS+= makeinfo bison 21USE_TOOLS+= makeinfo bison
23TEXINFO_REQD= 4.1 22TEXINFO_REQD= 4.1
24GNU_CONFIGURE= yes 23GNU_CONFIGURE= yes
25MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} 24MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
26CONFIGURE_ARGS= LOCAL_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS:M*:Q} 25CONFIGURE_ARGS= LOCAL_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS:M*:Q}
27CPPFLAGS+= -DDEFAULT_PATH_VALUE="\"/sbin:/usr/sbin:/usr/bin:/bin:${PREFIX}/sbin:${PREFIX}/bin:/usr/local/sbin:/usr/local/bin\"" 26CPPFLAGS+= -DDEFAULT_PATH_VALUE="\"/sbin:/usr/sbin:/usr/bin:/bin:${PREFIX}/sbin:${PREFIX}/bin:/usr/local/sbin:/usr/local/bin\""
28TEST_TARGET= test 27TEST_TARGET= test

cvs diff -r1.11 -r1.12 pkgsrc/shells/bash/PLIST (expand / switch to unified diff)

--- pkgsrc/shells/bash/PLIST 2021/01/04 10:39:23 1.11
+++ pkgsrc/shells/bash/PLIST 2022/10/03 12:50:27 1.12
@@ -1,36 +1,37 @@ @@ -1,36 +1,37 @@
1@comment $NetBSD: PLIST,v 1.11 2021/01/04 10:39:23 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.12 2022/10/03 12:50:27 wiz Exp $
2bin/bash 2bin/bash
3bin/bashbug 3bin/bashbug
4include/bash/alias.h 4include/bash/alias.h
5include/bash/array.h 5include/bash/array.h
6include/bash/arrayfunc.h 6include/bash/arrayfunc.h
7include/bash/assoc.h 7include/bash/assoc.h
8include/bash/bashansi.h 8include/bash/bashansi.h
9include/bash/bashintl.h 9include/bash/bashintl.h
10include/bash/bashjmp.h 10include/bash/bashjmp.h
11include/bash/bashtypes.h 11include/bash/bashtypes.h
12include/bash/builtins.h 12include/bash/builtins.h
13include/bash/builtins/bashgetopt.h 13include/bash/builtins/bashgetopt.h
14include/bash/builtins/builtext.h 14include/bash/builtins/builtext.h
15include/bash/builtins/common.h 15include/bash/builtins/common.h
16include/bash/builtins/getopt.h 16include/bash/builtins/getopt.h
17include/bash/command.h 17include/bash/command.h
18include/bash/config-bot.h 18include/bash/config-bot.h
19include/bash/config-top.h 19include/bash/config-top.h
20include/bash/config.h 20include/bash/config.h
21include/bash/conftypes.h 21include/bash/conftypes.h
22include/bash/dispose_cmd.h 22include/bash/dispose_cmd.h
23include/bash/error.h 23include/bash/error.h
 24include/bash/execute_cmd.h
24include/bash/externs.h 25include/bash/externs.h
25include/bash/general.h 26include/bash/general.h
26include/bash/hashlib.h 27include/bash/hashlib.h
27include/bash/include/ansi_stdlib.h 28include/bash/include/ansi_stdlib.h
28include/bash/include/chartypes.h 29include/bash/include/chartypes.h
29include/bash/include/filecntl.h 30include/bash/include/filecntl.h
30include/bash/include/gettext.h 31include/bash/include/gettext.h
31include/bash/include/maxpath.h 32include/bash/include/maxpath.h
32include/bash/include/memalloc.h 33include/bash/include/memalloc.h
33include/bash/include/ocache.h 34include/bash/include/ocache.h
34include/bash/include/posixdir.h 35include/bash/include/posixdir.h
35include/bash/include/posixjmp.h 36include/bash/include/posixjmp.h
36include/bash/include/posixstat.h 37include/bash/include/posixstat.h
@@ -51,52 +52,56 @@ include/bash/quit.h @@ -51,52 +52,56 @@ include/bash/quit.h
51include/bash/shell.h 52include/bash/shell.h
52include/bash/sig.h 53include/bash/sig.h
53include/bash/siglist.h 54include/bash/siglist.h
54include/bash/signames.h 55include/bash/signames.h
55include/bash/subst.h 56include/bash/subst.h
56include/bash/syntax.h 57include/bash/syntax.h
57include/bash/unwind_prot.h 58include/bash/unwind_prot.h
58include/bash/variables.h 59include/bash/variables.h
59include/bash/version.h 60include/bash/version.h
60include/bash/xmalloc.h 61include/bash/xmalloc.h
61include/bash/y.tab.h 62include/bash/y.tab.h
62info/bash.info 63info/bash.info
63lib/bash/Makefile.inc 64lib/bash/Makefile.inc
 65lib/bash/Makefile.sample
64lib/bash/accept 66lib/bash/accept
65lib/bash/basename 67lib/bash/basename
66lib/bash/csv 68lib/bash/csv
67lib/bash/cut 69lib/bash/cut
68lib/bash/dirname 70lib/bash/dirname
 71lib/bash/dsv
69lib/bash/fdflags 72lib/bash/fdflags
70lib/bash/finfo 73lib/bash/finfo
 74lib/bash/getconf
71lib/bash/head 75lib/bash/head
72lib/bash/id 76lib/bash/id
73lib/bash/ln 77lib/bash/ln
74lib/bash/loadables.h 78lib/bash/loadables.h
75lib/bash/logname 79lib/bash/logname
76lib/bash/mkdir 80lib/bash/mkdir
77lib/bash/mkfifo 81lib/bash/mkfifo
78lib/bash/mktemp 82lib/bash/mktemp
79lib/bash/mypid 83lib/bash/mypid
80lib/bash/pathchk 84lib/bash/pathchk
81lib/bash/print 85lib/bash/print
82lib/bash/printenv 86lib/bash/printenv
83lib/bash/push 87lib/bash/push
84lib/bash/realpath 88lib/bash/realpath
85lib/bash/rm 89lib/bash/rm
86lib/bash/rmdir 90lib/bash/rmdir
87lib/bash/seq 91lib/bash/seq
88lib/bash/setpgid 92lib/bash/setpgid
89lib/bash/sleep 93lib/bash/sleep
 94lib/bash/stat
90lib/bash/strftime 95lib/bash/strftime
91lib/bash/sync 96lib/bash/sync
92lib/bash/tee 97lib/bash/tee
93lib/bash/truefalse 98lib/bash/truefalse
94lib/bash/tty 99lib/bash/tty
95lib/bash/uname 100lib/bash/uname
96lib/bash/unlink 101lib/bash/unlink
97lib/bash/whoami 102lib/bash/whoami
98lib/pkgconfig/bash.pc 103lib/pkgconfig/bash.pc
99man/man1/bash.1 104man/man1/bash.1
100man/man1/bashbug.1 105man/man1/bashbug.1
101share/doc/bash/CHANGES 106share/doc/bash/CHANGES
102share/doc/bash/COMPAT 107share/doc/bash/COMPAT

cvs diff -r1.70 -r1.71 pkgsrc/shells/bash/distinfo (expand / switch to unified diff)

--- pkgsrc/shells/bash/distinfo 2022/01/28 20:39:20 1.70
+++ pkgsrc/shells/bash/distinfo 2022/10/03 12:50:27 1.71
@@ -1,61 +1,13 @@ @@ -1,61 +1,13 @@
1$NetBSD: distinfo,v 1.70 2022/01/28 20:39:20 schmonz Exp $ 1$NetBSD: distinfo,v 1.71 2022/10/03 12:50:27 wiz Exp $
2 2
3BLAKE2s (bash-5.1.tar.gz) = 9053924a9a02eb9e6d9aed99e945c23ddd98481234a50c5897f124dc3f02dd33 3BLAKE2s (bash-5.2.tar.gz) = 430755ea2af4903dba2bdbeffd4d861edb9f54c248071362f0d14f15171764cd
4SHA512 (bash-5.1.tar.gz) = c44a0ce381469219548a3a27589af3fea4f22eda1ca4e9434b59fc16da81b471c29ce18e31590e0860a6a251a664b68c2b45e3a17d22cfc02799ffd9a208390c 4SHA512 (bash-5.2.tar.gz) = 5647636223ba336bf33e0c65e516d8ebcf6932de8b44f37bc468eedb87579c628ad44213f78534beb10f47aebb9c6fa670cb0bed3b4e7717e5faf7e9a1ef81ae
5Size (bash-5.1.tar.gz) = 10458638 bytes 5Size (bash-5.2.tar.gz) = 10950833 bytes
6BLAKE2s (bash51-001) = 05cd8526b6ee953e7a2e0cc46f31bae9685cd5932bd88d05993f9ef931dbc73c 
7SHA512 (bash51-001) = 1cd86805a2639614372aec29a710bc456e330abcbbaa0867820c94f714a1fa5fb5c1b18aa2c10263ae0bce9dad7579c7af2f732282315c1c34bfd6a90777bfd2 
8Size (bash51-001) = 2894 bytes 
9BLAKE2s (bash51-002) = e37105b3e04e2199f825bcdd5b781fafc0ee5d33287844f517d53f6eb48f15b2 
10SHA512 (bash51-002) = 923e7822a9629645347d3aea0058fb5e2d52223507159a62369309f264612df44a84931c19e0ccb3852e98ce672dfbd454477090b4041b5a0de477c94eb61088 
11Size (bash51-002) = 1575 bytes 
12BLAKE2s (bash51-003) = 1dd7be948a67531121d936c61b7ad4e3e188ed88196731b42f9dcc8df2b360f9 
13SHA512 (bash51-003) = 01e952dcfdae58624723d64912ea3444eed2fdcd266ba1a929b95ec3abd70f914bf400607c3f7bb7a94ac2925f794f91f37c1929d5bb987de2ba7f60a19cb8bd 
14Size (bash51-003) = 1800 bytes 
15BLAKE2s (bash51-004) = 4dcff8770cdb5e294fbfeee6ecbc5a9b8fbc553c44fe2c2f47c0b759479d15e6 
16SHA512 (bash51-004) = 10ff24cd91a2cd88818bfa7218050843af6b409e43fcca89f5ec70d8266020c6c2a55132426271f165cd0f154f49eb0f8ec2761b80fc066c921b83120bb543ce 
17Size (bash51-004) = 3745 bytes 
18BLAKE2s (bash51-005) = 6da53a092dda69ec9a2e604b5f06357a4794ce24354d12677de8f59e3506fdf0 
19SHA512 (bash51-005) = fa83d894fe874a05b9a7d47b8bca8e5b7f4067221d82e8b1af616d17725592c3737c621f2a8ad3c917b29846012c37c85acd34dcbb43eb6b05065ccce89b260c 
20Size (bash51-005) = 2577 bytes 
21BLAKE2s (bash51-006) = 73b5065e11a84d68835c0db4977d2c603d23af19d447000a2f2c16f06342f50e 
22SHA512 (bash51-006) = b9b6e3d71f7b7718e2e8598ec8e337dcc675571fb233c29e5230ebf14eab2249204531f2fe8c4d1459c5fed10acb679048588d1e457e98dbc00ffc4d2cd227e3 
23Size (bash51-006) = 1412 bytes 
24BLAKE2s (bash51-007) = 3b7f3bf31e9e2bcd4aade7127d61c4c0be37393bd615a2e7c7c7f3d0b63c6c69 
25SHA512 (bash51-007) = e4ebdc47e780ddc2588ecdfcfe00cb618039c7044e250ab2b836b0735c461ebacd15beaf2145e277c70b7f51cded55bd8dde7757df810f33f8dae306ee5ba571 
26Size (bash51-007) = 2621 bytes 
27BLAKE2s (bash51-008) = 54137de0baaaa419a53b91538821ff45c87f439bde9359be0ebef31b094711b5 
28SHA512 (bash51-008) = 97f9558a08a66cc9da62c285bf9118b39328e25ed3b9277728e0539b1ac0adef176a090e39cd96dc03d6fd900d8155bd58040cb3390a09f637bab1de8af3faf6 
29Size (bash51-008) = 1821 bytes 
30BLAKE2s (bash51-009) = e549836133bf60d8f052e6ca5861821c8cb4d756f42a54acac4bbad584008580 
31SHA512 (bash51-009) = 2d3c65162ec4e5c3dfeb439891950ef2c43973a84122fcdf6b56c388466c7e671dbc9b236d2253f01411b668c365855263995dbacb8e6f9e9dbcb7e6c2cc518c 
32Size (bash51-009) = 1627 bytes 
33BLAKE2s (bash51-010) = bf16355b68342d8bf495259608873121ecc621925e63ca8906ef454ba35d2f4d 
34SHA512 (bash51-010) = aac4a0b72b559566334f1029c52754f4c98185af99e09436e401d83ab81bab7882d0d8050674b30f171733f3628157777a264566e927e93db2ea5a18d26630f1 
35Size (bash51-010) = 1700 bytes 
36BLAKE2s (bash51-011) = dcb9dd45b7652372456f28f74e8fa5cce03bf88318f127cd2d10af766937feeb 
37SHA512 (bash51-011) = bb9e47a570bb9758c365831f9650b9379b60862b8cef572edc3cd833df96ebb8b9612de474bdc2a03ff4efc2275f871d55962295385e38f3658874488e974b81 
38Size (bash51-011) = 2229 bytes 
39BLAKE2s (bash51-012) = d9e0cbc34d1ead557dca3a467043c10756d32d13af64aa30eb8d025876c2ccb5 
40SHA512 (bash51-012) = 59819914b6821d9f4af0aade7b9b7ea92368c2b8eb8407cea11dfeee7208905dd06bdef7a049d7b1c4fac41c44d9a130b95a061957a9649050b37471b3044cf1 
41Size (bash51-012) = 6372 bytes 
42BLAKE2s (bash51-013) = 121f6c877b2f1afc5aaacad40e1a79079d0efe48cbc2eee261a0680288c2e9d1 
43SHA512 (bash51-013) = 67535155f49a7f54f151e62aba9274f82d01f33a1a1a7e5efd1aa0d63ba2d078765f0b5e22cb24db7132eff2d8c5852a3688298baa5217b8b6e159aae065d748 
44Size (bash51-013) = 1277 bytes 
45BLAKE2s (bash51-014) = 476c2c957ec7f8bcc4ea8e3c4e4c36957ffcc9841fc8ac2d6a7d6859613ef4a0 
46SHA512 (bash51-014) = f658ab7ef01ba1d26f735e24b23bf35687e15b0d5d20f90da233d000745a55bdba142c11e9fba52e3b84470ec625fab60cc74cd6be533d990496a3795c658e88 
47Size (bash51-014) = 1456 bytes 
48BLAKE2s (bash51-015) = 3f7d50d8a376f952742acbcc119b464b07e35337170f2cd37f1e129691b323c2 
49SHA512 (bash51-015) = fd4bc85f942a3a16c545f7e951a24f620ff2d884640dea6e05f305aaf88ed41862bfb05eea2258881608de696f9dc7a0fe3bebb51a011f50b720ea7a66699184 
50Size (bash51-015) = 1409 bytes 
51BLAKE2s (bash51-016) = dc335fd01741128eac6dd2f9dabb41ff3933b88467538f89e39f95262f87b48b 
52SHA512 (bash51-016) = 020b3f3db77ca603a27a3423323538db5c9844be17ee428cf7cda80bebdcc715d30eab6c95773541cb8d14f3ad9e6142bf0adcda0e745ee638242508cc0ab05f 
53Size (bash51-016) = 2122 bytes 
54SHA1 (patch-af) = e26e3209902247263884cfebc11a2f7e43245062 6SHA1 (patch-af) = e26e3209902247263884cfebc11a2f7e43245062
55SHA1 (patch-ag) = cd3b151e3bb045d2bb609c0a03d7d3df2c871f47 7SHA1 (patch-ag) = cd3b151e3bb045d2bb609c0a03d7d3df2c871f47
56SHA1 (patch-aj) = 2e4c15afd9b50d44967ee8e1f85bdc908c0eeeb0 8SHA1 (patch-aj) = 2e4c15afd9b50d44967ee8e1f85bdc908c0eeeb0
57SHA1 (patch-builtins_ulimit.def) = 1390069344607204eb3abbd6ddeb148ff590c55e 9SHA1 (patch-builtins_ulimit.def) = 1390069344607204eb3abbd6ddeb148ff590c55e
58SHA1 (patch-configure) = c4e1ab53a1ee85f3e6121047f0aca8ceb85e6e5d 10SHA1 (patch-configure) = c4e1ab53a1ee85f3e6121047f0aca8ceb85e6e5d
59SHA1 (patch-examples_loadables_fdflags.c) = dce409c76b7d6c838eb25c3ccc7a89ee57ca69b8 11SHA1 (patch-examples_loadables_fdflags.c) = dce409c76b7d6c838eb25c3ccc7a89ee57ca69b8
60SHA1 (patch-lib_malloc_malloc.c) = fc22c2bb45490c57782d34d62336d168875c3609 12SHA1 (patch-lib_malloc_malloc.c) = 6e500228972eac0cb4d4defb02e9cf573b7fa207
61SHA1 (patch-support_shobj-conf) = f5d484920243588bfa4f869add2534e99aae9595 13SHA1 (patch-support_shobj-conf) = 010d5058262a23add420deed6c44a605bb16aa26

cvs diff -r1.2 -r1.3 pkgsrc/shells/bash/patches/patch-lib_malloc_malloc.c (expand / switch to unified diff)

--- pkgsrc/shells/bash/patches/patch-lib_malloc_malloc.c 2020/03/17 21:59:48 1.2
+++ pkgsrc/shells/bash/patches/patch-lib_malloc_malloc.c 2022/10/03 12:50:27 1.3
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1$NetBSD: patch-lib_malloc_malloc.c,v 1.2 2020/03/17 21:59:48 rillig Exp $ 1$NetBSD: patch-lib_malloc_malloc.c,v 1.3 2022/10/03 12:50:27 wiz Exp $
2 2
3Fix array subscript with char index. 3Fix array subscript with char index.
4 4
5https://lists.gnu.org/archive/html/bug-bash/2020-03/msg00056.html 5https://lists.gnu.org/archive/html/bug-bash/2020-03/msg00056.html
6 6
7--- lib/malloc/malloc.c.orig 2018-06-20 13:55:09.000000000 +0000 7--- lib/malloc/malloc.c.orig 2022-04-18 16:37:56.000000000 +0000
8+++ lib/malloc/malloc.c 8+++ lib/malloc/malloc.c
9@@ -266,7 +266,7 @@ static const unsigned long binsizes[NBUC 9@@ -299,7 +299,7 @@ static const unsigned long binsizes[NBUC
10 }; 10 };
11  11
12 /* binsizes[x] == (1 << ((x) + 3)) */ 12 /* binsizes[x] == (1 << ((x) + 5)) */
13-#define binsize(x) binsizes[(x)] 13-#define binsize(x) binsizes[(x)]
14+#define binsize(x) binsizes[(size_t) (x)] 14+#define binsize(x) binsizes[(size_t) (x)]
15  15
16 #if !defined (errno) 16 #define MAXALLOC_SIZE binsizes[NBUCKETS-1]
17 extern int errno; 17

cvs diff -r1.2 -r1.3 pkgsrc/shells/bash/patches/patch-support_shobj-conf (expand / switch to unified diff)

--- pkgsrc/shells/bash/patches/patch-support_shobj-conf 2022/01/28 20:39:20 1.2
+++ pkgsrc/shells/bash/patches/patch-support_shobj-conf 2022/10/03 12:50:27 1.3
@@ -1,27 +1,15 @@ @@ -1,27 +1,15 @@
1$NetBSD: patch-support_shobj-conf,v 1.2 2022/01/28 20:39:20 schmonz Exp $ 1$NetBSD: patch-support_shobj-conf,v 1.3 2022/10/03 12:50:27 wiz Exp $
2 2
3Spell -fPIC correctly. 3Spell -fPIC correctly.
4Omit the special -arch_only treatment for old Darwin; it's not supported 
5by external compilers (e.g., lang/gcc10) and it's not needed by the 
6native compiler (at least, not on Snow Leopard gcc 4.2.1). 
7 4
8--- support/shobj-conf.orig 2019-12-13 14:51:17.000000000 +0000 5--- support/shobj-conf.orig 2019-12-13 14:51:17.000000000 +0000
9+++ support/shobj-conf 6+++ support/shobj-conf
10@@ -114,7 +114,7 @@ sunos5*-*gcc*|solaris2*-*gcc*) 7@@ -114,7 +114,7 @@ sunos5*-*gcc*|solaris2*-*gcc*)
11 ;; 8 ;;
12  9
13 sunos5*|solaris2*) 10 sunos5*|solaris2*)
14- SHOBJ_CFLAGS='-K pic' 11- SHOBJ_CFLAGS='-K pic'
15+ SHOBJ_CFLAGS='-fPIC' 12+ SHOBJ_CFLAGS='-fPIC'
16 SHOBJ_LD=/usr/ccs/bin/ld 13 SHOBJ_LD=/usr/ccs/bin/ld
17 SHOBJ_LDFLAGS='-G -dy -z text -i -h $@' 14 SHOBJ_LDFLAGS='-G -dy -z text -i -h $@'
18  15
19@@ -157,7 +157,7 @@ darwin*) 
20 *) 
21 case "${host_os}" in 
22 darwin[89]*|darwin1[012]*) 
23- SHOBJ_ARCHFLAGS='-arch_only `/usr/bin/arch`' 
24+ SHOBJ_ARCHFLAGS= 
25 ;; 
26 *) # Mac OS X 10.9 (Mavericks) and later 
27 SHOBJ_ARCHFLAGS=