From ec835b704a77e60eb0c0fce8b4eb0d3cb71a3cb6 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 23 Mar 2026 07:31:54 +0000 Subject: [PATCH] app-shells/bash: Sync with Gentoo It's from Gentoo commit c66b5a70ac6ffcc5b3dd20a283a0fae85d64fa05. Signed-off-by: Flatcar Buildbot --- .../app-shells/bash/bash-5.3_p9.ebuild | 16 ++++++++++++++++ .../bash/bash-5.4_alpha_pre20251202.ebuild | 16 ++++++++++++++++ .../app-shells/bash/bash-9999.ebuild | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-5.3_p9.ebuild b/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-5.3_p9.ebuild index 0c65da5eec..e36c6f8570 100644 --- a/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-5.3_p9.ebuild +++ b/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-5.3_p9.ebuild @@ -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=( diff --git a/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-5.4_alpha_pre20251202.ebuild b/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-5.4_alpha_pre20251202.ebuild index 6fec1496d1..8c08d6cff5 100644 --- a/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-5.4_alpha_pre20251202.ebuild +++ b/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-5.4_alpha_pre20251202.ebuild @@ -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=( diff --git a/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-9999.ebuild b/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-9999.ebuild index 58734d9d40..65666522a2 100644 --- a/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-9999.ebuild +++ b/sdk_container/src/third_party/portage-stable/app-shells/bash/bash-9999.ebuild @@ -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=(