gnu: julia: Don't invoke /sbin/ldconfig.

Reported by Marco van Hulten <marco@hulten.org>
in <https://bugs.gnu.org/30282>.

* gnu/packages/julia.scm (julia)[arguments] <'hardcode-soname-map>:
Patch out 'ldconfig' invocations.
This commit is contained in:
Ludovic Courtès 2018-02-06 14:21:12 +01:00
parent d40b5684c5
commit 9805ad6f87
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -146,6 +146,12 @@ (define-public julia
(lambda* (#:key inputs #:allow-other-keys)
(use-modules (ice-9 match))
(substitute* "src/runtime_ccall.cpp"
;; Patch out invocations of '/sbin/ldconfig' to avoid getting
;; error messages about missing '/sbin/ldconfig' on GuixSD.
(("popen\\(.*ldconfig.*\\);")
"NULL;\n")
;; Populate 'sonameMap'.
(("jl_read_sonames.*;")
(string-join
(map (match-lambda