openjdk/bootstrap: add zlib to bootstrap JDK RPATH
./bin/java now apparently requires zlib.so, otherwise the whole thing is busted. This is even required in the minimal configuration. Unfortunately this impiles a rebuild of *all* OpenJDK packages and their downstream dependencies. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
5f7cad19a8
commit
bdb531f6af
@ -1,5 +1,5 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, runCommand, fetchurl, file
|
, runCommand, fetchurl, file, zlib
|
||||||
|
|
||||||
, version
|
, version
|
||||||
}:
|
}:
|
||||||
@ -45,7 +45,7 @@ let
|
|||||||
find "$out" -type f -print0 | while IFS= read -r -d "" elf; do
|
find "$out" -type f -print0 | while IFS= read -r -d "" elf; do
|
||||||
isELF "$elf" || continue
|
isELF "$elf" || continue
|
||||||
patchelf --set-interpreter $(cat "${stdenv.cc}/nix-support/dynamic-linker") "$elf" || true
|
patchelf --set-interpreter $(cat "${stdenv.cc}/nix-support/dynamic-linker") "$elf" || true
|
||||||
patchelf --set-rpath "${stdenv.cc.libc}/lib:${stdenv.cc.cc.lib}/lib:$LIBDIRS" "$elf" || true
|
patchelf --set-rpath "${stdenv.cc.libc}/lib:${stdenv.cc.cc.lib}/lib:${zlib}/lib:$LIBDIRS" "$elf" || true
|
||||||
done
|
done
|
||||||
|
|
||||||
# Temporarily, while NixOS's OpenJDK bootstrap tarball doesn't have PaX markings:
|
# Temporarily, while NixOS's OpenJDK bootstrap tarball doesn't have PaX markings:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user