From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aAdxFUoCH2SpWgAASxT56A (envelope-from ) for ; Sat, 25 Mar 2023 15:16:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UGZNFUoCH2Ta6gAAauVa8A (envelope-from ) for ; Sat, 25 Mar 2023 15:16:42 +0100 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 0C9FE9017 for ; Sat, 25 Mar 2023 15:16:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pg4gg-0000pa-TF; Sat, 25 Mar 2023 10:16:06 -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 1pg4gc-0000oM-O9 for guix-patches@gnu.org; Sat, 25 Mar 2023 10:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pg4gc-0001tt-GE for guix-patches@gnu.org; Sat, 25 Mar 2023 10:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pg4gc-0008BL-Ah for guix-patches@gnu.org; Sat, 25 Mar 2023 10:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61204] [PATCH v2 2/3] gnu: Add suitesparse-3. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Mar 2023 14:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61204 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 61204@debbugs.gnu.org Cc: ludo@gnu.org, ngraves@ngraves.fr Received: via spool by 61204-submit@debbugs.gnu.org id=B61204.167975374031397 (code B ref 61204); Sat, 25 Mar 2023 14:16:02 +0000 Received: (at 61204) by debbugs.gnu.org; 25 Mar 2023 14:15:40 +0000 Received: from localhost ([127.0.0.1]:43159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pg4gF-0008AK-IJ for submit@debbugs.gnu.org; Sat, 25 Mar 2023 10:15:39 -0400 Received: from 6.mo560.mail-out.ovh.net ([87.98.165.38]:53955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pg4gC-0008A0-Ga for 61204@debbugs.gnu.org; Sat, 25 Mar 2023 10:15:37 -0400 Received: from director7.ghost.mail-out.ovh.net (unknown [10.109.138.183]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id B4CE3241D8 for <61204@debbugs.gnu.org>; Sat, 25 Mar 2023 14:15:33 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-g45nz (unknown [10.110.171.66]) by director7.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 156921FE70; Sat, 25 Mar 2023 14:15:31 +0000 (UTC) Received: from ngraves.fr ([37.59.142.97]) by ghost-submission-6684bf9d7b-g45nz with ESMTPSA id xlKdCgMCH2SmTwEA69vE+Q (envelope-from ); Sat, 25 Mar 2023 14:15:31 +0000 X-OVh-ClientIp: 90.45.24.108 Date: Sat, 25 Mar 2023 15:15:21 +0100 Message-Id: <20230325141522.28889-2-ngraves@ngraves.fr> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230325141522.28889-1-ngraves@ngraves.fr> References: <20230325141522.28889-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 145522566979248861 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrvdegkedgieefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpfeejrdehledrudegvddrleejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeiuddvtdegseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedtpdhmohguvgepshhmthhpohhuth 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679753802; a=rsa-sha256; cv=none; b=V65LhcWA+N88ha6dXemQsnH40ocbnOxtI7NlGpFQoYiRVESgGPSAsN11TQFhY52xGc4O4d k5IGgOJvA4+QoNZkzeIwbKbwKe4TrzTcAwNBjEhARb1tcrtdFWk4TUtuQKYLP9VgxMUZT0 euzFaf3ADJ1U4yCgAZyMYyNNmEMVVCEJK8LGp6CQ44nIDKo2Xd1TJwm3DwQIKEJqcJ9zpq WJfihwv4YFMZXV31QsO+sSAB89tIFJIBGvpCt9EkWTj9ibBt0GC1VPlDQYzgD0s43W2a8+ clwy2QIcrkUPILzJXQ6xdgiRwnVBwO/Vk61v9bItEcxPhT71jd58LFvvYBmQLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679753802; h=from:from:sender:sender:reply-to: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; bh=I5/IAAJYfAu1YeUkgYXDOVilTrRn6EUFwV0mzVpJxN0=; b=RVzlGtg2w7O4I6KW1Grv4MzMltYKoaKUYsBMRmiuprQrm6vn7rWfMu5cd2SjheuwQU2Zgi I+qJ4e1Zt+rBgAWnJ6TCG9tlq837yk1RpRBMFWlCaU5OP+j05WWlJF1qI0eArjmSpXm+bJ +BzPQkpQAnG809E99/DQRA8bvwCSUsXuigvhwVHbkPHd+/Vsv3PbVWrA6pS9MfWWbAJcxe 6G8YZeDhMOH36xBmi8DuGqsct7Bvnoqb2yS7G9rSbbgi7nOSSihpNDSqLfPStmoGrlAi9J 7hlYeuA6oRfIXD6bwbG1zlJHTeyqWzbk0aGM9Gz+xCRJOwLJpUZ59OcBnknd1g== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.23 X-Spam-Score: -3.23 X-Migadu-Queue-Id: 0C9FE9017 X-TUID: 90lR7RbHuhbc * gnu/packages/maths.scm (suitesparse-3): New variable. --- gnu/packages/maths.scm | 89 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 5d8e2f0159..be20e5b581 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5202,6 +5202,95 @@ (define-public suitesparse ;; GPUQREngine, RBio, SuiteSparse_GPURuntime, SuiteSparseQR, UMFPACK (license (list license:gpl2+ license:lgpl2.1+)))) + +;; This outdated version is used to build the scilab package. +(define-public suitesparse-3 + (package + (inherit suitesparse) + (name "suitesparse") + (version "3.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DrTimothyAldenDavis/SuiteSparse") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wxk755nzps0c9la24zqknqkzjp6rcj5q9jhd973mff1pqja3clz")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ;no "check" target + #:make-flags + ,#~(list + (string-append "CC=gcc") + "AR=gcc -shared -o" + "RANLIB=touch" + "CFLAGS=-O3 -fPIC -I../Include" + "TBB=-ltbb" + + ;; Disable metis@4 (nonfree) support. + "CHOLMOD_CONFIG=-DNPARTITION" + "METIS=" + "METIS_PATH=" + + ;; The default is to link against netlib lapack. Use OpenBLAS + ;; instead. + "BLAS=-lopenblas" "LAPACK=-lopenblas" + + (string-append "INSTALL_LIB=" + (assoc-ref %outputs "out") "/lib") + (string-append "INSTALL_INCLUDE=" + (assoc-ref %outputs "out") "/include") + "library") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'correct-build-configuration + (lambda _ + ;; Invert build order: CHOLMOD before KLU. + (substitute* "Makefile" + (("\t\\( cd CHOLMOD ; \\$\\(MAKE\\) \\)\n$") + "") + (("\\( cd KLU ; \\$\\(MAKE\\) \\)") + (string-append "( cd CHOLMOD ; $(MAKE) )\n\t" + "( cd KLU ; $(MAKE) )"))) + ;; Build shared libraries. + (substitute* (find-files "." "akefile$") + (("lib([a-z]+)\\.a" all libname) + (string-append "lib" libname ".so"))) + ;; Delete broken KLU Demo step. + (substitute* "KLU/Makefile" + (("\\( cd Demo ; \\$\\(MAKE\\) \\)") + "")))) + (replace 'install + (lambda _ + ;; Install libraries. + (for-each + (lambda (x) + (install-file + x + (string-append (assoc-ref %outputs "out") "/lib"))) + (find-files "." "\\.so$")) + ;; Install header files. + (for-each + (lambda (x) + (install-file + x + (string-append (assoc-ref %outputs "out") "/include"))) + (find-files "." "\\.h$")))) + ,@(if (target-riscv64?) + ;; GraphBLAS FTBFS on riscv64-linux + `((add-after 'unpack 'skip-graphblas + (lambda _ + (substitute* "Makefile" + ((".*cd GraphBLAS.*") "") + (("metisinstall gbinstall moninstall") + "moninstall"))))) + '()) + (delete 'configure)))) ;no configure script + (inputs + (list tbb openblas gmp mpfr)))) + (define-public atlas (package (name "atlas") -- 2.39.2