git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit367b3a99e4112473464ee06b9989e4ed4bbed306 authorNeil Mayhew <neil_mayhew@users.sourceforge.net> dateTue 2 Jun 2020, 08:50 (6 years ago) parent15ed0ea
1 file changed+2−2
pkgs/os-specific/linux/multipath-tools/default.nix+2−2
pkgs/os-specific/linux/multipath-tools/default.nix+2−2
@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
1717 ' libmultipath/defaults.h
1818 sed -i -e 's,\$(DESTDIR)/\(usr/\)\?,$(prefix)/,g' \
1919 kpartx/Makefile libmpathpersist/Makefile
20− sed -i -e "s,GZIP = .*, GZIP = gzip -9n -c," \
21− Makefile.inc
20+ sed -i -e "s,GZIP,GZ," \
21+ $(find * -name Makefile\*)
2222 '';
2323
2424 nativeBuildInputs = [ gzip pkgconfig perl ];