sysroot.eclass: we can't use wrappers if the kernel differs

So for now, just check if the target is not linux, and then disable them

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel
2026-03-23 23:32:51 +01:00
parent 0b78c04ca4
commit 257a31f12f

View File

@@ -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.