aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2019-07-21 08:59:04 -0400
committerMark H Weaver <mhw@netris.org>2019-07-21 11:17:36 -0400
commit5d8187c2ac40905c5768c6595bc9580a5d839dfb (patch)
treeb5b936b7efae38e0b43d4c0072510196b8288a53 /configure.ac
parentaa84be4375debe9882d7596e99411b1ce674f4b4 (diff)
downloadguix-5d8187c2ac40905c5768c6595bc9580a5d839dfb.tar.gz
guix-5d8187c2ac40905c5768c6595bc9580a5d839dfb.zip
gnu: linux-libre@4.9: Update to 4.9.186.
* gnu/packages/linux.scm (linux-libre-4.9-version): Update to 4.9.186. (linux-libre-4.9-pristine-source): Update hash.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions
Date();"))
(number->string (parallel-job-count))))
'())
,@make-flags))))
+ (add-after 'unpack 'patch-jni-libs
+ ;; Hardcode dynamically loaded libraries.
+ (lambda _
+ (let* ((library-path (search-path-as-string->list
+ (getenv "LIBRARY_PATH")))
+ (find-library (lambda (name)
+ (search-path
+ library-path
+ (string-append "lib" name ".so")))))
+ (for-each
+ (lambda (file)
+ (catch 'decoding-error
+ (lambda ()
+ (substitute* file
+ (("VERSIONED_JNI_LIB_NAME\\(\"(.*)\", \"(.*)\"\\)"
+ _ name version)
+ (format #f "\"~a\"" (find-library name)))
+ (("JNI_LIB_NAME\\(\"(.*)\"\\)" _ name)
+ (format #f "\"~a\"" (find-library name)))))
+ (lambda _
+ ;; Those are safe to skip.
+ (format (current-error-port)
+ "warning: failed to substitute: ~a~%"
+ file))))
+ (find-files "."
+ "\\.c$|\\.h$"))
+ #t)))
;; Some of the libraries in the lib/ folder link to libjvm.so.
;; But that shared object is located in the server/ folder, so it
;; cannot be found. This phase creates a symbolic link in the