From 257a31f12fbedf42ba4b4d5e660445443b4b1bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Mon, 23 Mar 2026 23:32:51 +0100 Subject: [PATCH] sysroot.eclass: we can't use wrappers if the kernel differs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So for now, just check if the target is not linux, and then disable them Signed-off-by: Andreas K. Hüttel --- eclass/sysroot.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/sysroot.eclass b/eclass/sysroot.eclass index de0a4ef316481..856aa3a9ec8f4 100644 --- a/eclass/sysroot.eclass +++ b/eclass/sysroot.eclass @@ -131,6 +131,9 @@ sysroot_make_run_prefixed() { #!/bin/sh SANDBOX_ON=0 LD_PRELOAD= WINEPATH="\${WINEPATH}\${WINEPATH+;};${winepath//\//\\}" exec wine "\${@}" EOF + elif [[ ${CHOST} != *-linux-* ]]; then + einfo "Target is not Linux. Continuing without ${SCRIPT##*/} wrapper." + return 2 elif ! QEMU_ARCH=$(qemu_arch_if_needed); then # glibc: ld.so is a symlink, ldd is a binary. # musl: ld.so doesn't exist, ldd is a symlink.