From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gDVdEJxtC2WPdwEA9RJhRA:P1 (envelope-from ) for ; Thu, 21 Sep 2023 00:09:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gDVdEJxtC2WPdwEA9RJhRA (envelope-from ) for ; Thu, 21 Sep 2023 00:09:32 +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 30DC65A0D0 for ; Thu, 21 Sep 2023 00:09:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=ma03w0z5; 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=1695247772; 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=/nkYo39jtPNNRTNuzLOQMNblF7AUFOsoD7CPxbqCFks=; b=mxfHw9fqXMxFHVwecej/Ijh29qAeuluiI2lAsns7EQDmk5CJKpARoyy9Y5lZeQEL2btaS5 Atr0aFRGNecfNTDp0YQmJkfuREFlahS49kp53BJU0P6DUKUKTpnVgjJQ8cHuGjvps/so0R TNhY3boJUB4I7TjBLYITJS0xHIbLFdhqlfWENBPpjRESE7wpgt62qpNYqyoufizLTY3/uR VEBbIKFwalYaMQfFCIG+ehe0RHAaSSj7NTyVEt08N4gXDD4nZ/b6xHy1l0jFfu6E3PQ9mv 0pD87tCDNxqvGdHKOoCXyOw6C40I/VTUwEWNhUc4EK8vGv5Gr0nTM6sA7Ag65w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=ma03w0z5; 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=1695247772; a=rsa-sha256; cv=none; b=l9FuADVM6HE9kr/j6dNb1VWrleBN24sVxdqG/ONrATOhhPKAxCxxgmdtuE3PkBZbxga5ki QgdNfCoKSLZz3ef6WkCjAqeKtUWbOSpiZ/YfQXFmKiGhlXBy1aQmo0AJcjEeW5YnRIZ8WY rHNK9ApqEcDH6ZHECQbFA/1flB5G6WWOAr/cbpFEcyWqtk+3wit2ljmqfG2jnMK/eZ7MHg xjxnJ6xyLqwln+gxYWJ7KoBCpK+KIP4z1GISjVCNwZwZVkWunGDBJkv/Qdu8ihvBS5Wz6A x7t8fcRDpOmYB9/WBOfRMxX8c9/lOdu1BhmDf0D4D7G7UF1wcB8g2mu6I8NLLg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qj5NR-000748-0D; Wed, 20 Sep 2023 18:08: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 1qj5NP-00073Q-GU for guix-patches@gnu.org; Wed, 20 Sep 2023 18:08: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 1qj5NP-00059x-8Z for guix-patches@gnu.org; Wed, 20 Sep 2023 18:08:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qj5NY-0005T0-Qu for guix-patches@gnu.org; Wed, 20 Sep 2023 18:09:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH 03/20] gnu: Add suitesparse-amd. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Sep 2023 22:09: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.169524773820892 (code B ref 66129); Wed, 20 Sep 2023 22:09:04 +0000 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:08:58 +0000 Received: from localhost ([127.0.0.1]:60493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NS-0005Qs-2R for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:58 -0400 Received: from mout02.posteo.de ([185.67.36.66]:51617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NL-0005PN-QY for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3F5C3240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247716; bh=nRdXmEgds6g4jHWelS+aXO0YE48Quxrfnwyk4Yoo0m4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ma03w0z5XPZITtRYHk/WGjUfNJSUF6HfaWDdr2L98YCnOgcYDBtuRdWKDznC9ckD0 JER+4gtrnkODh00hEeOUei9YEl2sEyTtFi2CfpgbXHaSBbjChV8zrUH0mS0wqyG72y BLPYMrGc/63rtAEdw+a57euiuDf1Jln9eK2KLWhTuPBRTrWN58MdYOZIOMdkIhm80b Tp3PlGu+zfeOh+d0kmlPaVW80fIpBarQtcoWLNB63ffLjHcsMErdkQEbnVHFyB92bs eTY2S04dVP1Uf1LtM9j+aiYa64WEvFFj5qLXZ/uSqvpENCvwr/HpbmRh7zLFIqEdLm muEWPQfax+SJA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjb6Cp8z6ty8; Thu, 21 Sep 2023 00:08:35 +0200 (CEST) From: David Elsing Date: Wed, 20 Sep 2023 22:07:53 +0000 Message-ID: <42245d665abf95b4a09098f550b614249ec2a887.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: 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: mx1.migadu.com X-Migadu-Spam-Score: -3.88 X-Spam-Score: -3.88 X-Migadu-Queue-Id: 30DC65A0D0 X-TUID: SS1FL/e26TLy * 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") -- 2.41.0