guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: julia: Fix llvm-julia version.


From: guix-commits
Subject: branch master updated: gnu: julia: Fix llvm-julia version.
Date: Mon, 15 Nov 2021 15:38:49 -0500

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new a1a7e2b  gnu: julia: Fix llvm-julia version.
a1a7e2b is described below

commit a1a7e2b95170dd2e998ef1855544fea162b11685
Author: Jean-Baptiste Volatier <jbv@pm.me>
AuthorDate: Sat Oct 16 19:12:14 2021 +0000

    gnu: julia: Fix llvm-julia version.
    
    LLVM bundled in the binary julia distributed by upstream has its
    version with a "jl" suffix. The llvm-julia package does not have
    this suffix, which causes some packages (e. g. LLVM.jl) to fail to
    load.
    
    LLVM.jl does this in order to be sure that it is loading a LLVM as
    patched for julia and not LLVM from the distribution which will
    lack the correct patches on distribs other than GUIX.
    
    I guess there might be other packages that rely on this, so we
    should fix our llvm-julia package.
    
    * gnu/packages/julia.scm (llvm)
    [source]: Add missing upstream patch
    [arguments]: Add configure-flag to set a "jl" suffix to llvm version
    (julia)[arguments]: Symlink llvm to llvm-11jl.so
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/julia.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm
index fe31e54..411f2e2 100644
--- a/gnu/packages/julia.scm
+++ b/gnu/packages/julia.scm
@@ -131,6 +131,8 @@
                        "19spqc3xsazn1xs9gpcgv9ldadfkv49rmc5khl7sf1dlmhgi4602")
                      '("llvm-7.0-D44650"
                        "1h55kkmkiisfj6sk956if2bcj9s0v6n5czn8dxb870vp5nccj3ir")
+                     '("llvm7-symver-jlprefix"
+                       "00ng32x6xhm9czczirn5r1q1mc1myad44fqhi061hwh1vb46dwgm")
                      '("llvm-6.0-DISABLE_ABI_CHECKS"
                        "014fawd1ba7yckalypfld22zgic87x9nx3cim42zrwygywd36pyg")
                      '("llvm9-D50010-VNCoercion-ni"
@@ -211,7 +213,8 @@
            ;; "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.hostPlatform.config}"
            ;; "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly"
            "-DLLVM_ENABLE_DUMP=ON"
-           "-DLLVM_LINK_LLVM_DYLIB=ON"))))
+           "-DLLVM_LINK_LLVM_DYLIB=ON"
+           "-DLLVM_VERSION_SUFFIX:STRING=jl"))))
     (inputs
      (append
        (package-inputs llvm-11)
@@ -548,7 +551,7 @@ libraries.  It is also a bit like @code{ldd} and 
@code{otool -L}.")
                                                               (basename 
file)))))
                         (find-files (string-append (assoc-ref inputs pkgname)
                                                    "/lib") pred)))))
-               (link "llvm" "libLLVM-11\\.so")
+               (link "llvm" "libLLVM-11jl\\.so")
                (link "utf8proc" "libutf8proc\\.so")
                #t)))
          (add-after 'install 'make-wrapper



reply via email to

[Prev in Thread] Current Thread [Next in Thread]