gnu: openjdk11: Fix ".so" file path patching.

* gnu/packages/java.scm (openjdk11)[arguments]<#:phases>[patch-jni-libs]:
Fix ".so" file path patching.

Change-Id: If705ef237a2afe537af41227479cd2f91efe5ae2
This commit is contained in:
Danny Milosavljevic 2024-02-23 23:23:52 +01:00
parent b993bfa94f
commit f93d86aaaf
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -1298,10 +1298,10 @@ (define (icedtea-or-openjdk? path)
(catch 'decoding-error
(lambda ()
(substitute* file
(("VERSIONED_JNI_LIB_NAME\\(\"(.*)\", \"(.*)\"\\)"
(("VERSIONED_JNI_LIB_NAME\\(\"([^\"]*)\", \"([^\"]*)\"\\)"
_ name version)
(string-append "\"" (find-library name) "\""))
(("JNI_LIB_NAME\\(\"(.*)\"\\)" _ name)
(("JNI_LIB_NAME\\(\"([^\"]*)\"\\)" _ name)
(string-append "\"" (find-library name) "\""))))
(lambda _
;; Those are safe to skip.