From df67459b89d69b9edde653efa6cb8d702179be0b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 24 May 2020 02:25:18 +0200 Subject: [PATCH] lvm2: don't embed ./configure line in lvm2 binary --- pkgs/os-specific/linux/lvm2/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/os-specific/linux/lvm2/default.nix b/pkgs/os-specific/linux/lvm2/default.nix index 0e5a349da024..6d62d770e4d7 100644 --- a/pkgs/os-specific/linux/lvm2/default.nix +++ b/pkgs/os-specific/linux/lvm2/default.nix @@ -49,6 +49,11 @@ stdenv.mkDerivation rec { substituteInPlace libdm/make.tmpl.in --replace "@systemdsystemunitdir@" "$out/lib/systemd/system" ''; + postConfigure = '' + sed -i 's|^#define LVM_CONFIGURE_LINE.*$|#define LVM_CONFIGURE_LINE ""|g' ./include/configure.h + ''; + + patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [ (fetchpatch { name = "fix-stdio-usage.patch";