From 367b3a99e4112473464ee06b9989e4ed4bbed306 Mon Sep 17 00:00:00 2001 From: Neil Mayhew Date: Tue, 2 Jun 2020 08:50:01 -0600 Subject: [PATCH] multipath-tools: Fix build failure due to GZIP make var The multipath-tools makefiles use GZIP as a variable name but this is also the name of the environment variable gzip uses to get its default options. Normally, this wouldn't get into the environment but nixpkgs exports GZIP=-n in a setup hook. This in turn causes make to export its own value for this variable. gzip objects to having -c in the environment variable and aborts, causing the build to fail. --- pkgs/os-specific/linux/multipath-tools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/multipath-tools/default.nix b/pkgs/os-specific/linux/multipath-tools/default.nix index 7e5ce115db4a..d60b4a9a549d 100644 --- a/pkgs/os-specific/linux/multipath-tools/default.nix +++ b/pkgs/os-specific/linux/multipath-tools/default.nix @@ -17,8 +17,8 @@ stdenv.mkDerivation rec { ' libmultipath/defaults.h sed -i -e 's,\$(DESTDIR)/\(usr/\)\?,$(prefix)/,g' \ kpartx/Makefile libmpathpersist/Makefile - sed -i -e "s,GZIP = .*, GZIP = gzip -9n -c," \ - Makefile.inc + sed -i -e "s,GZIP,GZ," \ + $(find * -name Makefile\*) ''; nativeBuildInputs = [ gzip pkgconfig perl ];