From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 21 09:07:19 2021 Received: (at submit) by debbugs.gnu.org; 21 Oct 2021 13:07:19 +0000 Received: from localhost ([127.0.0.1]:56488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXmx-0008GQ-J3 for submit@debbugs.gnu.org; Thu, 21 Oct 2021 09:07:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:49768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXmw-0008GJ-1O for submit@debbugs.gnu.org; Thu, 21 Oct 2021 09:07:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdXmv-00020t-Tm for guix-patches@gnu.org; Thu, 21 Oct 2021 09:07:17 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:32060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdXms-0003Sy-4X for guix-patches@gnu.org; Thu, 21 Oct 2021 09:07:17 -0400 Date: Thu, 21 Oct 2021 13:06:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1634821620; bh=PHg3brmTOlCI7OxK+03DW5rPyepuT4GChDce2YLkNz0=; h=Date:To:From:Cc:Reply-To:Subject:From; b=nJ6RsJd02cY6Wili6H7G19riB9vVfd9BN11tNwFLoTr1Ktf/MA6b74YrIJGLnDp2O wT0WWn9OFXHZj6cpxhDC6veyGST6Ax1NwGxXXxESpwJQ88enPDf19LFQqdYV3PwQ22 Pu5fA0fCgpGRCqJRWePAT3lA939lpBIh08AwEWaRZhqsO+oNkQ00U7ojobrhg4/7Xb wiV6ly0PDTbBhM+l5+ix5hEYRY+K/k8dUxWqEyhuwAHiuCi1DdbBEH5oxucdt6GP1J mYRbVmSXJIdo10W3gsYXdZtpqtwZBNlRh2VUZ9dwyHPOxa8e6ZEr4F1yYdHAboi7QX h+D0mTZsN1dPw== To: guix-patches@gnu.org From: Jean-Baptiste Volatier Subject: [PATCH 0/2] Better interoperability between guix and Julia built-in package manager Message-ID: <20211021130648.14594-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 Received-SPF: pass client-ip=185.70.40.134; envelope-from=jbv@pm.me; helo=mail-40134.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) 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