From patchwork Thu Sep 21 13:27:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54121 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 4F99727BBE9; Thu, 21 Sep 2023 14:29:27 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D08E527BBE2 for ; Thu, 21 Sep 2023 14:29:25 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJji-0004AO-RB; Thu, 21 Sep 2023 09:28:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJjg-000497-LB for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:52 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJjg-0006a2-E7 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:52 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJjq-0004ta-8F for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 01/20] gnu: suitesparse: Tweak description. References: In-Reply-To: Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530291118599 (code B ref 66129); Thu, 21 Sep 2023 13:29:02 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:31 +0000 Received: from localhost ([127.0.0.1]:33027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjK-0004pu-AQ for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:30 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjH-0004pY-Dx for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 58593240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302891; bh=/yGXd07D3rbX+AOX2mZo2QmDOJSLbizreDv2zfXRO14=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Qb/AvXTQW2YE3+7iECaCmjH46RW+lSmQ1WdmEbm1nDtWMimMLj+V1PYPSj/RnrUP4 ABU+6wq0lGgxeUmlPpWMkFuENtUyiIq7SCBN4IHtyH6tsigrtCnkRqkbr5XNFPH4p/ O7mWkmj5AMpMnpJ49CXWpdAs4uAyLYUNyCjEmnmfiLlwhki8MDDx0f7ARC3I8Xy9s1 puEhUDgLcWKPvxSsgtGbBzAbbn7zRGd6ZzzlGv94w43XIYoaONTSy/UmxWH6vVICwa l10a1RBuP8yF7xZ/qkRFcRxEom+pgNBhGZWGoM1tcZfxkFE1UAG/s3U1MuFocLAoFR F6+twdwARqyEg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6f6Zgfz6twF; Thu, 21 Sep 2023 15:28:10 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:36 +0000 Message-ID: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse)[description]: Mention that all subpackages are included. --- gnu/packages/maths.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 6141c09886..a77928f9b6 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4960,7 +4960,10 @@ (define-public suitesparse multifrontal QR; KLU and BTF, sparse LU factorization, well-suited for circuit simulation; ordering methods (AMD, CAMD, COLAMD, and CCOLAMD); CSparse and CXSparse, a concise sparse Cholesky factorization package; and many other -packages.") +packages. + +This package contains all of the above-mentioned parts. +") ;; LGPLv2.1+: ;; AMD, CAMD, BTF, COLAMD, CCOLAMD, CSparse, CXSparse, KLU, LDL ;; GPLv2+: From patchwork Thu Sep 21 13:27:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54118 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 529CF27BBEA; Thu, 21 Sep 2023 14:29:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EC42427BBE2 for ; Thu, 21 Sep 2023 14:29:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJji-0004AB-EQ; Thu, 21 Sep 2023 09:28:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJjh-00049f-Co for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:53 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJjh-0006aH-52 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:53 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJjq-0004th-Ux for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 02/20] gnu: Add suitesparse-config. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530291918692 (code B ref 66129); Thu, 21 Sep 2023 13:29:02 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:39 +0000 Received: from localhost ([127.0.0.1]:33041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjR-0004r7-Rm for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:39 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjJ-0004pb-Pc for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E043D240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302893; bh=8T8P7H9xqc+PCIBmM2rxSuyDyJzf5o8C1M6wbKchOco=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=M6Jk9KKqxzD+W5E0pu3YimAbgjJbEq3BhyJSlocPAJ+WbsKTlxCvfO7gADcTzgaNa 6xdKpD50QvFrG6O9wSwV3NCbXy1J1zoAX69Z6lPmsknp7rwdHV1UXvOVnUG19DnCGM hijYmVSxOyc1rscMSFEpy+LrdAqdpYgDQhqo/ATDntHyBq+tunf1boaNtONk3e/DeH hrljnIc9Wx1KgagEevJX+rclSjua2UwvftFAIyy5ZG8gDOiTL4Zsxq2PTHTjqlBuDm nKxwz9TH28iGbgtyt/4sqM7wPrCodgsnqOcPpJwauGg3JI48Nob7zyZ4XnBlG4t10k 2Ddz+PA2rd0rA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6j2bvDz9s0Q; Thu, 21 Sep 2023 15:28:13 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:37 +0000 Message-ID: In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches The suitesparse-src variable contains the entire SuiteSparse source, from which the source for the subpackages is extracted with the suitesparse-package-src function using 'computed-origin-method'. * gnu/packages/maths.scm (suitesparse-version, suitesparse-src, suitesparse-config): New variable. --- gnu/packages/maths.scm | 88 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a77928f9b6..23c27c1746 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4888,6 +4888,94 @@ (define-public openspecfun ;; public domain software. (license (list license:expat license:public-domain)))) +;; Source for the modular SuiteSparse packages. When updating, also update the +;; (different) versions of the subpackages. +(define suitesparse-version "7.2.0") +(define suitesparse-src + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DrTimothyAldenDavis/SuiteSparse") + (commit (string-append "v" suitesparse-version)))) + (file-name (git-file-name "suitesparse" suitesparse-version)) + (sha256 + (base32 + "1draljn8i46862drc6008cnb2zjpklf74j8c34jirjazzpf53kaa")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Delete autogenerated and bundled files + (for-each delete-file (find-files "." "\\.pdf$")) + ;; ssget + (delete-file-recursively "ssget") + ;; SuiteSparse_config + (delete-file "SuiteSparse_config/SuiteSparse_config.h") + ;; CHOLMOD + (delete-file-recursively "CHOLMOD/SuiteSparse_metis") + ; GraphBLAS + (delete-file "GraphBLAS/README.md") + (delete-file "GraphBLAS/Config/GB_config.h") + (delete-file "GraphBLAS/Config/GB_prejit.c") + (delete-file-recursively "GraphBLAS/cpu_features") + (delete-file "GraphBLAS/CUDA/GB_cuda_common_jitFactory.hpp") + (delete-file "GraphBLAS/JITpackage/GB_JITpackage.c") + (delete-file-recursively "GraphBLAS/lz4/lz4.c") + (delete-file-recursively "GraphBLAS/lz4/lz4.h") + (delete-file-recursively "GraphBLAS/lz4/lz4hc.c") + (delete-file-recursively "GraphBLAS/lz4/lz4hc.h") + (delete-file "GraphBLAS/GraphBLAS/Config/GB_config.h") + (delete-file "GraphBLAS/Tcov/PreJIT/GB_prejit.c") + (delete-file-recursively "GraphBLAS/Source/FactoryKernels") + (delete-file "GraphBLAS/Source/GB_AxB__include1.h") + (delete-file "GraphBLAS/xxHash/xxhash.h") + (delete-file-recursively "GraphBLAS/zstd/zstd_subset") + ;; KLU + (delete-file "KLU/Include/klu.h") + (delete-file "KLU/Doc/klu_version.tex") + ;; LDL + (delete-file "LDL/Include/ldl.h") + (delete-file "LDL/Doc/ldl_version.tex") + ;; RBio + (delete-file "RBio/Include/RBio.h") + ;; SPEX + (delete-file "SPEX/Include/SPEX.h") + (delete-file "SPEX/Doc/SPEX_version.tex") + ;; SPQR + (delete-file "SPQR/Include/SuiteSparseQR_definitions.h") + (delete-file "SPQR/Doc/spqr_version.tex") + ;; UMFPACK + (delete-file "UMFPACK/Include/umfpack.h") + (delete-file "UMFPACK/Doc/umfpack_version.tex"))))) + +(define (suitesparse-package-src name path) + (origin + (method (@@ (guix packages) computed-origin-method)) + (file-name + (string-append name "-" suitesparse-version)) + (sha256 #f) + (uri + (delay + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (copy-recursively + (string-append #$suitesparse-src "/" #$path) #$output))))))) + +(define-public suitesparse-config + (package + (name "suitesparse-config") + (version suitesparse-version) + (source (suitesparse-package-src name "SuiteSparse_config")) + (build-system cmake-build-system) + (arguments (list #:tests? #f)) + (inputs (list openblas)) + (native-inputs (list pkg-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Configuration for all SuiteSparse packages") + (description "SuiteSparse is a suite of sparse matrix algorithms. This +package contains a library with common configuration options.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54120 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 A374D27BBE2; Thu, 21 Sep 2023 14:29:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BECCA27BBEB for ; Thu, 21 Sep 2023 14:29:19 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjj-0004AR-5X; Thu, 21 Sep 2023 09:28:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJji-00049q-1z for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJjh-0006ab-Qj for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:53 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJjr-0004tp-NI for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 03/20] gnu: Add suitesparse-amd. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530292118719 (code B ref 66129); Thu, 21 Sep 2023 13:29:03 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:41 +0000 Received: from localhost ([127.0.0.1]:33048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjT-0004rR-He for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:40 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjK-0004pc-5J for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7EA7F240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302894; bh=nRdXmEgds6g4jHWelS+aXO0YE48Quxrfnwyk4Yoo0m4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=DSmpyMx8KwZt3zaOjqopDi15qtZqy3WiAiXYpJO4rihM79DlzNf0ntC3c3ZlXQfWW L+FYM1yTihf5nl9BqiOmARTNZXuE3M5z79eL/xUdggwXvH+NahMwYVyvIFyBm2ffe5 gg1m383XAQNBx4FOwNaIzoEGQbfiiRmr5xQbdptFlbUu8/nKNUjTDZgSJjHKSVn/hj MaTcJarUBqL26KNKOtDigVQtP4ORdQ5cp0BsY/y10GxThVhfjAoNvhcRMOPMGwJqPT UPT3pMhBO3/AIThfDV0TdTABEig17NHWPMYwHU1cRez7MeEkBRyVfzUIVBupcMdwBr 9HfTEQ/QCfmEQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6k15Bjz9rxS; Thu, 21 Sep 2023 15:28:14 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:38 +0000 Message-ID: <42245d665abf95b4a09098f550b614249ec2a887.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-amd): New variable. --- gnu/packages/maths.scm | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 23c27c1746..356e2e1d9d 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4976,6 +4976,51 @@ (define-public suitesparse-config package contains a library with common configuration options.") (license license:bsd-3))) +(define-public suitesparse-amd + (package + (name "suitesparse-amd") + (version "3.2.0") + (source (suitesparse-package-src name "AMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + ;; Required for suitesparse-umfpack + (add-after 'install 'install-internal-header + (lambda _ + (install-file "../source/Include/amd_internal.h" + (string-append #$output "/include")))) + (add-after 'install-internal-header 'install-doc + (lambda _ + (install-file "../source/Doc/AMD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs (list gfortran (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse matrix ordering for Cholesky factorization") + (description "AMD is a set of routines for ordering a sparse matrix prior +to Cholesky factorization (or for LU factorization with diagonal pivoting).") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54122 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 DAA8D27BBE2; Thu, 21 Sep 2023 14:29:29 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E833827BBEB for ; Thu, 21 Sep 2023 14:29:25 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjk-0004B0-Gi; Thu, 21 Sep 2023 09:28:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJji-0004AF-IA for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJji-0006ah-A7 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJjs-0004tx-73 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 04/20] gnu: Add suitesparse-btf. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530292218740 (code B ref 66129); Thu, 21 Sep 2023 13:29:04 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:42 +0000 Received: from localhost ([127.0.0.1]:33052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjU-0004rs-Us for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]:46633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjL-0004pe-5b for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 81835240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302895; bh=sWme91IrZJhR6FavMe/IPPyWWXCmGmcgFBI80B+rhHc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ltH8OIko5Hp2A43mgu9gvu26kKknyR6pw5p2dViaLBdxEcwTkiu+9UaVcleZbVisP disbS+XXkMSpazX7c3095tarwkWS4k6k1wYLHvUSi0RR9soct8LKMWXHIw+QHaj7IQ yIC43VgqYdnph6pMAGLLe/pzQexShOKC/9SQuzfNTPsJsOMJEpwCEfXQYAp8ly/nBD nDRp55wceNRiIaIITEZS30ibOgn/KMUUTTM9rPNoHW8WGLbeVvh24yErD8PfPehElE gHaJLXX3Re9HJHf/cvCHtUtcs0KVSNMvGIwxvluGj7gPVf4cWiRpQS2be5AS6AZAAU bk//ekemLlrOg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6l1F98z9rxR; Thu, 21 Sep 2023 15:28:14 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:39 +0000 Message-ID: <25679b00e8c5380bbeb32b821829bd0f32434ff0.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-btf): New variable. --- gnu/packages/maths.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 356e2e1d9d..f2c6f136a8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5021,6 +5021,36 @@ (define-public suitesparse-amd to Cholesky factorization (or for LU factorization with diagonal pivoting).") (license license:bsd-3))) +(define-public suitesparse-btf + (package + (name "suitesparse-btf") + (version "2.2.0") + (source (suitesparse-package-src name "BTF")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for permuting matrices into block upper triangular form") + (description "BTF (Block Triangular Form) is a C library for permuting a +matrix into block upper triangular form.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54117 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 658E527BBEA; Thu, 21 Sep 2023 14:29:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C068527BBE2 for ; Thu, 21 Sep 2023 14:29:06 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjn-0004F9-NC; Thu, 21 Sep 2023 09:28:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJjk-0004BA-Kr for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJjj-0006bp-Cb for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJjt-0004uC-95 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 05/20] gnu: Add suitesparse-camd. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530292318760 (code B ref 66129); Thu, 21 Sep 2023 13:29:05 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:43 +0000 Received: from localhost ([127.0.0.1]:33057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjW-0004sK-Me for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjN-0004pg-Au for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 54E79240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302896; bh=i0KalSraWhf1UoJrsjbDsvkQMOti2n6qTGkINcsvlno=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=RbnWPXCB0tF6pp8ZdLii2vDHDhUUClPxiPbO/Y4LvFMF9zTOoosJPq4/YHkW76+Uf qqDY1AKaMrFE0anoEQQjjg2Q8hGxCy8yGxVrqE5gkzbPTQ2fF2FcLdwnHldEjAH/Eq v0Z0Nja8mXsSV+LyWqB4kitEkWXezgb7iXnABxxZVm09ZXDTmrmV2qJU/NifzFXRnH miEkEnYLBVUlYj4JVU/ixS2LSMR68qALJMtpp4tNs/6m4ryZmzFWIvy0TSah/AuBUp btzEFqboaUH/yAj4iENOZcP+Qj+6pl1UxMa/ZoZV4QRe6Lk4TkWXAfexMkDSDAq/+B 7aOLHvZ2j4tpw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6l6v0Dz6tvq; Thu, 21 Sep 2023 15:28:15 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:40 +0000 Message-ID: <6e9b6a766a7953fafb9f01850c09783ea913331c.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-camd): New variable. --- gnu/packages/maths.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index f2c6f136a8..875e7dc391 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5051,6 +5051,48 @@ (define-public suitesparse-btf matrix into block upper triangular form.") (license license:lgpl2.1+))) +(define-public suitesparse-camd + (package + (name "suitesparse-camd") + (version "3.2.0") + (source (suitesparse-package-src name "CAMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/CAMD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse matrix ordering for Cholesky factorization with constraints") + (description "CAMD is a set of routines for ordering a sparse matrix prior +to Cholesky factorization (or for LU factorization with diagonal pivoting). +It is a variant of AMD which has the the option to apply constraints to the +ordering.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54119 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 BD43227BBE9; Thu, 21 Sep 2023 14:29:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A182027BBE2 for ; Thu, 21 Sep 2023 14:29:19 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjk-0004BJ-On; Thu, 21 Sep 2023 09:28:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJjj-0004AU-9m for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJji-0006bk-Tc for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJjs-0004u4-QH for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 06/20] gnu: Add suitesparse-colamd. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530292218747 (code B ref 66129); Thu, 21 Sep 2023 13:29:04 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:42 +0000 Received: from localhost ([127.0.0.1]:33054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjV-0004sD-Ui for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:42 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjM-0004pi-Sg for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1A526240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302897; bh=Q3KI3R1jB4dOuoALhSy1m444NmbwPXjG21vhtbvdjWs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=VIJ6koTrrTdcPRYAR49nw6SW6pcgyHDe2VhR/Olm7bXcO3ZpJKnbkOddtvxTYYNOW ebhmnTY1BEg8Xw2tGH+pa6Z5r3wZAB56Pcv3ENZInlawzDi1Mg52U7JgVC3+2ucMZI 3DRSSkpGGzlRgHg41T8pkW+FOxkBqLR4sW1ZihH2yZvVy3N2weYHU9m2IiBprXvJXK 97Cz6hJLpDbeN//sZ0YSeJJFjmwBlDPSia7XwJLg4Ku/Q3eyu/iMx1MzBssB2pSqjq DIts9/afDlrmOeurezLTH5bi4I4NQwhiYglK2rtrQHjRMmf+/QL/D9/9t3tp/+TmJo TQizUCumFXFXg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6m5B28z6tvs; Thu, 21 Sep 2023 15:28:16 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:41 +0000 Message-ID: <3ff56bbfa5ba73c25af50cbae50210421a176237.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-colamd): New variable. --- gnu/packages/maths.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 875e7dc391..9a48a1fc65 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5093,6 +5093,36 @@ (define-public suitesparse-camd ordering.") (license license:bsd-3))) +(define-public suitesparse-colamd + (package + (name "suitesparse-colamd") + (version "3.2.0") + (source (suitesparse-package-src name "COLAMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Column Approximate Minimum Degree Ordering") + (description "COLAMD is library for computing a permutation vector for a +matrix with which the LU factorization becomes sparser.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54126 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 44E8927BBEA; Thu, 21 Sep 2023 14:29:43 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 902E327BBE2 for ; Thu, 21 Sep 2023 14:29:42 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjn-0004Do-0L; Thu, 21 Sep 2023 09:28:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJjk-0004Al-2A for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJjj-0006bu-R3 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJjt-0004uJ-Nx for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 07/20] gnu: Add suitesparse-ccolamd. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530292418768 (code B ref 66129); Thu, 21 Sep 2023 13:29:05 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:44 +0000 Received: from localhost ([127.0.0.1]:33059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjX-0004sX-Cu for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:43 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjN-0004pj-GA for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D1DD5240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302897; bh=PJNoib38tE3pFlzR3R4/nH0uJr5D0c+qxw9lidJOQ4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Xr/0XylAoDFXiPl+Pii4Tv2/bBfFJAQfABlblt5sQk/0ycAByMlZl+nThncrYlqYd +pH48MhJXaEbPy6L0ObCnNgVa1IX9PpX/MoVDoOIbSLnOZbBHuBP5pwKaXIOeWWl21 b2rViQQeziGG8djUkSz6aRWy4gvD+v133QnnJ2m7n8vTB57vxeXc1+ya46fPfl352I z2xsCr5xNyKVzMXx+UnvOhIXLHqe6fl7q09aszK22DlpwY4T2wMfsUKUisoLkaBqyk hzMXjVBb8FmoDvT3AUovLJQy4Ynqx8m2y6EnFbvhy/kFwqTuZR7XAK+TteUMvbZuIX a10oQBewXHjmw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6n3cSJz9s0Q; Thu, 21 Sep 2023 15:28:17 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:42 +0000 Message-ID: <5f57cf3264823354212a4077a8c8bb71a31ef554.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-ccolamd): New variable. --- gnu/packages/maths.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 9a48a1fc65..8f27134ba8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5123,6 +5123,37 @@ (define-public suitesparse-colamd matrix with which the LU factorization becomes sparser.") (license license:bsd-3))) +(define-public suitesparse-ccolamd + (package + (name "suitesparse-ccolamd") + (version "3.2.0") + (source (suitesparse-package-src name "CCOLAMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Column Approximate Minimum Degree Ordering with constraints") + (description "CCOLAMD is library for computing a permutation vector for a +matrix with which the LU factorization becomes sparser. It is a variant of +COLAMD which has the the option to apply constraints to the ordering.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54125 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 EACB427BBEA; Thu, 21 Sep 2023 14:29:38 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7D89427BBE2 for ; Thu, 21 Sep 2023 14:29:38 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjn-0004DP-5L; Thu, 21 Sep 2023 09:28:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJjk-0004BK-Lk for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJjk-0006c1-CT for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJju-0004uR-91 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 08/20] gnu: Add gklib. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530292418775 (code B ref 66129); Thu, 21 Sep 2023 13:29:06 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:44 +0000 Received: from localhost ([127.0.0.1]:33061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjX-0004se-Ur for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:44 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjO-0004pq-9P for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9D38E240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302898; bh=BxnN4PNmMcGOWFg1A984UAyvM6YenH52HQANVD7nmbc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=rU1BLPiubEw+9q9XsddZ6ELUCHfBEZLk+qtiAv6O4OlZrXKkdX4bbQ7MD9iTjr6IH //EXEkY4bvxMqyySakl/nBwHX7wvv1R3VLQzmzaEzR2K8cpOFyBPOyGtsiUGA5U5RD LtwwGwdd0Om0/EPS7MYbWuh4sEUmWYu1xh5uoiFyuZ37c21rYdCStezjMIpEpFDU3r oAvLTFHtLkdMrVt0wbOhWcBWkBcSUxOSu9jUs7MOdaSYZCJjs2bO2eMsuOfpi79U1h ffbRjNwJtOa6/mug/HjhD14bonFVWjLQqTOHbThleLJ4/tzopcxO1Cn2yQdk4apxaa GCA9YEBYh6DZw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6p289Qz9s0l; Thu, 21 Sep 2023 15:28:18 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:43 +0000 Message-ID: <03c05cd0488fa4c7cd6d1df8c511e72852f7c056.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (gklib): New variable. --- gnu/packages/maths.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8f27134ba8..a2650b3101 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4193,6 +4193,42 @@ (define-public scotch-shared (define-public pt-scotch-shared (deprecated-package "pt-scotch-shared" pt-scotch)) +(define-public gklib + (let ((commit "8bd6bad750b2b0d90800c632cf18e8ee93ad72d7") + (revision "1")) + (package + (name "gklib") + (version (git-version "5.1.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KarypisLab/GKlib") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "08k4zzyd7zsisdhfmnwz7zb9w3pzpgagyjq52mwk8i6sqajdxsdn")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DBUILD_SHARED_LIBS=ON" + #$@(if (target-x86?) + '() + '("-DNO_X86=1"))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-march=native + (lambda _ + (substitute* "GKlibSystem.cmake" + (("-march=native") ""))))))) + (home-page "https://github.com/KarypisLab/GKlib") + (synopsis "Helper library for METIS") + (description + "GKlib is a library of various helper routines and frameworks used by +software from KarypisLab, such as METIS.") + (license license:asl2.0)))) (define-public metis (package From patchwork Thu Sep 21 13:27:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54123 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 4312227BBEB; Thu, 21 Sep 2023 14:29:31 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9599627BBEC for ; Thu, 21 Sep 2023 14:29:26 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjo-0004Fl-EX; Thu, 21 Sep 2023 09:29:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJjl-0004Bq-8U for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJjl-0006ca-0N for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJju-0004uZ-Ny for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 09/20] gnu: Add metis-5.2. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530292518782 (code B ref 66129); Thu, 21 Sep 2023 13:29:06 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:45 +0000 Received: from localhost ([127.0.0.1]:33063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjY-0004sm-D6 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:44 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjP-0004pt-3o for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7346A240104 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302899; bh=5wxZDPQuPnnBuq5f1EeowMWF/FqCk7shN8Mrl+vjZW0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=UBCkO8K2Q4WuxI2LPx1b+VXi4iFkA9zms8VNB2jdB5/JJ7dtAx4vrk60TfJkqs8v/ CTSdo6dOY/lJWJsmnHvVAcC81jSWAUza2Y1Q06oKon4Xh7mkwUAe+Gk62wHmRrIlMj mf1K6NRjVcMq2MxFY1RSwn5EKfCajnY4Kzf77OcACXjlNPGBlZQePlA+ymNvH3bAsb 3ZDOmIuED/zqDqIsX4tn+7hxKjeia1qw3HnY4rZ5/wUtyqNkksbiUb9lhGe7pvH0tf fv9pYJLzexoca+c+vbHsKmJWOWMSnrIYPNKjvmuHR0+y7K1aAHq9lHFcRBXTO1Yg9g /MAeflCen6hJA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6q0dzQz6tvq; Thu, 21 Sep 2023 15:28:19 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:44 +0000 Message-ID: <60843d24159cd95c85a4af44813f370f94d11eb3.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (metis-5.2): New variable. --- gnu/packages/maths.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a2650b3101..2a9040ad39 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4230,6 +4230,7 @@ (define-public gklib software from KarypisLab, such as METIS.") (license license:asl2.0)))) +;; XXX: Remove once the full SuiteSparse package is replaced. (define-public metis (package (name "metis") @@ -4263,6 +4264,53 @@ (define-public metis schemes.") (license license:asl2.0))) ;As of version 5.0.3 +(define-public metis-5.2 + (package + (name "metis") + (version "5.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KarypisLab/METIS") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "19vi1wsi2gp2m5vb715yfnzd2g7brm4r40qxg65ysrzgl13lpmvr")) + (snippet + #~(delete-file "manual/manual.pdf")))) + (build-system cmake-build-system) + (inputs (list gklib openblas)) + (arguments + (list + #:tests? #f ; Tests are not automatic + #:configure-flags + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib)) + #:phases + #~(modify-phases %standard-phases + ;; The original Makefile copies some files and invokes CMake. + (add-before 'configure 'prepare-cmake + (lambda _ + (substitute* "Makefile" + (("config: distclean") "config:") + (("BUILDDIR =.*") + "BUILDDIR = .\n") + ((".*cmake.*") "")) + (substitute* "CMakeLists.txt" + (("build/") "../source/")) + (invoke "make" "config")))))) + (home-page "http://glaros.dtc.umn.edu/gkhome/metis/metis/overview") + (synopsis "Graph partitioning and fill-reducing matrix ordering library") + (description + "METIS is a set of serial programs for partitioning graphs, partitioning +finite element meshes, and producing fill-reducing orderings for sparse +matrices. The algorithms implemented in METIS are based on the multilevel +recursive-bisection, multilevel k-way, and multi-constraint partitioning +schemes.") + (license license:asl2.0))) + (define-public p4est (package (name "p4est") From patchwork Thu Sep 21 13:27:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54127 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 B1E4127BBEA; Thu, 21 Sep 2023 14:29:49 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AE2FC27BBE9 for ; Thu, 21 Sep 2023 14:29:48 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjr-0004Hn-E2; Thu, 21 Sep 2023 09:29:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJjn-0004EW-9E for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJjm-0006dA-0f for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJjv-0004uo-TO for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 10/20] gnu: Add gklib-suitesparse. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530292618796 (code B ref 66129); Thu, 21 Sep 2023 13:29:07 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:46 +0000 Received: from localhost ([127.0.0.1]:33067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjZ-0004t1-GQ for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:46 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjQ-0004q8-Ji for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 41657240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302900; bh=rGTNwfFNqNbZcIvOB5d4tZnpyexa/UpIGwYwiQt1nMs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=k6ERDOJZzdN8CdOc8LQjvm1FL7ZMoMMxmD+Ef6AilXsiMRjLJd+gRs5Tsk8hpHISW Rz6brmJM8xjaIfypcnzDeFF+SZN45pIz+15lyTV1lK2SKcftrtcNFOLOXC3YeJXqLs GA4m9YFpnhppHaup1f/q4Y2lkFqLjOyC5pfSBhh/iS019EXTQsanqzzUDJDonOeNkl 7sMbOcs1sc7cV2lMcus78Yu7sTplaC7ttiyO7vs9koQSw0a/I2XKxYdeJnr6gHSN6l UrRkX47pC3qRVVwQ2QoTPK6cKTTD4aLhVLf3MyTJBHYaWYdzNVwaIpEu1DQN+uv5lO YZWYgKviheoEw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6q6MWWz9s0l; Thu, 21 Sep 2023 15:28:19 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:45 +0000 Message-ID: <6bcdd5782ba9e7bd231aa7419d9aec9816fbb919.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (gklib-suitesparse): New variable. --- gnu/packages/maths.scm | 25 ++++++++ gnu/packages/patches/gklib-suitesparse.patch | 65 ++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 gnu/packages/patches/gklib-suitesparse.patch diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2a9040ad39..3a86e90cb5 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5238,6 +5238,31 @@ (define-public suitesparse-ccolamd COLAMD which has the the option to apply constraints to the ordering.") (license license:bsd-3))) +(define-public gklib-suitesparse + (package/inherit gklib + (name "gklib-suitesparse") + (source (origin + (inherit (package-source gklib)) + (patches (cons + (search-patch + "gklib-suitesparse.patch") + (origin-patches (package-source gklib)))))) + (arguments + (substitute-keyword-arguments (package-arguments gklib) + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'patch-cmake + (lambda _ + (substitute* "CMakeLists.txt" + (("add_library\\(GKlib.*" all) + (string-append + all + "target_link_libraries(GKlib PUBLIC" + " ${SUITESPARSE_CONFIG_LIBRARIES} m)\n"))))))))) + (inputs + (modify-inputs (package-inputs gklib) + (prepend suitesparse-config))))) + (define-public suitesparse (package (name "suitesparse") diff --git a/gnu/packages/patches/gklib-suitesparse.patch b/gnu/packages/patches/gklib-suitesparse.patch new file mode 100644 index 0000000000..8b6c708b6a --- /dev/null +++ b/gnu/packages/patches/gklib-suitesparse.patch @@ -0,0 +1,65 @@ +This patch contains the relevant changes to GKlib made in SuiteSparse +(CHOLMOD) for the version 7.2.0 +(https://github.com/DrTimothyAldenDavis/SuiteSparse/commit/8a7641cdb4809533c681417e94f98058c07c5da2). +The disabling of signal handling when MATLAB_MEX_FILE is defined is omitted. + +diff -ur a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,6 +3,8 @@ + + option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF) + ++find_package ( SuiteSparse_config 7.1.0 REQUIRED ) ++ + get_filename_component(abs "." ABSOLUTE) + set(GKLIB_PATH ${abs}) + unset(abs) +diff -ur a/GKlib.h b/GKlib.h +--- a/GKlib.h ++++ b/GKlib.h +@@ -59,6 +59,24 @@ + #include + #endif + ++/* -------------------------------------------------------------------------- */ ++/* Added for incorporation into SuiteSparse. ++ Tim Davis, Oct 31, 2022, Texas A&M University. */ ++#include "SuiteSparse_config.h" ++#define malloc SuiteSparse_config_malloc ++#define calloc SuiteSparse_config_calloc ++#define realloc SuiteSparse_config_realloc ++#define free(p) \ ++{ \ ++ if ((p) != NULL) \ ++ { \ ++ SuiteSparse_config_free (p) ; \ ++ (p) = NULL ; \ ++ } \ ++} ++ ++/* -------------------------------------------------------------------------- */ ++ + + + +diff -ur a/memory.c b/memory.c +--- a/memory.c ++++ b/memory.c +@@ -108,6 +108,8 @@ + /*************************************************************************/ + int gk_malloc_init() + { ++ gkmcore = NULL; ++#if 0 + if (gkmcore == NULL) + gkmcore = gk_gkmcoreCreate(); + +@@ -115,6 +117,7 @@ + return 0; + + gk_gkmcorePush(gkmcore); ++#endif + + return 1; + } From patchwork Thu Sep 21 13:27:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54128 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 F3C0027BBE2; Thu, 21 Sep 2023 14:29:58 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8512A27BBE9 for ; Thu, 21 Sep 2023 14:29:57 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJkg-0005zV-2q; Thu, 21 Sep 2023 09:29:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJkf-0005xC-2h for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:53 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJke-0006xL-Kc for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:52 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJko-0004xR-FM for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 11/20] gnu: Add metis-suitesparse. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530295818921 (code B ref 66129); Thu, 21 Sep 2023 13:30:02 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:18 +0000 Received: from localhost ([127.0.0.1]:33080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk6-0004v5-8o for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:18 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjQ-0004q9-OB for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 19EB1240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302901; bh=TfbjnSX0F1e2MwLy800jRa4q04IUAadujWzVD5MtCfI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=N/MPONgFaITJo7v37v5WFR76fxRS8JpgdIVqlOBgwbPfLgIaEQX+AOLtjQ8QmNW2I A9aQ5b3uZ986yIk2ONAZ9bovqoLpq7zvPl15nY9fXKS9yOQQjp4ncVYAjyhzyBHBZd GUuRc+jpT8jaiqjy3u1MWn1BwcznH8VTft1eLqscINXkLQFTMFTe4qfeVPr8mThKai xyEUIozFn7Npyh1V2ARNUA+gQDSsG7fpTk7j2dd3fyqJj/EPMRjQjUsB2MGRpNELc9 5B0rJtg8sxZjR0KqPgGmVx3RSiwHcU9KIq32ORSAlIrirmHJG+1VGr1HR8XCcxJdWN wibWzWm+/XUUw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6r55fWz6tvq; Thu, 21 Sep 2023 15:28:20 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:46 +0000 Message-ID: <824829492ddfa1e049c6260a76d7763a3be1195f.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (metis-suitesparse): New variable. --- gnu/packages/maths.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 3a86e90cb5..3f80029414 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5263,6 +5263,32 @@ (define-public gklib-suitesparse (modify-inputs (package-inputs gklib) (prepend suitesparse-config))))) +(define-public metis-suitesparse + (package/inherit metis-5.2 + (name "metis-suitesparse") + (arguments + (substitute-keyword-arguments (package-arguments metis-5.2) + ((#:phases phases) + #~(modify-phases #$phases + (add-before 'prepare-cmake 'set-idxwidth + (lambda _ + (substitute* "Makefile" + (("IDXWIDTH.*=.*") + "IDXWIDTH = \"\\#define IDXTYPEWIDTH 64\"\n")))) + (add-before 'prepare-cmake 'link-suitesparse-config + (lambda _ + (substitute* "programs/CMakeLists.txt" + (("include_directories.*" all) + (string-append + all "find_package(SuiteSparse_config REQUIRED)\n")) + (("(target_link_libraries.*)GKlib(.*)" _ start end) + (string-append + start "GKlib ${SUITESPARSE_CONFIG_LIBRARIES}" end))))))) + ((#:configure-flags _) + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) + (inputs (list suitesparse-config gklib-suitesparse)))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54131 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 A197827BBE2; Thu, 21 Sep 2023 14:30:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id F407027BBEB for ; Thu, 21 Sep 2023 14:30:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJki-00063f-B3; Thu, 21 Sep 2023 09:29:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJkf-0005xs-Cv for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:53 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJkf-0006xW-4C for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:53 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJkp-0004xc-0N for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 12/20] gnu: Add suitesparse-cholmod. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530295918929 (code B ref 66129); Thu, 21 Sep 2023 13:30:02 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:19 +0000 Received: from localhost ([127.0.0.1]:33082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk6-0004v8-JG for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:19 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjR-0004qL-Fm for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CC256240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302901; bh=vhKRBp7cCnNzODctvszy1rbBiyZ6fJ1ElEDCaxSIp2w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=HE6gbWHvIHQgYObCUvTZMMU8LIG7RFq2GPkesJjQyv6DpBjgbQA+FnRMxJc8mT9tL OKu66D5SsgfxTr2WI4j+jUqqaXbPXriiFVDzvmsjbptXJxLRC53DdWJxwLzts4u3wa X9w7vdxMR7iLdYAZHg5haQJzrmU/QbkHIbkAH74x3y+zB3bJjpN1Tb9yb3tTZmpYHL FYLOsJgIm2bDhBbCVYm/pcLFuI61hgeMe31uTwmwW31EHVd2vNhT08vJSJjU1a+/+y uVWx5o7XRoLFFj1sDuNlidLUOKtMMhZx122a/SfUZ2LnPmfarDGWFFJ5NVythTEguL G3OjInWT6lkuA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6s3Qhzz9s0Q; Thu, 21 Sep 2023 15:28:21 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:47 +0000 Message-ID: <602387013ca27723533d224c90fbe1ee65ce913b.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-cholmod): New variable. --- gnu/packages/maths.scm | 82 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 3f80029414..271ae8137b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5289,6 +5289,88 @@ (define-public metis-suitesparse (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) (inputs (list suitesparse-config gklib-suitesparse)))) +(define-public suitesparse-cholmod + (package + (name "suitesparse-cholmod") + (version "4.2.0") + (source (suitesparse-package-src name "CHOLMOD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n")) + (("add_subdirectory.*GPU.*") "\n") + ((".*cmake_modules/FindCHOLMOD_CUDA.cmake.*") "\n")))) + (add-after 'unpack 'use-external-metis + (lambda _ + (let ((port (open-file "CMakeLists.txt" "a"))) + (display + (string-append + "find_library(METIS_LIBRARY NAME metis PATHS ENV LIBRARY_PATH) +get_filename_component(METIS_LIBRARY ${METIS_LIBRARY} REALPATH) +find_library(GKLIB_LIBRARY NAME GKlib PATHS ENV LIBRARY_PATH) +get_filename_component(GKLIB_LIBRARY ${GKLIB_LIBRARY} REALPATH) +target_link_libraries(CHOLMOD PRIVATE ${METIS_LIBRARY} ${GKLIB_LIBRARY}) +target_link_libraries(CHOLMOD_static PRIVATE ${METIS_LIBRARY} ${GKLIB_LIBRARY})") + port) + (close-port port)) + (delete-file "Partition/cholmod_metis_wrapper.c") + (delete-file "Partition/cholmod_metis_wrapper.h") + (substitute* "Partition/cholmod_metis.c" + (("#include \"cholmod_metis_wrapper\\.h\"") "") + (("#include \"SuiteSparse_metis/include/metis.h\"") + "#include ") + (("SuiteSparse_metis_METIS") "METIS")))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/CHOLMOD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Core/lesser.txt" out) + (install-file "../source/MatrixOps/gpl.txt" out))))))) + (inputs + (list gklib-suitesparse + metis-suitesparse + openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-colamd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for solving sparse symmetric positive definite linear +equations") + (description "CHOLMOD is a set of routins for factorizing sparse symmetrix +positive definite matrices, updating/downdating sparse Cholesky factorizations +and other related operations.") + (license (list license:gpl2+ license:lgpl2.1+)))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54134 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 B48DF27BBE9; Thu, 21 Sep 2023 14:30:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A647227BBE2 for ; Thu, 21 Sep 2023 14:30:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJkt-0006Hc-0B; Thu, 21 Sep 2023 09:30:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJkg-000606-D5 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJkg-0006xs-4w for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJkq-0004xr-2R for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 13/20] gnu: Add suitesparse-cxsparse. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530296018944 (code B ref 66129); Thu, 21 Sep 2023 13:30:04 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:20 +0000 Received: from localhost ([127.0.0.1]:33086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk7-0004vN-NJ for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjS-0004qN-DW for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BB6AF240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302902; bh=8mpFtPcCrZLkjIuzhuFL3e6gMNkDHyoBuacKte2fX4s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=AyruZGxM3AWImpqvYomqNJ/dXkOPOntco0pbpZ9/kyLDhWKmYSEE/gbcpEUD+940Y +F8+1JsmubeAhVD1jhxT7R1jjI4238pjCosh5KV1kM4vhxlXiA+H5XOCnMUKxB0Zuf DwenxtBhhgOgWGoaHTukLopg4+h9fuSMm5MC1uKQfMgvNFE2l/mYCJR7/b0Ju+hyPI YjqWFw9q0D1D2Jnmo5wxQ/jcAGRP8o1yFByE+qh73h/dwdBqcY4bWcEw5WJutbBiDS 0hnjZRled63DCGllP2FqbAc/yyJARVqsESwMjw92GtksmLzWhRguF7iKSNzoEboe4O mw0HEkQOnrROA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6t1vG2z9rxS; Thu, 21 Sep 2023 15:28:22 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:48 +0000 Message-ID: <9987319f1cec756d12cda0a0413b7eb49a5d35f3.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-cxsparse): New variable. --- gnu/packages/maths.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 271ae8137b..813f9bd568 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5371,6 +5371,37 @@ (define-public suitesparse-cholmod and other related operations.") (license (list license:gpl2+ license:lgpl2.1+)))) +(define-public suitesparse-cxsparse + (package + (name "suitesparse-cxsparse") + (version "4.2.0") + (source (suitesparse-package-src name "CXSparse")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Doc/lesser.txt" out))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Concise eXtended Sparse Matrix Package") + (description "CXSparse is a collection of sparse matrix algorithms for +direct methods on both real and complex matrices.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54133 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 7F8AF27BBE9; Thu, 21 Sep 2023 14:30:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CE8B827BBE2 for ; Thu, 21 Sep 2023 14:30:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJkt-0006M1-Lk; Thu, 21 Sep 2023 09:30:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJkh-00060b-Fr for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJkh-0006y6-4G for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJkq-0004y7-WD for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 14/20] gnu: Add suitesparse-klu. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530296118959 (code B ref 66129); Thu, 21 Sep 2023 13:30:04 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:21 +0000 Received: from localhost ([127.0.0.1]:33090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk8-0004vc-Mj for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:21 -0400 Received: from mout02.posteo.de ([185.67.36.66]:45861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjT-0004qU-3h for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6FD5B240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302903; bh=RAFK2uoQhbt1kTKpBzqmWyBAWNOF2aVf+LZ815jTsD8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=X/eTw1j7MFmqXDmOW+V7eFYb9WoHqgzVEvSWs0fE/s9qgmhM/MF8HRbHdKUg5m3R7 WiFlrVkgEYCi+o74nDsSOGxvgeJ50r1sj/A2hckkCA9BhQ0f4VPvbb0L/JrbMwaeW2 oPVO5aVMsccew5ayq/x3BJgMWjxPsoWkUL6O9hNv3emma2L5ZdzOio21FUP8D2KfZe KeKnuFxhuiSYoUOWsLHsXBfo3bF0hd43VgVr+B18JSaXf7y8oDJG4AF+l1jXcF4LZ4 FrAcwGZiAuzKBt8JVy4U3e2BXfC2YlakslyINTKCLid7au+tIzJCVjS81RUdZiHyHr Gaovr0Zpz5l9Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6v0RBXz6twr; Thu, 21 Sep 2023 15:28:23 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:49 +0000 Message-ID: <45d255c31176f6782f7763d7e808ded959a83249.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-klu): New variable. --- gnu/packages/maths.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 813f9bd568..9b85ceb6a8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5402,6 +5402,67 @@ (define-public suitesparse-cxsparse direct methods on both real and complex matrices.") (license license:lgpl2.1+))) +(define-public suitesparse-klu + (package + (name "suitesparse-klu") + (version "2.2.0") + (source + (suitesparse-package-src name "KLU")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-btf + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (substitute* "../source/Doc/Makefile" + (("\\.\\./\\.\\./BTF/Include/btf.h") + (string-append #$suitesparse-btf "/include/btf.h"))) + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/KLU_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list suitesparse-amd + suitesparse-btf + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Routines for solving sparse linear problems with a LU factorization") + (description "KLU is a method for computing the LU factorization of sparse +for real and complex matrices.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54129 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 5EEDD27BBEC; Thu, 21 Sep 2023 14:30:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EDC0227BBE9 for ; Thu, 21 Sep 2023 14:30:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJkn-00068e-G0; Thu, 21 Sep 2023 09:30:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJkh-00062H-T1 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJkh-0006yC-Jj for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJkr-0004yF-Go for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 15/20] gnu: Add suitesparse-ldl. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530296218966 (code B ref 66129); Thu, 21 Sep 2023 13:30:05 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:22 +0000 Received: from localhost ([127.0.0.1]:33092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk9-0004vk-6o for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:21 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjT-0004qg-SD for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 36802240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302904; bh=PIwkopi3YUReGf1OBrADCXT+/r7BmJvvMqn6S7fUlpA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=bNok3ZFA9PpU/0Rnb8SE+C/h0TR2HlTJ5sOdVKJFUf5CY7CtSi1owOVarUBSk/GqL eqYDrL9ZOu0nZ5OtxPoh7o+KUdjbm1zYLQOycUVUia49mD0n6ZHsvFBBSavCil5Eyp 8Cb+ANk4Ymwn06Ya6InKdVtOvRCO0G/ylusHa2RgaXjnq3/4InCc43cF+Gss1T6dQ5 cfqxUivnpTJ16ejlzCMhA0N9lFQfFwWEYcuYzhqktpFNyUiDr2sqJ9SnzW0umX5Tg7 q/aL9BwF91hZNth5T6NO39Znu58RvhqiGwl388jsib9yyZO8X+AlgoBM3DLf9k13j+ O51KbVHJrAIgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6v62r2z6trs; Thu, 21 Sep 2023 15:28:23 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:50 +0000 Message-ID: <92bd7dd868c6d710452dd40e4e281841e4585e70.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-ldl): New variable. --- gnu/packages/maths.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 9b85ceb6a8..1121f09b22 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5463,6 +5463,57 @@ (define-public suitesparse-klu for real and complex matrices.") (license license:lgpl2.1+))) +(define-public suitesparse-ldl + (package + (name "suitesparse-ldl") + (version "3.2.0") + (source (suitesparse-package-src name "LDL")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (substitute* "../source/Doc/Makefile" + (("\\.\\./\\.\\./BTF/Include/btf.h") + (string-append #$suitesparse-btf "/include/btf.h"))) + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/ldl_userguide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list suitesparse-amd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "LDL' factorization method for sparse, symmetric matrices") + (description "This package contains a set of routines for computing the +LDL' factorization of sparse, symmetric matrices. Its focus lies on concise +code.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54135 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 B597327BBEA; Thu, 21 Sep 2023 14:30:30 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 13D0527BBE2 for ; Thu, 21 Sep 2023 14:30:30 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJkv-0006RM-Lh; Thu, 21 Sep 2023 09:30:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJkj-00065L-M2 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJki-0006yK-3R for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJks-0004yN-0e for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 16/20] gnu: Add suitesparse-rbio. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530296218974 (code B ref 66129); Thu, 21 Sep 2023 13:30:05 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:22 +0000 Received: from localhost ([127.0.0.1]:33094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk9-0004vr-SA for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:22 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjU-0004qn-Kv for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F3F6F240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302905; bh=WSr+PYMsG6+ykcHKJCY7tFw164BAp98UrWdOeJGMvX0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=b7z+Lw/fzJr/Egzrh0z9y211eyhW8nMen279e3PbF/aniEGtsISf4rY2zftCDtIcC DgAjJGhWeoWewBsGEjTfV4jNVgHg9/fRzuXFs0iwzCdACU4iWgs3xZw64/EcVym9Gj 3+PDagYcibNKbrO1TQJXor2O7KoNEGw4zVnfy2BtB97p+WdExH9avwUZ4ZSwZGDmgS ZQT/aWUjd6L0E7MHHxoGQKMbS6o0Sx5Yn/iZIiBt/6aUeswjW1xUV8F/0J33f+l8Uq D1LNe1556DAY8QFTr+0/LukUdguZnXJp35DnKHU2GZNEWp4hJXbFFePaQw/DFa+AS/ 9vk4otXngurtA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6w4JgHz6tvp; Thu, 21 Sep 2023 15:28:24 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:51 +0000 Message-ID: <95023c251b41004544b43f1fa543b5b258d4417d.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-rbio): New variable. --- gnu/packages/maths.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1121f09b22..2b7f7ef0ef 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5514,6 +5514,41 @@ (define-public suitesparse-ldl code.") (license license:lgpl2.1+))) +(define-public suitesparse-rbio + (package + (name "suitesparse-rbio") + (version "4.2.0") + (source (suitesparse-package-src name "RBio")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Doc/gpl.txt" out))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for the Rutherford/Boeing sparse matrix format") + (description "This package provides the C library of RBio. It can be used +for reading and writing sparse matrices in the Rutherford/Boeing format.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54124 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 EA15327BBE2; Thu, 21 Sep 2023 14:29:32 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 20A2727BBE9 for ; Thu, 21 Sep 2023 14:29:30 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjo-0004FM-0k; Thu, 21 Sep 2023 09:29:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJjl-0004Ci-Os for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJjl-0006co-GL for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJjv-0004ug-Cr for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 17/20] gnu: Add suitesparse-mongoose. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530292518790 (code B ref 66129); Thu, 21 Sep 2023 13:29:07 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:45 +0000 Received: from localhost ([127.0.0.1]:33065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjY-0004st-ST for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjQ-0004pt-9d for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CE18A24010A for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302905; bh=I2PevlWgz2xDOH23u0l9pAbhgb4QwG39SLssUce8ZXI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=nJab2AAxkHmSiR1u+bNvhh5MLnFJy32NJ3bjnQgVRTGWuWVgq8hw6DIzRccqavIPH kFhJcj2rKFNDdHkIxO1w6Ij0rddjCC3gbR3Gep/dD3SMEA1a5pwUxb+oxZFva6hLrd FoFQqRHQ0g3+sRcWwOjMlTXauMy2NZVwVFJycX2E7bZPOwaeJeLEhzRILGdQCetI1x 2a0uFJ7RxaueOuqpqm+Tid5s6t7He85kqwb29SP1r8NDZbrbAM6D+ee+4PSq4ye9G/ pUq/S3SFqiCHRwCZsAfzwpkTTG5tdVCNIBLUUWOkeG73kR3NU0MB12qkUVgjp+GeJ+ 1WTk1O9bUZBqQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6x32JLz9s0l; Thu, 21 Sep 2023 15:28:25 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:52 +0000 Message-ID: In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-mongoose): New variable. --- gnu/packages/maths.scm | 72 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2b7f7ef0ef..32b3a36871 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5549,6 +5549,78 @@ (define-public suitesparse-rbio for reading and writing sparse matrices in the Rutherford/Boeing format.") (license license:gpl2+))) +(define-public suitesparse-mongoose + (package + (name "suitesparse-mongoose") + (version "3.2.0") + (source (suitesparse-package-src name "Mongoose")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + ;; XeLaTeX fails with .eps graphics + (with-directory-excursion "../source/Doc" + (for-each + (lambda (name) + (invoke "epstopdf" name)) + (find-files "Figures" "\\.eps$")) + (substitute* "Mongoose_UserGuide.tex" + (("\\.eps") ".pdf")) + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/Mongoose_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs + (list texlive-epstopdf + (texlive-updmap.cfg + (list texlive-algorithmicx + texlive-booktabs + texlive-lastpage + texlive-multirow + texlive-pgf + texlive-caption + texlive-etoolbox + texlive-csquotes + texlive-fancybox + texlive-enumitem + texlive-microtype + texlive-cancel + texlive-sourcecodepro + texlive-xkeyval + texlive-fontspec + texlive-wasy + texlive-wasysym + texlive-float + texlive-tcolorbox + texlive-environ + texlive-xcolor + texlive-xetex + texlive-listings)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Graph partitioning library") + (description "Mongoose is a library for graph partitioning by computing +edge cuts using a coarsening and refinement framework.") + (license license:gpl3))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54136 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 5B87A27BBE9; Thu, 21 Sep 2023 14:30:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id ACC2527BBE2 for ; Thu, 21 Sep 2023 14:30:32 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJku-0006Pm-M7; Thu, 21 Sep 2023 09:30:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJkj-00065M-Lm for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJki-0006yO-Jd for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJks-0004yU-GC for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 18/20] gnu: Add suitesparse-spex. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530296318981 (code B ref 66129); Thu, 21 Sep 2023 13:30:06 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:23 +0000 Received: from localhost ([127.0.0.1]:33096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJkA-0004vz-Ec for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:23 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjW-0004qu-7H for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8CD58240106 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302906; bh=ksfbQiom4E2fsFu6L8b0PaSWcvxvNIoIN+HRROmhQDI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=XR+mn0FpIb7at3GHYAQdpvxaqZ4MqRYuvKP14CD/iD2Fcg77qRLP2SUepG5GMJaVl Te/6jvtXP/bOEZjzINwMCaQLzNTcvAQtdx498LxPBhJ38VN2OHOIr561IZcMeyEguH HtjxtBwlNa2osR6ppiqHW2sbfD3ruXZ1lCRDtl0RCmTRndkKQ5CICEi42XAFhbonFn J/ldd9a5fCMKvgtCmuE97OHjgYgTUac3WelleISJpkfqFwl2GW+/PmnYwflfnMsKvc przcgvuxsB0XH0M6yUqt1oeIgne5ubzpv/E9wj/fnbiA9ghj6qQhtY8ZNtrfMfmh0s tOXAWyqnjAOfg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6y1dC9z9rxS; Thu, 21 Sep 2023 15:28:26 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:53 +0000 Message-ID: <2de97a43907677a5da10bf57e8f7faf5a34ec39f.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-spex): New variable. --- gnu/packages/maths.scm | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 32b3a36871..237c4fb5cd 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5621,6 +5621,73 @@ (define-public suitesparse-mongoose edge cuts using a coarsening and refinement framework.") (license license:gpl3))) +(define-public suitesparse-spex + (package + (name "suitesparse-spex") + (version "2.2.0") + (source (suitesparse-package-src name "SPEX")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/SPEX_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list gmp + mpfr + suitesparse-amd + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-paralist + texlive-comment + texlive-psfrag + texlive-soul + texlive-multirow + texlive-algorithms + texlive-float + texlive-algorithmicx + texlive-cprotect + texlive-bigfoot + texlive-caption + texlive-listings + texlive-xcolor + texlive-framed + texlive-mdframed + texlive-etoolbox + texlive-zref + texlive-needspace)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Package for SParse EXact algebra") + (description "SPEX is a set of routines for sparse exact linear algebra. +It contains the SPEX Left LU library for computing a sparse exact left-looking +LU factorization for solving unsymmetric sparse linear systems.") + ;; Dual licensed. + (license (list license:lgpl3+ license:gpl2+)))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54130 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 617C827BBE2; Thu, 21 Sep 2023 14:30:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E8EA727BBEA for ; Thu, 21 Sep 2023 14:30:08 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJkj-00065D-NU; Thu, 21 Sep 2023 09:29:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJkg-0005zw-71 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJkf-0006xo-Nw for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:53 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJkp-0004xk-KW for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 19/20] gnu: Add suitesparse-spqr. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530295918937 (code B ref 66129); Thu, 21 Sep 2023 13:30:03 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:19 +0000 Received: from localhost ([127.0.0.1]:33084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk7-0004vG-3u for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:19 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjR-0004pt-Rv for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 684DE240105 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302907; bh=Md3s22ZY32bRvsArdOh6ZkAtQGvAaB7k24Gu9VB6HmE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=FGl8/hQO+nm0O8VGrdA3/KRYybW6aTi3tBLm1jFzCAAftavoXxZcMi1GpXYd05HO9 HdgFjfdUbitcFYZy8+8hquEa6DlUZQweb8RD7wLYIT9gcj63KOZ55TgTzM7HgZRC8v XHqW3Uqz8SqohK7ZuRGgEN+4DY4Qg45+Qf8mOCJndq9bLWwcdQo2ziVspIP4Iw7zvA yzGVbJQHZyoMRMtSCvsna16FJkUppOG5+k0N2jKjc+5YsSZYW1+XtFJ5RoJiw8YSAR 5KsjStesW2WP1pyWQF0y2hM2WkszqE3ZQNw+31BF56zjUBNUzOFGUAeDMICQpGvQ7b /DZbvwM/xpzNw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6z08cwz9s0l; Thu, 21 Sep 2023 15:28:26 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:54 +0000 Message-ID: <45138f7d8e6f5998835ce03c0a8214e162ee4d54.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-spqr): New variable. --- gnu/packages/maths.scm | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 237c4fb5cd..a5d7f4ebd3 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5688,6 +5688,65 @@ (define-public suitesparse-spex ;; Dual licensed. (license (list license:lgpl3+ license:gpl2+)))) +(define-public suitesparse-spqr + (package + (name "suitesparse-spqr") + (version "4.2.0") + (source (suitesparse-package-src name "SPQR")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/spqr_user_guide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-epsf)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse QR factorization method") + (description "The SPQR (SuiteSparseQR) package provides sparse QR +factorization based on the multifrontal method, using BLAS for the frontal +matrices.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") From patchwork Thu Sep 21 13:27:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54132 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 8E54A27BBE9; Thu, 21 Sep 2023 14:30:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 46B6E27BBE2 for ; Thu, 21 Sep 2023 14:30:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJkt-0006JN-Am; Thu, 21 Sep 2023 09:30:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJkg-00060F-Qy for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJkg-0006y1-IV for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJkq-0004xz-FT for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 20/20] gnu: Add suitesparse-umfpack. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169530296018951 (code B ref 66129); Thu, 21 Sep 2023 13:30:04 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:20 +0000 Received: from localhost ([127.0.0.1]:33088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk8-0004vV-7d for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjS-0004q8-MK for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 39A4D240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302908; bh=EuPbYwWLuYfKyxjeqlANtK14kHDzO5uFLQReXybRtwA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=UxsP3wfmSZCWOFekEHihTzdXq5xVEHowolX3QVU+RxUXKpjgLoQ1fcfWw9QGLsEwb ogAv/dEaVWY7qWLrK5xwAWd0x593vWbG0QADio7O7q/T5YuDAlk4AgwTZyeLaKLrRZ JdJhUw1mg0+H2N3+54fLWRCZcewtDI2J5FiR1gS5vAE/eMghG6QUp3C9M4sWJLo5nI fLuVc4bpZi0Lre0sPhhcGXoA43icPjgJbZfwjegRR/1+HS0pCEsfDB/aT1QHxVcMbw m5BOf9Z0lc3SpsnsYJAvS23loraf7tGjGuCU02rUG7tly1raH4SIHp8CQwtS2cevnQ gHml4788qmksA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6z671cz9s1F; Thu, 21 Sep 2023 15:28:27 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:55 +0000 Message-ID: <039a1767e09d20d1797b979e29ceb139c6a25630.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (suitesparse-umfpack): New variable. --- gnu/packages/maths.scm | 68 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a5d7f4ebd3..fbfa94265b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5747,6 +5747,74 @@ (define-public suitesparse-spqr matrices.") (license license:gpl2+))) +(define-public suitesparse-umfpack + (package + (name "suitesparse-umfpack") + (version "6.2.0") + (source (suitesparse-package-src name "UMFPACK")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../source/Doc/UMFPACK_UserGuide.pdf" outdir) + (install-file "../source/Doc/UMFPACK_QuickStart.pdf" outdir)))) + (replace 'install-license-files + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../source/Doc/License.txt" outdir) + (install-file "../source/Doc/gpl.txt" outdir))))))) + (inputs + (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-etoolbox + texlive-framed + texlive-mdframed + texlive-needspace + texlive-xcolor + texlive-zref)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Routines for solving sparse linear problems via LU factorization") + (description "UMFPACK is a set of routines for solving unsymmetric sparse +linear systems using the Unsymmetric MultiFrontal method and direct sparse LU +factorization.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse")