Unverified Commit 821d827e authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

iperf3: patch to exit with 0 on SIGTERM (#385398)

parents 584243a9 ac6bf7c4
Loading
Loading
Loading
Loading
+17 −7
Original line number Diff line number Diff line
@@ -24,7 +24,17 @@ stdenv.mkDerivation rec {
    "man"
  ];

  patches = lib.optionals stdenv.hostPlatform.isMusl [
  patches =
    [
      # Patch to exit with 0 on SIGTERM, i.e. stop service cleanly under
      # systemd. Will be part of the next release.
      (fetchpatch {
        url = "https://github.com/esnet/iperf/commit/4bab9bc39d08069976c519868fefa11c35f6c3f0.patch";
        name = "exit-with-0-on-sigterm.patch";
        hash = "sha256-klW5UzPckJuZ/1Lx0hXJkGK+NyaqSn5AndBT4P+uajw=";
      })
    ]
    ++ lib.optionals stdenv.hostPlatform.isMusl [
      (fetchpatch {
        url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=7f979fc51ae31d5c695d8481ba84a4afc5080efb";
        name = "remove-pg-flags.patch";