elasticsearch: make sure to patchelf the x-pack-ml binaries

This commit is contained in:
Bas van Dijk 2018-12-02 15:54:20 +01:00
parent 7035598251
commit b560dd9047

View File

@ -64,7 +64,7 @@ stdenv.mkDerivation (rec {
nativeBuildInputs = [ autoPatchelfHook ];
runtimeDependencies = [ zlib ];
postFixup = ''
for exe in $(find $out/modules/x-pack/x-pack-ml/platform/linux-x86_64/bin -executable -type f); do
for exe in $(find $out/modules/x-pack-ml/platform/linux-x86_64/bin -executable -type f); do
echo "patching $exe..."
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$exe"
done