lib[ibverbs,rdmacm]: remove in favour of rdma-core

libibverbs and librdmacm are outdated and have
been replaced by the package rdma-core
This commit is contained in:
Markus Kowalewski 2018-10-23 18:44:37 +02:00
parent 13649b9eee
commit 43011b7b43
No known key found for this signature in database
GPG Key ID: D865C8A91D7025EB
3 changed files with 1 additions and 120 deletions

View File

@ -1,79 +0,0 @@
{ stdenv, fetchurl }:
let
verbs = rec {
version = "1.1.8";
name = "libibverbs-${version}";
url = "http://downloads.openfabrics.org/verbs/${name}.tar.gz";
sha256 = "13w2j5lrrqxxxvhpxbqb70x7wy0h8g329inzgfrvqv8ykrknwxkw";
};
drivers = {
libmlx4 = rec {
version = "1.0.6";
name = "libmlx4-${version}";
url = "http://downloads.openfabrics.org/mlx4/${name}.tar.gz";
sha256 = "f680ecbb60b01ad893490c158b4ce8028a3014bb8194c2754df508d53aa848a8";
};
libmthca = rec {
version = "1.0.6";
name = "libmthca-${version}";
url = "http://downloads.openfabrics.org/mthca/${name}.tar.gz";
sha256 = "cc8ea3091135d68233d53004e82b5b510009c821820494a3624e89e0bdfc855c";
};
};
in stdenv.mkDerivation rec {
inherit (verbs) name version ;
srcs = [
( fetchurl { inherit (verbs) url sha256 ; } )
( fetchurl { inherit (drivers.libmlx4) url sha256 ; } )
( fetchurl { inherit (drivers.libmthca) url sha256 ; } )
];
sourceRoot = name;
# Install userspace drivers
postInstall = ''
for dir in ${drivers.libmlx4.name} ${drivers.libmthca.name} ; do
cd ../$dir
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$out/include"
export NIX_LDFLAGS="-rpath $out/lib $NIX_LDFLAGS -L$out/lib"
./configure $configureFlags
make -j$NIX_BUILD_CORES
make install
done
mkdir -p $out/lib/pkgconfig
cat >$out/lib/pkgconfig/ibverbs.pc <<EOF
prefix=$out
exec_prefix=\''${prefix}
libdir=\''${exec_prefix}/lib
includedir=\''${prefix}/include
Name: IB verbs
Version: ${version}
Description: Library for direct userspace use of RDMA (InfiniBand/iWARP)
Libs: -L\''${libdir} -libverbs
Cflags: -I\''${includedir}
EOF
'';
# Re-add the libibverbs path into runpath of the library
# to enable plugins to be found by dlopen
postFixup = ''
RPATH=$(patchelf --print-rpath $out/lib/libibverbs.so)
patchelf --set-rpath $RPATH:$out/lib $out/lib/libibverbs.so.1.0.0
'';
meta = with stdenv.lib; {
homepage = https://www.openfabrics.org/;
license = licenses.bsd2;
platforms = with platforms; linux ++ freebsd;
maintainers = with maintainers; [ wkennington bzizou ];
};
}

View File

@ -1,36 +0,0 @@
{ stdenv, fetchurl, libibverbs }:
stdenv.mkDerivation rec {
name = "librdmacm-${version}";
version = "1.1.0";
src = fetchurl {
url = "https://www.openfabrics.org/downloads/rdmacm/${name}.tar.gz";
sha256 = "1ic0qd5ayvkybh4pxc5qx7sqvny1fv4anhxlf1nmsn0h926q844g";
};
buildInputs = [ libibverbs ];
postInstall = ''
mkdir -p $out/lib/pkgconfig
cat >$out/lib/pkgconfig/rdmacm.pc <<EOF
prefix=$out
exec_prefix=\''${prefix}
libdir=\''${exec_prefix}/lib
includedir=\''${prefix}/include
Name: RDMA library
Version: ${version}
Description: Library for managing RDMA connections
Libs: -L\''${libdir} -lrdmacm
Cflags: -I\''${includedir}
EOF
'';
meta = with stdenv.lib; {
homepage = https://www.openfabrics.org/;
platforms = with platforms; linux ++ freebsd;
license = licenses.bsd2;
maintainers = with maintainers; [ wkennington ];
};
}

View File

@ -3878,8 +3878,6 @@ with pkgs;
libiberty_static = libiberty.override { staticBuild = true; };
libibverbs = callPackage ../development/libraries/libibverbs { };
libxc = callPackage ../development/libraries/libxc { };
libxcomp = callPackage ../development/libraries/libxcomp { };
@ -3890,8 +3888,6 @@ with pkgs;
libzmf = callPackage ../development/libraries/libzmf {};
librdmacm = callPackage ../development/libraries/librdmacm { };
libreswan = callPackage ../tools/networking/libreswan { };
libwebsockets = callPackage ../development/libraries/libwebsockets { };
@ -21125,7 +21121,7 @@ with pkgs;
liblapackWithAtlas = liblapack;
liblbfgs = callPackage ../development/libraries/science/math/liblbfgs { };
lrs = callPackage ../development/libraries/science/math/lrs { };
m4ri = callPackage ../development/libraries/science/math/m4ri { };