https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sys-apps/flashrom-1.3.0-r1 fails tests (MUSL-SYSTEM). Discovered on: amd64 (internal ref: tinderbox_musl) NOTE: (MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Created attachment 863862 [details] build.log build log and emerge --info
Created attachment 863863 [details] 1-testlog.txt 1-testlog.txt
Error(s) that match a know pattern in addition to what has been reported in the summary: Run-time dependency libjaylink found: NO (tried pkgconfig and cmake) [ LINE ] --- ../flashrom-v1.3.0/tests/lifecycle.c:46: error: Failure!
The failing test is: [ RUN ] linux_mtd_probe_lifecycle_test_success Testing flashrom_programmer_init for programmer=linux_mtd ... __wrap_stat is called __wrap_fopen is called __wrap_fread is called __wrap_fclose is called __wrap_stat is called __wrap_fopen is called __wrap_fread is called __wrap_fclose is called [ FAILED ] linux_mtd_probe_lifecycle_test_success It fails because it tries to open /sys/class/mtd, which I also don't have on my system (Linux 6.1.27-gentoo-r1). I don't see it on glibc either (as well as musl). So I believe this is actually a "generic" (non-musl) bug, where the test should be disabled, for it can only work on hosts that have mtd (storage) enabled in the kernel.
(In reply to Fabian Groffen from comment #4) > So I believe this is actually a "generic" (non-musl) bug, where the test > should be disabled, for it can only work on hosts that have mtd (storage) > enabled in the kernel. That is not quite correct - while it is true that the programmer linux_mtd tries to open files in /sys/class/mtd, the test suite mocks them. Which would imply that it is not flashrom but dev-util/cmocka that MUSL breaks.
I see a very similar error even on glibc, just the right-hand side is 0x2 instead of 0x1. stderr: [ PASSED ] 7 test(s). [ PASSED ] 1 test(s). [ PASSED ] 10 test(s). [ ERROR ] --- 0 != 0x2 [ LINE ] --- ../flashrom-v1.3.0/tests/lifecycle.c:25: error: Failure!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=975f3a17f24ce1676722b74223845464ebfbf5a7 commit 975f3a17f24ce1676722b74223845464ebfbf5a7 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2024-06-28 18:19:25 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2024-06-28 19:08:10 +0000 sys-apps/flashrom-1.3.0-r2: disable linux_mtd on musl #908539 Closes: https://bugs.gentoo.org/908539 Signed-off-by: Fabian Groffen <grobian@gentoo.org> sys-apps/flashrom/flashrom-1.3.0-r2.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+)