multipath-tools: backport build fix for musl libc 1.2.5

This commit is contained in:
Yureka 2024-05-22 15:26:56 +02:00
parent ccbea646d9
commit 92bd0804a9

View File

@ -1,6 +1,7 @@
{ 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