openjfx14: correctly remove references to jdk11 (#96298)
The new version string for jdk11 contains a '+' character, which needs
to be escaped for use in the sed command.
Fixes #95117.
commit5622b6b6feb669edc227aaf000413d5b593d4051
authorMilan <me@pbb.lc>
dateWed 26 Aug 2020, 23:35 (6 years ago)
parent996cc9e
pkgs/development/compilers/openjdk/openjfx/14.nix+1−1
@@ -96,7 +96,7 @@ in makePackage {
9696 postFixup = ''
9797 # Remove references to bootstrap.
9898 find "$out" -name \*.so | while read lib; do
99− new_refs="$(patchelf --print-rpath "$lib" | sed -E 's,:?${openjdk11_headless}[^:]*,,')"
99+ new_refs="$(patchelf --print-rpath "$lib" | sed -E 's,:?${lib.escape ["+"] openjdk11_headless.outPath}[^:]*,,')"
100100 patchelf --set-rpath "$new_refs" "$lib"
101101 done
102102 '';