diff mbox series

[meta-filesystems,wrynose] overlayfs-tools: Inhibit tests on configure

Message ID 20261110065549.833291-1-marek.vasut@mailbox.org
State New
Headers show
Series [meta-filesystems,wrynose] overlayfs-tools: Inhibit tests on configure | expand

Commit Message

Marek Vasut Nov. 10, 2026, 6:55 a.m. UTC
In case the overlayfs-tools are built using meson, a test triggers
during meson setup phase during do_configure task. The test invokes
"sudo", which may not be present on the build machine. Skip the test
at meson setup phase. Tests should be executed separately on demand
using "meson test" command instead, and invoking "sudo" and expecting
it to work during do_configure is unusual.

"
ERROR: overlayfs-tools-v2025.01-r0 do_configure: meson setup failed
...
| Run-time dependency musl-fts found: NO (tried pkgconfig)
| Library m found: YES
| Program test_cases/run_tests.py found: YES (/home/oe/build-some-target/tmp/work/arm64-distro-linux/overlayfs-tools/v2025.01/sources/overlayfs-tools-v2025.01/test_cases/run_tests.py)
|
| ../sources/overlayfs-tools-v2025.01/meson.build:94:0: ERROR: Program 'sudo' not found or not executable
|
| A full log can be found at /home/oe/build-some-target/tmp/work/arm64-distro-linux/overlayfs-tools/v2025.01/build/meson-logs/meson-log.txt
|
| Last 10 lines of meson-log.txt:
| Code:
| int main(void) { return 0; }
"

Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 784c75a3a04478ec5362655aa8b2102ac4b05667)
---
 .../recipes-utils/overlayfs/overlayfs-tools_v2025.01.bb       | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_v2025.01.bb b/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_v2025.01.bb
index c83233a9a0..29facea323 100644
--- a/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_v2025.01.bb
+++ b/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_v2025.01.bb
@@ -12,3 +12,7 @@  SRCREV = "6e925bbbe747fbb58bc4a95a646907a2101741f6"
 inherit meson pkgconfig
 
 DEPENDS:append:libc-musl = " fts"
+
+do_configure:prepend() {
+	sed -i '/Custom targets for testing overlay function/,/command : .*permanent...changes/ d' ${S}/meson.build
+}