pacman/scripts
Eli Schwartz 6911904a03 makepkg: fix bash 5 compatibility when packaging symlinks to a directory
In commit b5191ea140 we moved to using
shell globbing to print package files for a couple of reasons including
reproducible packaging of .METADATA files.

Unfortunately, this only works reliably when the glob pattern does not
resolve to a symlinked directory due to a change in the bash 5.0
release. Note that the previous, desired behavior was rather to merely
refuse to recurse into symlinked directories, but due to an unrelated
issue, the symlink handling for globstar was reworked in a way that had
this side effect.
See https://lists.gnu.org/archive/html/bug-bash/2019-04/msg00015.html
for discussion; this may be fixed at some point, but bash 5.0 is broken
either way.

The appropriate way of handling this seems to be to use **/* to match
instead; this produces the same results on both bash 4 and bash 5, as
the ** matches any leading directory component (or none), and the *
matches any file, directory, or symlink to either one.

Fixes FS#62278

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2019-05-08 10:14:32 +10:00
..
completion bash-completion: support file redirection completions 2019-03-25 11:15:26 +10:00
libmakepkg makepkg: correctly handle hg sources with updates on a non-default branch 2019-05-08 10:10:57 +10:00
library scripts/library: fix typo in README 2018-12-10 11:12:27 +10:00
po Remove pkgdelta 2019-03-07 11:12:12 +10:00
.gitignore Remove pkgdelta 2019-03-07 11:12:12 +10:00
Makefile.am drop DU* config variables 2019-03-19 12:07:15 +10:00
makepkg-template.pl.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
makepkg.sh.in makepkg: fix bash 5 compatibility when packaging symlinks to a directory 2019-05-08 10:14:32 +10:00
meson.build Remove pkgdelta 2019-03-07 11:12:12 +10:00
pacman-db-upgrade.sh.in Port scripts to use libmakepkg's messaging code. 2018-10-21 20:22:19 +10:00
pacman-key.sh.in pacman-key: just accept one file to verify, and enforce detached sigs 2018-11-03 21:56:09 +10:00
repo-add.sh.in Remove delta support from repo-add 2019-03-07 11:12:12 +10:00
wrapper.sh.in scripts: pass on options such as set -x to child processes 2018-08-10 15:20:40 +10:00