gnu: julia: Fix building on aarch64-linux.

* gnu/packages/julia.scm (julia)[arguments]: Add phase on aarch64-linux
to skip linking to nonexistant libquadmath.
This commit is contained in:
Efraim Flashner 2021-08-05 13:44:23 +03:00
parent e914fc5913
commit 7f3ccc5bdb
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -341,6 +341,19 @@ (define-public julia
(("\\$\\$\\(build_depsbindir\\)/libwhich") (("\\$\\$\\(build_depsbindir\\)/libwhich")
(string-append (assoc-ref inputs "libwhich") "/bin/libwhich"))) (string-append (assoc-ref inputs "libwhich") "/bin/libwhich")))
#t)) #t))
;; For some reason libquadmath is unavailable on this architecture.
;; https://github.com/JuliaLang/julia/issues/41613
,@(if (target-aarch64?)
'((add-after 'unpack 'drop-libquadmath-on-aarch64
(lambda _
(substitute* '("contrib/fixup-libgfortran.sh"
"deps/csl.mk"
"base/Makefile")
((".*libquadmath.*") ""))
(substitute* "Makefile"
(("libquadmath ") ""))
#t)))
'())
(add-before 'check 'set-home (add-before 'check 'set-home
;; Some tests require a home directory to be set. ;; Some tests require a home directory to be set.
(lambda _ (setenv "HOME" "/tmp") #t)) (lambda _ (setenv "HOME" "/tmp") #t))