Skip to content

Commit

Permalink
openjfx14: correctly remove references to jdk11 (#96298)
Browse files Browse the repository at this point in the history
The new version string for jdk11 contains a '+' character, which needs
to be escaped for use in the sed command.
Fixes #95117.
  • Loading branch information
Milan committed Aug 26, 2020
1 parent 996cc9e commit 5622b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/compilers/openjdk/openjfx/14.nix
Expand Up @@ -96,7 +96,7 @@ in makePackage {
postFixup = ''
# Remove references to bootstrap.
find "$out" -name \*.so | while read lib; do
new_refs="$(patchelf --print-rpath "$lib" | sed -E 's,:?${openjdk11_headless}[^:]*,,')"
new_refs="$(patchelf --print-rpath "$lib" | sed -E 's,:?${lib.escape ["+"] openjdk11_headless.outPath}[^:]*,,')"
patchelf --set-rpath "$new_refs" "$lib"
done
'';
Expand Down

0 comments on commit 5622b6b

Please sign in to comment.