diff options
author | Michael Raitza <michael.raitza@tu-dresden.de> | 2020-10-02 12:07:28 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-11-17 16:12:21 +0100 |
commit | f08099d0a724bee7123eebea81914c32610f967f (patch) | |
tree | c2b2cdf88f8de5ab1438be626d1f68ddf82fce56 /pkgs/servers/openafs | |
parent | 62a34589b8cf2da71f3e7fdb5b5003b83710d00e (diff) |
openafs_1_8: Merge server output with out
User and server binaries cannot be shipped separately. The bos tool uses a hard-coded path to the volume salvage command (which resides with the server binaries). Splitting them into separate outputs invalidates the reference in the bos tool (due to remove-references-to). This rendered the volume salvager inoperable (which is obviously a bad thing).
Diffstat (limited to 'pkgs/servers/openafs')
-rw-r--r-- | pkgs/servers/openafs/1.8/default.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/servers/openafs/1.8/default.nix b/pkgs/servers/openafs/1.8/default.nix index 4189ff9d01403..2247afbc0d954 100644 --- a/pkgs/servers/openafs/1.8/default.nix +++ b/pkgs/servers/openafs/1.8/default.nix @@ -1,6 +1,6 @@ { stdenv, buildPackages, fetchurl, which, autoconf, automake, flex -, docbook_xml_dtd_43 , libtool_2, removeReferencesTo , yacc , glibc, perl, kerberos, libxslt, docbook_xsl, file +, docbook_xml_dtd_43, libtool_2 , ncurses # Extra ncurses utilities. Needed for debugging and monitoring. , tsmbac ? null # Tivoli Storage Manager Backup Client from IBM }: @@ -15,13 +15,13 @@ in stdenv.mkDerivation { depsBuildBuild = [ buildPackages.stdenv.cc ]; nativeBuildInputs = [ autoconf automake flex libxslt libtool_2 perl - removeReferencesTo which yacc ]; + which yacc ]; buildInputs = [ kerberos ncurses ]; patches = [ ./bosserver.patch ./cross-build.patch ] ++ optional (tsmbac != null) ./tsmbac.patch; - outputs = [ "out" "dev" "man" "doc" "server" ]; + outputs = [ "out" "dev" "man" "doc" ]; enableParallelBuilding = false; @@ -57,7 +57,6 @@ in stdenv.mkDerivation { ${optionalString (tsmbac != null) "--enable-tivoli-tsm"} ${optionalString (ncurses == null) "--disable-gtx"} "--disable-linux-d_splice-alias-extra-iput" - "--libexecdir=$server/libexec" ) '' + optionalString (tsmbac != null) '' export XBSA_CFLAGS="-Dxbsa -DNEW_XBSA -I${tsmbac}/lib64/sample -DXBSA_TSMLIB=\\\"${tsmbac}/lib64/libApiTSM64.so\\\"" @@ -86,8 +85,6 @@ in stdenv.mkDerivation { # binaries. preFixup = '' rm -rf "$(pwd)" && mkdir "$(pwd)" - - find $out -type f -exec remove-references-to -t $server '{}' '+' ''; meta = with stdenv.lib; { |