From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 CMHvHogsH2VV4QAAauVa8A:P1 (envelope-from ) for ; Thu, 05 Oct 2023 23:37:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CMHvHogsH2VV4QAAauVa8A (envelope-from ) for ; Thu, 05 Oct 2023 23:37:12 +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 C9E7240A4E for ; Thu, 5 Oct 2023 23:37:11 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Pwh+20wR; 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=1696541832; 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=Ny87mY055+mB9tbIinXpYmbjo0sELr1ENTA3zROrEzM=; b=iFl3bMQqnunXbXVon1QsSk8guqmQgz/sa1cjFnCGMKlkMYQmlKJdwg+45VIQtwVlTmzQu0 KhKRsn6LJsnF6Vc/CScPabI2+/Pa+dVW106Wu4xX2000MwnQvlAW/d+Q3aabcRN6AK/9+m sUthC0bxZkgSn9T6HvSL9R4mz9qeXb7llRQh08UlHaM+/1Wem8V5W3RAVLor/n3meBWvTq q5fad1njfKLdPKmXceJ07Qi3ZS1YTxqvHQpJGeUV4Jiq2JwdIfuF6/quNhxA8TVV2DxCKp 3yOzVYae7gYicOjBreW+rXZtBL6DomfQ+OFbUwYnt/4hvbW+fct2CFuJX1oeeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Pwh+20wR; 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=1696541832; a=rsa-sha256; cv=none; b=cG8z5+FHD8ecJ0x6Hdi43NtWRvex7PHIaSFqgDpOvvenjeOu0SDKKX9wYpmvXXL2xBq8kv eztzcggfE0qhA3aSAIy2aKWlvWwOisfMvoQSiPPRnMyBOiFCdrGiTC0MM+7gUVqj3tAl2M o6H3+tLANVP0j33mTp/Wzodw/2Y2yuAImjqCXnPGwEyotg/oRpN2n+BZBbLXHGjqq9BGO0 mbDePYqF4G9O1CLpHElnQI1nQchf+YqqKXwN95Mh2iGSYCvd1sg5gPMB2B5M+RFTwfDJJW r9AoUkRG/9PFdg+LD5Gj0xwR8UCBn+Kg/t0AaUQ892ix8HZ/XktCycN0Itk+eA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoW1d-0002v5-Qk; 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-0002uB-5q 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 1qoW1U-0003i4-V4 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-0002XP-C4 for guix-patches@gnu.org; Thu, 05 Oct 2023 17:37:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v3 03/20] gnu: Add suitesparse-amd. 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.16965418209709 (code B ref 66129); Thu, 05 Oct 2023 21:37:03 +0000 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:00 +0000 Received: from localhost ([127.0.0.1]:48691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1j-0002WJ-Fi for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:00 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1h-0002VZ-FL 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 67632240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541793; bh=5t5IxCQQiFUiKCQrSNL+AYB4CQc6Dr7ukLyuuA2gbf8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Pwh+20wR3Uoj9hv2XV3OvXmeaFQOqOww09QBGFhLA7/ITaAjfItXQ6KIqISa0mfb/ hhHtiSrpN6q5KZ14AN5nPhh0acByvnWUhaVv8wLxpSY+bHQP2xlsvWnucwMaZ1Xu4S /s6ZZGjr3bqn7n0OaEwDKiyhlv0BY/JeAezI1i1kAX2Z+21DffoBRe+2YdT7GGsNX4 LhxXNCXzU/EVNKDx0l5GLvUrWhbLu6S7/JR0GojEZFJnLmmO+fHkQRQVFzf7zbOEr7 jRIwiBAt3oMFAAHFiOm81luKXFQlVBdWzmNpkDbreq3hJyuLYvWyIREjeviL2dVpjX gLw1HCwbDPDOg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHj0G6Sz6tvc; Thu, 5 Oct 2023 23:36:33 +0200 (CEST) From: David Elsing Date: Thu, 5 Oct 2023 21:34:46 +0000 Message-ID: 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: C9E7240A4E X-Spam-Score: -3.79 X-TUID: QmDNHN2y4/+s * gnu/packages/maths.scm (suitesparse-amd): 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 0dcd456a2e..2216cc67b8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5120,6 +5120,54 @@ (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-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "AMD"))) + (add-after 'chdir '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 "../AMD/Doc" + (invoke "make")))) + ;; Required for suitesparse-umfpack + (add-after 'install 'install-internal-header + (lambda _ + (install-file "../AMD/Include/amd_internal.h" + (string-append #$output "/include")))) + (add-after 'install-internal-header 'install-doc + (lambda _ + (install-file "../AMD/Doc/AMD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../AMD/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