fix: add clamav cross-compile workaround (cmake try_run for FD passing, uname POSIX, struct packing, SAR)

This commit is contained in:
2026-06-19 07:54:30 -04:00
parent 016cf4aa53
commit a0875e9e0a

View File

@@ -184,6 +184,16 @@
(x: x?pname && x.pname != "perl-ldap") (x: x?pname && x.pname != "perl-ldap")
(old.propagatedBuildInputs or []); (old.propagatedBuildInputs or []);
}); });
# clamav try_run fails cross-compile (cmake modules all use the same
# generic `test_run_result` cache variable name for FD passing, uname
# POSIX, struct packing, and signed right-shift checks).
# On aarch64 Linux (glibc + GCC) all four return 0, so pre-set it.
clamav = prev.clamav.overrideAttrs (old: {
cmakeFlags = (old.cmakeFlags or []) ++ [
"-Dtest_run_result=0"
"-Dtest_run_result__TRYRUN_OUTPUT="
];
});
}; };
uconsoleRpiPipewireOverlay = final: prev: { uconsoleRpiPipewireOverlay = final: prev: {