Skip to content

Commit ef593db

Browse files
committed
systemd: re-enable bpf-framework
systemd meson.build apparently didn't check properly that the option was enabled in all code paths, so it was possible to build systemd such as --version would have -BPF_FRAMEWORK (properly disabled in config.h) with -Dbpf-framework=enabled. Fix the failing check, which was `clang -target bpf` breaking with zerocallusedregs hardening -- this is apparently a known problem as it's disabled in quite a few other packages that mention bpf in comment above the exception... Link: systemd/systemd#33793
1 parent ad0b5ee commit ef593db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkgs/os-specific/linux/systemd/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,8 @@ stdenv.mkDerivation (finalAttrs: {
412412
hardeningDisable = [
413413
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111523
414414
"trivialautovarinit"
415-
];
415+
# breaks clang -target bpf; should be fixed to filter target?
416+
] ++ (lib.optional withLibBPF "zerocallusedregs");
416417

417418
nativeBuildInputs =
418419
[

0 commit comments

Comments
 (0)