me
/
guix
Archived
1
0
Fork 0

gnu: julia: Make libquadmath optional.

* gnu/packages/julia.scm (julia)[arguments]: Replace custom phase
removing libquadmath requirement for aarch64-linux with phase to make
libquadmath support optional.
Efraim Flashner 2022-12-08 10:21:13 +02:00
parent d521c2dcba
commit 7d8f92dd87
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 5 additions and 11 deletions

View File

@ -221,18 +221,12 @@ libraries. It is also a bit like @code{ldd} and @code{otool -L}.")
;; causing the build to fail prematurely.
(substitute* "contrib/generate_precompile.jl"
(("1200") "1100"))))
;; For some reason libquadmath is unavailable on this architecture.
;; libquadmath is not available on all architectures.
;; 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 ") "")))))
'())
(add-after 'unpack 'make-libquadmath-optional
(lambda _
(substitute* "base/Makefile"
(("libquadmath,0") "libquadmath,0,ALLOW_FAILURE"))))
(add-before 'check 'set-home
;; Some tests require a home directory to be set.
(lambda _ (setenv "HOME" "/tmp")))