git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #34408 from markuskowa/beegfs-rdma-pr

beegfs: add beeond, enable RDMA

commitc6eb84b1c7004006553483d6f3fce776395016fa authorJörg Thalheim <Mic92@users.noreply.github.com> dateTue 30 Jan 2018, 10:17 (9 years ago) parentac4f896043dece
1 file changed+37−5
pkgs/os-specific/linux/beegfs/default.nix+37−5
pkgs/os-specific/linux/beegfs/default.nix+37−5
@@ -1,12 +1,15 @@
11{ stdenv, fetchurl, pkgconfig, unzip, which
2−, libuuid, attr, xfsprogs, cppunit
2+, libuuid, attr, xfsprogs, cppunit, rdma-core
33, zlib, openssl, sqlite, jre, openjdk, ant
4+, openssh, perl, gfortran
45} :
56
67let
78 version = "6.17";
89
910 subdirs = [
11+ "beeond_thirdparty/build"
12+ "beeond_thirdparty_gpl/build"
1013 "beegfs_thirdparty/build"
1114 "beegfs_opentk_lib/build"
1215 "beegfs_common/build"
@@ -30,21 +33,41 @@ in stdenv.mkDerivation rec {
3033 sha256 = "10xs7gzdmlg23k6zn1b7jij3lljn7rr1j6h476hq4lbg981qk3n3";
3134 };
3235
33− nativeBuildInputs = [ which unzip pkgconfig cppunit openjdk ant];
34− buildInputs = [ libuuid attr xfsprogs zlib openssl sqlite jre ];
36+ nativeBuildInputs = [ which unzip pkgconfig cppunit openjdk ant perl ];
37+
38+ buildInputs = [
39+ libuuid
40+ attr
41+ xfsprogs
42+ zlib
43+ openssl
44+ sqlite
45+ jre
46+ rdma-core
47+ openssh
48+ gfortran ];
49+
50+ hardeningDisable = [ "format" ]; # required for building beeond
3551
3652 postPatch = ''
3753 patchShebangs ./
3854 find -type f -name Makefile -exec sed -i "s:/bin/bash:${stdenv.shell}:" \{} \;
3955 find -type f -name Makefile -exec sed -i "s:/bin/true:true:" \{} \;
4056 find -type f -name "*.mk" -exec sed -i "s:/bin/true:true:" \{} \;
57+
58+ # unpack manually and patch variable name
59+ sed -i '/tar -C $(SOURCE_PATH) -xzf $(PCOPY_TAR)/d' beeond_thirdparty/build/Makefile
60+ cd beeond_thirdparty/source
61+ tar xf pcopy-0.96.tar.gz
62+ sed -i 's/\([^_]\)rank/\1grank/' pcopy-0.96/src/pcp.cpp
63+ cd ../..
4164 '';
4265
4366 buildPhase = ''
4467 for i in ${toString subdirs}; do
45− make -C $i
68+ make -C $i BEEGFS_OPENTK_IBVERBS=1
4669 done
47− make -C beegfs_admon/build admon_gui
70+ make -C beegfs_admon/build admon_gui BEEGFS_OPENTK_IBVERBS=1
4871 '';
4972
5073 installPhase = ''
@@ -93,6 +116,12 @@ in stdenv.mkDerivation rec {
93116
94117 cp beegfs_client_devel/build/dist/usr/share/doc/beegfs-client-devel/examples/* $docDir
95118 cp -r beegfs_client_devel/include/* $includeDir
119+
120+ cp beeond_thirdparty_gpl/build/parallel $out/bin
121+ cp beeond_thirdparty/build/pcopy/p* $out/bin
122+ cp beeond_thirdparty/build/pcopy/s* $out/bin
123+ cp -r beeond/scripts/* $out
124+ cp beeond/source/* $out/bin
96125 '';
97126
98127 postFixup = ''
@@ -100,6 +129,9 @@ in stdenv.mkDerivation rec {
100129 --replace " java " " ${jre}/bin/java " \
101130 --replace "/opt/beegfs/beegfs-admon-gui/beegfs-admon-gui.jar" \
102131 "$libDirPkg/beegfs-admon-gui.jar"
132+
133+ substituteInPlace $out/bin/beeond \
134+ --replace /opt/beegfs/sbin "$out/bin"
103135 '';
104136
105137 doCheck = true;