Disable posix_spawn on android

Apparently it's broken:

9cbb0715a9/packages/fish/0001-build.rs.patch

Part of #12055
This commit is contained in:
Fabian Boehm
2025-11-19 17:38:36 +01:00
parent f598186574
commit 75bf46de70

View File

@@ -93,9 +93,11 @@ fn detect_cfgs(target: &mut Target) {
}),
("have_pipe2", &|target| target.has_symbol("pipe2")),
("have_posix_spawn", &|target| {
if target_os() == "openbsd" {
if matches!(target_os().as_str(), "openbsd" | "android") {
// OpenBSD's posix_spawn returns status 127 instead of erroring with ENOEXEC when faced with a
// shebang-less script. Disable posix_spawn on OpenBSD.
//
// Android is broken for unclear reasons
false
} else {
target.has_header("spawn.h")