From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MN4VBIYsH2UAvQAA9RJhRA:P1 (envelope-from ) for ; Thu, 05 Oct 2023 23:37:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MN4VBIYsH2UAvQAA9RJhRA (envelope-from ) for ; Thu, 05 Oct 2023 23:37:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9C22A544CC for ; Thu, 5 Oct 2023 23:37:09 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=HUNVnEzb; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696541829; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/MdP7eiB5TmCmX1O46w3S6Gh0LHQSZvwUB8WDDWvNn8=; b=KEw1mH5VWAQKTdFFs0OyPcRkqj2Zrj3CBY/RN2biRskoQ+QLhdg1jZRZCaH2d3bTxRPMtf IZKx6wIvNaYyrxEYJ3L5Kkjx5LqBNEvQrXaUo5rKXnIrNW7i/fUZWQ6PB9MAHexTue6UC+ 6QKAt2qBqlyFnHF9PB1D5kXSZtWGyBgRrb5gk7JAFMmYKHe8VWP6hdQCW5oEwa1h1Gc8Sd rqJbD7W/Xx30RB+xVxSoKuHTheVzHTI4WYh6Y5BoQCNRzi2q/KeS7q6S1LPuWxfmsoLr4D ++mE4ROg2bIXtIWEV8wflsXgcUVM1VBU310/SwZ21O4WCilX+2ivxbzHVhcVfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696541829; a=rsa-sha256; cv=none; b=NONgfmKqkCWbJRl8EVYvOTF+9i2fYHlQiac0nghjInbl9wUJCVjlkqW2ZFDBuepbls0R3O WOKHumlQNHTxD0V/pKJWBFEdFaGWVp2HHEf1Y9OKfmItzjFlKAlfG8GuC2S1yrPw1a+YL4 QHXcaaujzcjppQ5Jj042049BdKfqf9dwRQrSmgnVnLRtTwoHZ2t4htt079Sz3l7gRMrqYR s5x+jHMIVNeGRsSZLbaj7EGkljY0mKFtGhm5yojtqjEBXm4ySr97l9IKqf6ZJBc4EV7NLw PVgTPsJwU2OcAMejBRZn7hzPrlJpgpOcXP9bxgt4CBfvnzc3gq+2lsVhwTUwQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=HUNVnEzb; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoW1d-0002v2-Gd; Thu, 05 Oct 2023 17:36:53 -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 1qoW1W-0002uA-5L for guix-patches@gnu.org; Thu, 05 Oct 2023 17:36:47 -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 1qoW1V-0003iB-Cj for guix-patches@gnu.org; Thu, 05 Oct 2023 17:36:45 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoW1n-0002Xb-PJ for guix-patches@gnu.org; Thu, 05 Oct 2023 17:37:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v3 02/20] gnu: Add suitesparse-config. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Oct 2023 21:37: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.16965418219724 (code B ref 66129); Thu, 05 Oct 2023 21:37:03 +0000 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:01 +0000 Received: from localhost ([127.0.0.1]:48697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1k-0002WY-Aj for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:01 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1g-0002VX-OM for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:36:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id AB5CD240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541792; bh=ySnZPQdaXD+FJ07zt8JKpbiffZAK8tFTMIPXbHfQRPs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=HUNVnEzb+tYN/i6UkEXwD+ghEv3YCPJvD/Hco1jc8qY5VQxxOYYuAbuAICLBIuzj6 0vud4NKFunreDKUBO7n9KAufRT6Ron0e5aEvzI4zyreGtGY+mqoK46Ag5Hguzvr46D cvw6CpFt4pA4eP62JMgonGUlYaWKQDETVfbjMV75NNoU8K8jCwa7RjVlCb6HPaCv72 XU0jOXU2Rd6wTaohOhVgxQ7PQ75sq5+YbDwXPcWbtoVcH7X8DYs83N7ifamUPaBg/i iml3HJbYaOiz4Hpu6VxkhQH4MdOeHxMFmWsbZT3q/f1yiE/COpmw6i2ExnoyUk0l2W r+LyJQgty6u4Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHh29cfz6tvd; Thu, 5 Oct 2023 23:36:32 +0200 (CEST) From: David Elsing Date: Thu, 5 Oct 2023 21:34:45 +0000 Message-ID: <6da1d5a872da0741da2c225ae724e45decc6ac7a.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -3.82 X-Spam-Score: -3.82 X-Migadu-Queue-Id: 9C22A544CC X-TUID: kx8onJ9JqkYk The suitesparse-source variable contains the entire SuiteSparse source code, which is used for all subpackages. * gnu/packages/maths.scm (suitesparse-version, suitesparse-source, suitesparse-config): New variables. --- gnu/packages/maths.scm | 81 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index c796501e72..0dcd456a2e 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5039,6 +5039,87 @@ (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-source + (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-public suitesparse-config + (package + (name "suitesparse-config") + (version suitesparse-version) + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "SuiteSparse_config")))))) + (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") -- 2.41.0