3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #48899 from markuskowa/clean-rdma

libibverbs,librdmacm: remove in favour of rdma-core
This commit is contained in:
Jörg Thalheim 2018-11-10 22:01:43 +00:00 committed by GitHub
commit 7ce08cb18e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 119 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

@ -3952,8 +3952,6 @@ with pkgs;
libiberty_static = libiberty.override { staticBuild = true; };
libibverbs = callPackage ../development/libraries/libibverbs { };
libxc = callPackage ../development/libraries/libxc { };
libxcomp = callPackage ../development/libraries/libxcomp { };
@ -3964,8 +3962,6 @@ with pkgs;
libzmf = callPackage ../development/libraries/libzmf {};
librdmacm = callPackage ../development/libraries/librdmacm { };
libreswan = callPackage ../tools/networking/libreswan { };
libwebsockets = callPackage ../development/libraries/libwebsockets { };