mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user