From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OECsMNssH2U1aAEA9RJhRA:P1 (envelope-from ) for ; Thu, 05 Oct 2023 23:38:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OECsMNssH2U1aAEA9RJhRA (envelope-from ) for ; Thu, 05 Oct 2023 23:38:35 +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 AEC23406F5 for ; Thu, 5 Oct 2023 23:38:35 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=KbJSTFww; 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=1696541915; 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=yqnPv+Id9DBEQFxv3nMPo4Uu2HbARHGLwCsIuQXi8Fs=; b=iPHQcOiS+4Bp1k6m8zJLrlbGmvjCWr/Sqz9Oed5O/Ml1Psirwmio+l2BKZ7t80zKHOSVYg zu2aMtSzD/OsWxzySD4n7L1V+3EP8XK5Ypys8erJucVmPsWUW5PRXu9xqAfXYntJLIR6m8 Pw3JjDG9AFvCJodyl0h5DZHqvOZp/QI7NjGIeI1jvgGOFpdpyWDHjjIgZQ9v5CquSRjju+ nc9e/y+6c1YU6FZEvS6nv/kafprzZJx3m2Porkusxo0Ie1/7d3v/FtR966nqCtN7V/dgyF QdfwbgjRga8WTCI35A+m0ZPGSH779aztIjAxAXnzsP2M56YbMT4V6BRgu2Vhcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=KbJSTFww; 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-Seal: i=1; s=key1; d=yhetil.org; t=1696541915; a=rsa-sha256; cv=none; b=JpSnmPbPhF1hipM0l0uTg7BAy8L7q8bu3STBu6m89lZst6/4f3jy1JQefIsI3nyDKvwDUt cj6Jzch1VK8pCL2VPgiqbN+bGFL6zompPmN2dk3rNcO8hFGjC1szj1NQTNy2IjFIvFbXBj OqrNxzyuCWeYsl7wECVkMvnZQFMMtTYBnlM0HH4LIG55VK1JqH1Xehw3POmtuptWqnMc7o R+zG52XqzgLiX+Ee/eD2ZtLv6zm37JD7TyMVFbNF4/f5qdrLgw2AVJDgtR50NZdLO52PiI EcDANit/kTJvvOEHIZBda4utnaW3FESUh990EbXModOQUzixGH1JYQjmCYBtQg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoW2b-0003IN-L2; Thu, 05 Oct 2023 17:37: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 1qoW2Z-0003Fp-C1 for guix-patches@gnu.org; Thu, 05 Oct 2023 17:37:51 -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 1qoW2Z-00045b-4C for guix-patches@gnu.org; Thu, 05 Oct 2023 17:37:51 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoW2r-0002eD-HC for guix-patches@gnu.org; Thu, 05 Oct 2023 17:38:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v3 19/20] gnu: Add suitesparse-spqr. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Oct 2023 21:38:09 +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.16965418379964 (code B ref 66129); Thu, 05 Oct 2023 21:38:09 +0000 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:17 +0000 Received: from localhost ([127.0.0.1]:48754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW21-0002aZ-0B for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:17 -0400 Received: from mout01.posteo.de ([185.67.36.65]:38147) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1t-0002Xx-R0 for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8EB95240027 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541805; bh=RD6ekbPPI6QL7XyIHfRgwdFKYVmvS28AsPR4ax+AVDk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=KbJSTFwwGdCqitN9tHtbIXE5CDXNmvPYrnqgjYcvKEKmAcgPVTsDLbQSV0d++fyzf BxQGuYPZuWuI1dNo4inwGCoF9Jfg/DZp9qoDhlBwAbDcziNoedlJUZrfxvz53AHnBe yOELvAmBLWI3yV6UoYYMp5gFEjyr1Bfvgw/ikDE/a1NM/57o6XhjtA8y3EnCKSwaav mD4ZF18sIoJp/bupBFRVGvfUP4vgaiDesNZAUQzJmCKRGdpp9UJ5j4AzCW8gzfcKKn CBzo+1k3nlZ/r7Jngw5IiYsGEq4wbwIzN7uxiCVE0BaiEw3h1Ro4v8c5A16jIHIyoy tjsyPBqGJzERg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHx1HBGz6tvd; Thu, 5 Oct 2023 23:36:45 +0200 (CEST) From: David Elsing Date: Thu, 5 Oct 2023 21:35:02 +0000 Message-ID: <580f0ce4bdf76aef46b5bcf611f0e12ebeb566cc.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-Spam-Score: -3.79 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: AEC23406F5 X-Spam-Score: -3.79 X-TUID: g5fZBtSVDQ77 * gnu/packages/maths.scm (suitesparse-spqr): New variable. --- gnu/packages/maths.scm | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b41b2be6e9..fa0bd2d406 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5867,6 +5867,68 @@ (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-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "SPQR"))) + (add-after 'chdir '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 "../SPQR/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../SPQR/Doc/spqr_user_guide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../SPQR/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") -- 2.41.0