mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
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:
parent
e914fc5913
commit
7f3ccc5bdb
1 changed files with 13 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue