From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 21 09:10:10 2021 Received: (at 51319) by debbugs.gnu.org; 21 Oct 2021 13:10:10 +0000 Received: from localhost ([127.0.0.1]:56499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXpi-0008MW-8D for submit@debbugs.gnu.org; Thu, 21 Oct 2021 09:10:10 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:19547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXpg-0008MC-MY for 51319@debbugs.gnu.org; Thu, 21 Oct 2021 09:10:09 -0400 Date: Thu, 21 Oct 2021 13:09:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1634821802; bh=PHg3brmTOlCI7OxK+03DW5rPyepuT4GChDce2YLkNz0=; h=Date:To:From:Cc:Reply-To:Subject:From; b=WGdSPycwv0r+DKnFyLsQ998Xj4QMdHMaoINBAjgOdt6LroE/7/uPfQHus75fmk58S sFqjRg4V8MU3PHZHAzpECCzn7y7Vo/qFhACgS8c3WDapk6rNUL6ty5+qNwJQTEwR9R SJ6uLezfNlc/ybSFhn4WPsvnBlj0pdiuPznDkvBye1RhGijy0dVPIYS7quR6AKOjEd 3FYVmv33+CNgtrHUmgUk0n+W3xIrwYzo5QonY5Fwy0Kc+euFc8OdfV9D10TO01sOTH qiBGBiElEGx5ReMbsZ1MEEcoX46n9FLNzS5QLtWXRx33HjsfyVjk5TQ67qhseyj1Xy OGXb6QaZV78nQ== To: 51319@debbugs.gnu.org From: Jean-Baptiste Volatier Subject: [PATCH 0/2] Better interoperability between guix and Julia built-in package manager Message-ID: <20211021130952.14696-1-jbv@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51319 Cc: Jean-Baptiste Volatier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jean-Baptiste Volatier Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 ex= ample using sundials_jll package. Sundials_jll is a julia package that wraps the sundials library, it is typi= cally not installed on its own but as a dependency of DifferentialEquations.jl for ex= ample. 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 pac= kage 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