Commit eb343178 authored by FliegendeWurst's avatar FliegendeWurst Committed by Alyssa Ross
Browse files

systemd: add missing patch for Musl

For context, see https://github.com/systemd/systemd/issues/35755.
Musl defines fork and setsid only if unistd.h is included.
parent efd9e479
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
  getent,
  glibcLocales,
  autoPatchelfHook,
  fetchpatch,

  # glib is only used during tests (test-bus-gvariant, test-bus-marshal)
  glib,
@@ -281,6 +282,14 @@ stdenv.mkDerivation (finalAttrs: {
        "0025-adjust-header-inclusion-order-to-avoid-redeclaration.patch"
        "0026-build-path.c-avoid-boot-time-segfault-for-musl.patch"
      ]
      ++ [
        # add a missing include
        (fetchpatch {
          url = "https://github.com/systemd/systemd/commit/34fcd3638817060c79e1186b370e46d9b3a7409f.patch";
          hash = "sha256-Uaewo3jPrZGJttlLcqO6cCj1w3IGZmvbur4+TBdIPxc=";
          excludes = [ "src/udev/udevd.c" ];
        })
      ]
    );

  postPatch =