sys-apps/coreutils: restore utmp test skip

Seems I dropped this accidentally in >=9.6.

Bug: https://bugs.gentoo.org/935367
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-12-18 07:57:44 +00:00
parent 5fcbbfcd87
commit 720f1ce7cc
4 changed files with 16 additions and 0 deletions

View File

@@ -116,6 +116,7 @@ src_unpack() {
src_prepare() {
# TODO: past 2025, we may need to add our own hack for bug #907474.
local PATCHES=(
"${FILESDIR}"/${PN}-9.5-skip-readutmp-test.patch
# Upstream patches
)

View File

@@ -115,6 +115,7 @@ src_unpack() {
src_prepare() {
# TODO: past 2025, we may need to add our own hack for bug #907474.
local PATCHES=(
"${FILESDIR}"/${PN}-9.5-skip-readutmp-test.patch
# Upstream patches
)

View File

@@ -116,6 +116,7 @@ src_unpack() {
src_prepare() {
# TODO: past 2025, we may need to add our own hack for bug #907474.
local PATCHES=(
"${FILESDIR}"/${PN}-9.5-skip-readutmp-test.patch
# Upstream patches
)

View File

@@ -0,0 +1,13 @@
https://bugs.gentoo.org/935367
--- a/gnulib-tests/test-readutmp.c
+++ b/gnulib-tests/test-readutmp.c
@@ -43,6 +43,9 @@ main (int argc, char *argv[])
STRUCT_UTMP *entries;
idx_t num_entries;
+ fprintf (stderr, "Skipping test: Gentoo: examines host entries, so unreliable in ebuild\n");
+ return 77;
+
if (read_utmp (UTMP_FILE, &num_entries, &entries, 0) < 0)
{
#if READ_UTMP_SUPPORTED