commit: de7f1809fc0ac668b6282d144bf5c8074a372f25 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Feb 8 18:55:22 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Feb 8 18:55:59 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de7f1809
sys-apps/coreutils: fix dash issues * Fix/workaround test issue with dash * Use CONFIG_SHELL as bash until 9.11 to avoid autoreconf Closes: https://bugs.gentoo.org/969663 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/coreutils/coreutils-9.10.ebuild | 5 ++++- sys-apps/coreutils/files/coreutils-9.10-dash-tests.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/sys-apps/coreutils/coreutils-9.10.ebuild b/sys-apps/coreutils/coreutils-9.10.ebuild index fd56d3431258..7dd465fef3ef 100644 --- a/sys-apps/coreutils/coreutils-9.10.ebuild +++ b/sys-apps/coreutils/coreutils-9.10.ebuild @@ -118,6 +118,7 @@ src_prepare() { local PATCHES=( "${FILESDIR}"/${PN}-9.5-skip-readutmp-test.patch # Upstream patches + "${FILESDIR}"/${PN}-9.10-dash-tests.patch ) if ! use vanilla && [[ -d "${WORKDIR}"/${MY_PATCH} ]] ; then @@ -190,7 +191,9 @@ src_configure() { sed -i '/elf_sys=yes/s:yes:no:' configure || die fi - econf "${myconf[@]}" + # TODO: Drop CONFIG_SHELL for bash after 9.10 + # https://cgit.git.savannah.gnu.org/cgit/coreutils.git/commit/?id=a72ad1216d8cf96be542e2e7a4dd1d6151d6087b + CONFIG_SHELL="${BROOT}"/bin/bash econf "${myconf[@]}" } src_test() { diff --git a/sys-apps/coreutils/files/coreutils-9.10-dash-tests.patch b/sys-apps/coreutils/files/coreutils-9.10-dash-tests.patch new file mode 100644 index 000000000000..1d29882d9b72 --- /dev/null +++ b/sys-apps/coreutils/files/coreutils-9.10-dash-tests.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/969663 +https://bugs.gnu.org/80353 +--- a/tests/misc/read-errors.sh ++++ b/tests/misc/read-errors.sh +@@ -17,6 +17,7 @@ + # along with this program. If not, see <https://www.gnu.org/licenses/>. + + . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src ++require_bash_as_SHELL_ + uses_strace_ + + ! cat . >/dev/null 2>&1 || skip_ "Need unreadable directories"
