From patchwork Thu Oct 21 13:10:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Baptiste Volatier X-Patchwork-Id: 33999 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C6E6027BBE3; Thu, 21 Oct 2021 14:11:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A2E0A27BBE1 for ; Thu, 21 Oct 2021 14:11:17 +0100 (BST) Received: from localhost ([::1]:50576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdXqm-0005Ar-Il for patchwork@mira.cbaines.net; Thu, 21 Oct 2021 09:11:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdXqZ-00056X-2O for guix-patches@gnu.org; Thu, 21 Oct 2021 09:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdXqY-0007rT-N2 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-0008OT-Hu for guix-patches@gnu.org; Thu, 21 Oct 2021 09:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51319] [PATCH 2/2] gnu: Add julia-sundials-jull 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.163482181632183 (code B ref 51319); Thu, 21 Oct 2021 13:11:02 +0000 Received: (at 51319) by debbugs.gnu.org; 21 Oct 2021 13:10:16 +0000 Received: from localhost ([127.0.0.1]:56505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXpo-0008N1-HC for submit@debbugs.gnu.org; Thu, 21 Oct 2021 09:10:16 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:32801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXpm-0008MM-Hx for 51319@debbugs.gnu.org; Thu, 21 Oct 2021 09:10:15 -0400 Date: Thu, 21 Oct 2021 13:10:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1634821808; bh=xVUwNeSlSC1rt0/YxNCICUoTlJ7mwUEqqw//JzAtab8=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=mD0odhERT5+nI3Kk41NTb3nEhQMjz5rtGhRiittUmb+Y7XaUwO3XNnRLg2rKhsN1F /CFuU1BEbgXwNimf3YKnBTFnSYM41DRBSVc6BKZYY16YUHL8t2rzncwNeL72eNpiVI tx0oInOeZH0AjTR0Nprqk//68OPHruADV6p75nGJi4l6PgZg3qEZ/MdixPiz5hk6U5 fioSOAiFNCx+FmwsioVVZpPu4ybsvIWK5dcPCVJjbL2UNFa1CKVJxcryccFUlcPjjS SMm+TqxmkdsSnbld3DvRW/TU95XDytQmmsUa7+Jwey1+B9dte+LJdDmrsVZWLPgom7 yV6W4dyPtbHuQ== Message-ID: <20211021130952.14696-3-jbv@pm.me> In-Reply-To: <20211021130952.14696-1-jbv@pm.me> References: <20211021130952.14696-1-jbv@pm.me> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Jean-Baptiste Volatier X-ACL-Warn: , Jean-Baptiste Volatier via Guix-patches X-Patchwork-Original-From: Jean-Baptiste Volatier via Guix-patches via From: Jean-Baptiste Volatier X-getmail-retrieved-from-mailbox: Patches * gnu/packages/julia-jll.scm (julia-sundials-jll): New variable. * gnu/packages/maths.scm (sundials-julia): New variable. --- gnu/packages/julia-jll.scm | 38 ++++++++++++++++++++++++++++++++++++++ gnu/packages/maths.scm | 24 ++++++++++++++++++++++++ 2 files changed, 62 insertions(+) -- 2.33.1 diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm index d3677d0a33..e1c33903dd 100644 --- a/gnu/packages/julia-jll.scm +++ b/gnu/packages/julia-jll.scm @@ -2709,3 +2709,41 @@ (define-public julia-zstd-jll (synopsis "Zstd library wrappers") (description "This package provides a wrapper for the zstd library.") (license license:expat))) + +(define-public julia-sundials-jll + (package + (name "julia-sundials-jll") + (version "5.2.1+0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaBinaryWrappers/Sundials_jll.jl") + (commit (string-append "Sundials-v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0cijb9frq8gj8bjpqf2lr5d0jxlj262y6h6xi4z3536dingrvffc")))) + (build-system julia-build-system) + (arguments + '(#:tests? #f ; no runtests + #:phases + (modify-phases %standard-phases + (add-after 'link-depot 'override-binary-path + (lambda* (#:key inputs #:allow-other-keys) + (map + (lambda (wrapper) + (substitute* wrapper + (("global artifact_dir.*") + (string-append + "global artifact_dir = \"" + (assoc-ref inputs "sundials") "\"\n")))) + ;; There's a Julia file for each platform, override them all + (find-files "src/wrappers/" "\\.jl$"))))))) + (inputs + `(("sundials" ,sundials-julia))) + (propagated-inputs + `(("julia-jllwrappers" ,julia-jllwrappers))) + (home-page "https://github.com/JuliaBinaryWrappers/Sundials_jll.jl") + (synopsis "SUndials library wrappers") + (description "This package provides a wrapper for the sundials library.") + (license license:expat))) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 038ca5518c..54f44a3b55 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5943,6 +5943,30 @@ (define-public sundials-openmpi ,%openmpi-setup))))) (synopsis "SUNDIALS with OpenMPI support"))) +(define-public sundials-julia + (package + (inherit sundials) + (name "sundials-julia") + (version "5.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LLNL/sundials.git") + (commit (string-append "v" version)))) + (sha256 + (base32 + "08q9svjdl6fmqrwyd9p12m98n0wd2lws38yh223wyp6590zi3i49")))) + (inputs + `(("lapack" ,lapack) + ,@(package-inputs sundials))) + (arguments + (substitute-keyword-arguments (package-arguments sundials) + ((#:configure-flags flags '()) + `(cons* "-DLAPACK_ENABLE:BOOL=ON" + ,flags)))) + (synopsis "SUNDIALS with lapack support as required by julia-sundials-jll"))) + (define-public combinatorial-blas (package (name "combinatorial-blas")