multipath-tools: 0.9.3 -> 0.9.4

https://github.com/opensvc/multipath-tools/compare/0.9.3...0.9.4

Fixed a bunch of issues and warnings occuring during the build.
`passthru.tests` is however still broken.
This commit is contained in:
Thomas Gerbet 2023-01-02 21:34:35 +01:00
parent eae9a09270
commit ad9521e07e
2 changed files with 10 additions and 12 deletions

View file

@ -516,7 +516,6 @@ in {
${optionalString (!isNull defaults) '' ${optionalString (!isNull defaults) ''
defaults { defaults {
${indentLines 2 defaults} ${indentLines 2 defaults}
multipath_dir ${cfg.package}/lib/multipath
} }
''} ''}
${optionalString (!isNull blacklist) '' ${optionalString (!isNull blacklist) ''

View file

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, coreutils
, pkg-config , pkg-config
, perl , perl
, lvm2 , lvm2
@ -9,31 +10,28 @@
, systemd , systemd
, liburcu , liburcu
, json_c , json_c
, kmod , linuxHeaders
, cmocka , cmocka
, nixosTests , nixosTests
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "multipath-tools"; pname = "multipath-tools";
version = "0.9.3"; version = "0.9.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "opensvc"; owner = "opensvc";
repo = "multipath-tools"; repo = "multipath-tools";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
sha256 = "sha256-pIGeZ+jB+6GqkfVN83axHIuY/BobQ+zs+tH+MkLIln0="; sha256 = "sha256-CPvtnjzkyxKXrT8+YXaIgDA548h8X61+jCxMHKFfEyg=";
}; };
postPatch = '' postPatch = ''
substituteInPlace libmultipath/Makefile \ substituteInPlace create-config.mk \
--replace /usr/include/libdevmapper.h ${lib.getDev lvm2}/include/libdevmapper.h --replace /bin/echo ${coreutils}/bin/echo
# systemd-udev-settle.service is deprecated.
substituteInPlace multipathd/multipathd.service \ substituteInPlace multipathd/multipathd.service \
--replace /sbin/modprobe ${lib.getBin kmod}/sbin/modprobe \ --replace /sbin/multipathd "$out/bin/multipathd"
--replace /sbin/multipathd "$out/bin/multipathd" \
--replace " systemd-udev-settle.service" ""
sed -i -re ' sed -i -re '
s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'", s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'",
@ -45,15 +43,16 @@ stdenv.mkDerivation rec {
''; '';
nativeBuildInputs = [ pkg-config perl ]; nativeBuildInputs = [ pkg-config perl ];
buildInputs = [ systemd lvm2 libaio readline liburcu json_c ]; buildInputs = [ systemd lvm2 libaio readline liburcu json_c linuxHeaders ];
makeFlags = [ makeFlags = [
"LIB=lib" "LIB=lib"
"prefix=$(out)" "prefix=$(out)"
"systemd_prefix=$(out)"
"kernel_incdir=${linuxHeaders}/include/"
"man8dir=$(out)/share/man/man8" "man8dir=$(out)/share/man/man8"
"man5dir=$(out)/share/man/man5" "man5dir=$(out)/share/man/man5"
"man3dir=$(out)/share/man/man3" "man3dir=$(out)/share/man/man3"
"SYSTEMDPATH=lib"
]; ];
doCheck = true; doCheck = true;