Merge pull request #121605 from regnat/fix-openjfx-with-ca

openjfx: Fix for CA derivations
wip/yesman
Dmitry Kalinkin 3 years ago committed by GitHub
commit f65f1a4047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkgs/development/compilers/openjdk/openjfx/15.nix

@ -95,8 +95,9 @@ in makePackage {
postFixup = ''
# Remove references to bootstrap.
export openjdkOutPath='${openjdk11_headless.outPath}'
find "$out" -name \*.so | while read lib; do
new_refs="$(patchelf --print-rpath "$lib" | sed -E 's,:?${lib.escape ["+"] openjdk11_headless.outPath}[^:]*,,')"
new_refs="$(patchelf --print-rpath "$lib" | perl -pe 's,:?\Q$ENV{openjdkOutPath}\E[^:]*,,')"
patchelf --set-rpath "$new_refs" "$lib"
done
'';

Loading…
Cancel
Save