Files
gentoo/app-shells/bash
Sam James cb8b981252 app-shells/bash: require Bison as yacc implementation
Upstream only test with Bison and require GNUisms like YYEOF and
YYERRCODE. The former at least may be in POSIX soon:
https://www.austingroupbugs.net/view.php?id=1269.

configure warns on use of non-Bison but doesn't abort. The result
may misbehave at runtime.

Noticed with recently added bash-5.2_p15-shell-parser-reset-issue.patch
(which is blameless in itself).

A simple test with a broken Bash is:
```
$ /var/tmp/portage/app-shells/bash-5.2_p15-r4/image/bin/bash -n /lib/gentoo/functions.sh
/lib/gentoo/functions.sh: line 104: syntax error near unexpected token `}'
/lib/gentoo/functions.sh: line 104: `}'
```

Reference: 3ee2d707a2
Reference: dde3a81f42
Signed-off-by: Sam James <sam@gentoo.org>
2023-06-23 05:33:00 +01:00
..