mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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).
This commit is contained in:
parent
62a34589b8
commit
f08099d0a7
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user