mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 01:38:28 +00:00
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.
This commit is contained in:
parent
996cc9e845
commit
5622b6b6fe
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user