From 499c51016ef67bd0b158528dbff17ed6ecedd78b Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 3 Oct 2014 01:09:07 +0200 Subject: [PATCH] dmraid: Fix install target in lib/Makefile.in. The dmraid shared object file is created with a soname that contains a version. Unfortunately, the install target in the Makefile does not properly match on files ending with .so and so does not install it with the version suffix. Previously we only had a static library, which doesn't do much trouble if the version is missing, but with the dynamic library the ELF file depending on libdmraid uses the version, while the library itself isn't present with that suffix. Signed-off-by: aszlig --- pkgs/os-specific/linux/dmraid/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/os-specific/linux/dmraid/default.nix b/pkgs/os-specific/linux/dmraid/default.nix index ec4621e69570..9e7e2a6bb8e4 100644 --- a/pkgs/os-specific/linux/dmraid/default.nix +++ b/pkgs/os-specific/linux/dmraid/default.nix @@ -8,6 +8,10 @@ stdenv.mkDerivation rec { sha256 = "0m92971gyqp61darxbiri6a48jz3wq3gkp8r2k39320z0i6w8jgq"; }; + postPatch = '' + sed -i 's/\[\[[^]]*\]\]/[ "''$''${n##*.}" = "so" ]/' */lib/Makefile.in + ''; + preConfigure = "cd */"; buildInputs = [ devicemapper ];