GNU bug report logs - #51319
[PATCH 0/2] Better interoperability between guix and Julia built-in package manager

Previous Next

Package: guix-patches;

Reported by: Jean-Baptiste Volatier <jbv <at> pm.me>

Date: Thu, 21 Oct 2021 13:08:01 UTC

Severity: normal

Tags: patch

Done: zimoun <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jean-Baptiste Volatier <jbv <at> pm.me>
Subject: bug#51319: closed (Re: bug#51319: [PATCH 0/2] Better
 interoperability between guix and Julia built-in package manager)
Date: Thu, 10 Mar 2022 00:00:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#51319: [PATCH 0/2] Better interoperability between guix and Julia built-in package manager

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 51319 <at> debbugs.gnu.org.

-- 
51319: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51319
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 51319-done <at> debbugs.gnu.org, Jean-Baptiste Volatier <jbv <at> pm.me>,
 efraim <at> flashner.co.il
Subject: Re: bug#51319: [PATCH 0/2] Better interoperability between guix and
 Julia built-in package manager
Date: Thu, 10 Mar 2022 00:59:35 +0100
Hi Ludo,

On Thu, 10 Mar 2022 at 00:33, Ludovic Courtès <ludo <at> gnu.org> wrote:

>   https://issues.guix.gnu.org/51319
>
> Could you take a look and apply them if appropriate?

From my understanding, already applied with
3af351a7de41b8d50f27f3623c46392f571b9a4e and
546f8537aad3ac03fef43e036d3cab3abc943915.  Therefore, I am closing.

Thanks for taking care.

Cheers,
simon

PS: The feature pointed in the Guix-HPC report, IIRC. ;-)

[Message part 3 (message/rfc822, inline)]
From: Jean-Baptiste Volatier <jbv <at> pm.me>
To: guix-patches <at> gnu.org
Cc: Jean-Baptiste Volatier <jbv <at> pm.me>
Subject: [PATCH 0/2] Better interoperability between guix and Julia built-in
 package manager
Date: Thu, 21 Oct 2021 13:06:56 +0000
With this patch, when a user install a package using Julia package manager,
the package manager finds packages that were already installed in the guix
profile and use them.

First patch of the serie does the implementation, the second patch is an example using
sundials_jll package.

Sundials_jll is a julia package that wraps the sundials library, it is typically not
installed on its own but as a dependency of DifferentialEquations.jl for example.

As DifferentialEquations.jl is not currently packaged in julia, a fallback is to
install it with julia package manager. Unfortunately that will also install
sundials_jll and downloads some .so that will fail to load on Guix because of
linker incompatilibities.

Now with the proposed patch, the user can install sundials_jll using guix,
and then julia package manager will use this package instead of downloading some
binary files.

As for the patch itself, it works by following more closely the directory
structure that Julia expects in JULIA_DEPOT_PATH. Namely the packages
subfolder should not contain packages but packages/XXXX/ where XXXX is
a string encoding package uuid and sha1 of package files.

$JULIA_DEPOT_PATH/packages was also used as JULIA_LOAD_PATH, this will not
work anymore as packages are behind a layer of XXXX sub directories.
So instead I added a new subfolder $JULIA_DEPOT_PATH/loadpath where the package
is installed and $JULIA_DEPOT_PATH/packages/XXXX is a symlink to it.

Jean-Baptiste Volatier (2):
  build-system/julia: Enable Julia Pkg to find installed packages
  gnu: Add julia-sundials-jull

 gnu/packages/julia-jll.scm        | 38 +++++++++++++++++++++++++
 gnu/packages/julia-xyz.scm        |  2 +-
 gnu/packages/julia.scm            |  2 +-
 gnu/packages/maths.scm            | 24 ++++++++++++++++
 guix/build/julia-build-system.scm | 46 ++++++++++++++++++++++++++++---
 5 files changed, 106 insertions(+), 6 deletions(-)

--
2.33.1





This bug report was last modified 3 years and 74 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.