From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qDl9D/dmcWGwZwAAgWs5BA (envelope-from ) for ; Thu, 21 Oct 2021 15:11:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UKEXC/dmcWF4ZgAAbx9fmQ (envelope-from ) for ; Thu, 21 Oct 2021 13:11:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DF0E836929 for ; Thu, 21 Oct 2021 15:11:18 +0200 (CEST) Received: from localhost ([::1]:50850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdXqo-0005NC-2G for larch@yhetil.org; Thu, 21 Oct 2021 09:11:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdXqZ-00056S-1c for guix-patches@gnu.org; Thu, 21 Oct 2021 09:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdXqY-0007rC-FP for guix-patches@gnu.org; Thu, 21 Oct 2021 09:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdXqY-0008OL-3R for guix-patches@gnu.org; Thu, 21 Oct 2021 09:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51319] [PATCH 0/2] Better interoperability between guix and Julia built-in package manager References: <20211021130648.14594-1-jbv@pm.me> In-Reply-To: <20211021130648.14594-1-jbv@pm.me> Resent-From: Jean-Baptiste Volatier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Oct 2021 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51319 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51319@debbugs.gnu.org Cc: Jean-Baptiste Volatier Received: via spool by 51319-submit@debbugs.gnu.org id=B51319.163482181032153 (code B ref 51319); Thu, 21 Oct 2021 13:11:02 +0000 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== 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Jean-Baptiste Volatier X-ACL-Warn: , Jean-Baptiste Volatier via Guix-patches From: Jean-Baptiste Volatier via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634821878; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PHg3brmTOlCI7OxK+03DW5rPyepuT4GChDce2YLkNz0=; b=Lg9IQ8PuQtNJk0VAcl0r3MQJdjCXACwGQHB8XlimAAd3bdJ2NosWv/Ial+FwmvLxT3O3JV o2I2rb3T1wYEocwGHU/YdqZrnhJDQ541zDOY68j7WcE2r/+X8k7UXj26h4gK6cj2gzCW9u 5+L9uia9U/K2e/cHkgfUhp2i25cvvaCb9UlD0h/s4jeTT4pkoRMgvS90+QYU+VZx5qEH4b wpbD7TJlhYfXiGkOCaTm01E39U/B7gOBQY9+zHmbhJrGlKyJX3ZFcny0utFr65qbYJuEV8 V35My2tNdUFbqcaw5MjD2HjkyiOA9+yth+ns19B/dGVr9P/Zbx5HVpdEhVn5GA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634821878; a=rsa-sha256; cv=none; b=sxWMdBlUypUc63nGBDqT/twVqjMyixAlM9ADiDrLf4wwiD/kQ/BvONjZgb+xknhqiJXOML vuZfsW7UQTIidJrtzgVtJoi0ocqzkF3xDklKOcRNvBV6piA0wpq5xPNmv77IA9O8XCzSHp 3bRmxTjUjMDAzcLnQVEx4OSyGkSPKuC47pEW72/3cJ/yzwSH1nWFJejP5OJcdZrkgW4AE9 ylOxtsDIeJc8Hi4NlIJSN1S+gJzYhSnPr7C0FnWm7o0i6ia1FajX9ub8VMMSY57AGDJa+S yMlPTlPH9eBqVQXYBEttzQputiqPsgqJpeWUino5HPhHtguCzPIUpqSSiFPiuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pm.me header.s=protonmail header.b=WGdSPycw; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pm.me header.s=protonmail header.b=WGdSPycw; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: DF0E836929 X-Spam-Score: -1.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZN3CY6xFRskk 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