app-shells/bash: Sync with Gentoo

It's from Gentoo commit c66b5a70ac6ffcc5b3dd20a283a0fae85d64fa05.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-23 07:31:54 +00:00
parent 3b7a9e1993
commit ec835b704a
3 changed files with 48 additions and 0 deletions

View File

@ -175,7 +175,23 @@ src_configure() {
unset -v YACC
if tc-is-cross-compiler; then
# https://lists.gnu.org/archive/html/bug-bash/2025-05/msg00029.html
export CFLAGS_FOR_BUILD="${BUILD_CFLAGS} -std=gnu17"
if use kernel_Hurd ; then
# Necessary for cross-built bash for Hurd, otherwise
# config.status generation at end of configure will hang
# natively.
#
# https://lists.debian.org/debian-cross/2023/11/msg00000.html
# https://lists.gnu.org/archive/html/bug-bash/2024-11/msg00202.html
# https://lists.gnu.org/archive/html/bug-bash/2005-04/msg00074.html
cat <<-EOF > builtins/psize.sh || die
#!/bin/sh
echo "#define PIPESIZE 16384"
EOF
chmod +x builtins/psize.sh || die
fi
fi
myconf=(

View File

@ -178,7 +178,23 @@ src_configure() {
unset -v YACC
if tc-is-cross-compiler; then
# https://lists.gnu.org/archive/html/bug-bash/2025-05/msg00029.html
export CFLAGS_FOR_BUILD="${BUILD_CFLAGS} -std=gnu17"
if use kernel_Hurd ; then
# Necessary for cross-built bash for Hurd, otherwise
# config.status generation at end of configure will hang
# natively.
#
# https://lists.debian.org/debian-cross/2023/11/msg00000.html
# https://lists.gnu.org/archive/html/bug-bash/2024-11/msg00202.html
# https://lists.gnu.org/archive/html/bug-bash/2005-04/msg00074.html
cat <<-EOF > builtins/psize.sh || die
#!/bin/sh
echo "#define PIPESIZE 16384"
EOF
chmod +x builtins/psize.sh || die
fi
fi
myconf=(

View File

@ -178,7 +178,23 @@ src_configure() {
unset -v YACC
if tc-is-cross-compiler; then
# https://lists.gnu.org/archive/html/bug-bash/2025-05/msg00029.html
export CFLAGS_FOR_BUILD="${BUILD_CFLAGS} -std=gnu17"
if use kernel_Hurd ; then
# Necessary for cross-built bash for Hurd, otherwise
# config.status generation at end of configure will hang
# natively.
#
# https://lists.debian.org/debian-cross/2023/11/msg00000.html
# https://lists.gnu.org/archive/html/bug-bash/2024-11/msg00202.html
# https://lists.gnu.org/archive/html/bug-bash/2005-04/msg00074.html
cat <<-EOF > builtins/psize.sh || die
#!/bin/sh
echo "#define PIPESIZE 16384"
EOF
chmod +x builtins/psize.sh || die
fi
fi
myconf=(