Commit 92bd0804 authored by Yureka's avatar Yureka
Browse files

multipath-tools: backport build fix for musl libc 1.2.5

parent ccbea646
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, coreutils

, perl
@@ -30,6 +31,15 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-4cby19BjgnmWf7klK1sBgtZnyvo7q3L1uyVPlVoS+uk=";
  };

  patches = [
    # Backport build fix for musl libc 1.2.5
    (fetchpatch {
      url = "https://github.com/openSUSE/multipath-tools/commit/e5004de8296cd596aeeac0a61b901e98cf7a69d2.patch";
      hash = "sha256-ZvNFVphB9f+S/XMxktR6P/YYSTLeJXEsj4XrAnw6GUI=";
      excludes = ["tests/util.c"];
    })
  ];

  postPatch = ''
    substituteInPlace create-config.mk \
      --replace /bin/echo ${coreutils}/bin/echo