diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-10-03 01:09:07 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-10-03 01:14:53 +0200 |
commit | 499c51016ef67bd0b158528dbff17ed6ecedd78b (patch) | |
tree | 9feb45c62db48fe7f3b456d9541c5eda2b49eb78 /pkgs/os-specific/linux/dmraid | |
parent | 14fe14985618e51a6bc05fc675fa51cfae08ff07 (diff) |
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/os-specific/linux/dmraid')
-rw-r--r-- | pkgs/os-specific/linux/dmraid/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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 ]; |