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 wKpJCqRtC2WgIQAA9RJhRA:P1 (envelope-from ) for ; Thu, 21 Sep 2023 00:09:40 +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 wKpJCqRtC2WgIQAA9RJhRA (envelope-from ) for ; Thu, 21 Sep 2023 00:09:40 +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 5D90B5B13C for ; Thu, 21 Sep 2023 00:09:39 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=GM4eB3Cn; 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=1695247780; a=rsa-sha256; cv=none; b=MURzXBcBErSv1TDcscga7l/9TjLZBv/HQ6q2PScs5OkdqgiNTkbBY08+lP+NVqoaVW/3WC Ig/U5AIF0drSomesti3js5FCCMwtdWsc1ilmd6/rdXp8O3yCidGMEac8INuD0S9yjFkqyk 50nn6orfbaQdZNZHkgK1Z7X/hKqIhudE8i7Y3YaXAvdVNa1mq9K7uPiImR32ut8CwoomYc uMRIhdYtAKPkQ2P3WPujeC0jPyeboZpo8yI76v7RP+2v1OvZ7Csjf5aC/spRv6JvFYEA3b 9g+bo9mgM8UHxiv4xkwcNoMjwm66wKtGJWodVSFj0tZtzfoP7/CIohkrFXs7Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695247780; 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=WQzMm2J5fNyexXup0RkF/Qufj08s80WEIaoa9UucZok=; b=Kps1QvjGCwHZ1+tM/I+hTIVa5N4Y6i7r/HI9enGlpu+ScQgjgKJ2RIpgP1LEbR2JLzKiQC NI9d1kMvOiv5Hpanus2jPYkFD/YAVq56M2fRUZDDZTG5JNKcElogCU2j6c6turwnFeQGWF DXrydkKhFeD+sYG8B52pQEVOCRTuKSI4dUA0zuRCIQ05Rvxe+nyITpi4xgI0SyH0DIoHKr mpiW4iffoIqkqJQsP0wXDiCg0xmXXuXDSNYVu2tDV2lbKKqEL1LFvRaLbm0Pk3jozKs3Fo EkinJs/5S0f//+iZio2Fs3KGR3rZ10Ed0G71g0jRm/F7lafNtZuELVlJ8/vfyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=GM4eB3Cn; 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 1qj5NR-00074y-SD; 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 1qj5NQ-00073v-KK for guix-patches@gnu.org; Wed, 20 Sep 2023 18:08:56 -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 1qj5NQ-0005AF-CD for guix-patches@gnu.org; Wed, 20 Sep 2023 18:08:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qj5NZ-0005TP-W3 for guix-patches@gnu.org; Wed, 20 Sep 2023 18:09:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH 11/20] gnu: Add metis-suitesparse. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Sep 2023 22:09:05 +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.169524773920910 (code B ref 66129); Wed, 20 Sep 2023 22:09:05 +0000 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:08:59 +0000 Received: from localhost ([127.0.0.1]:60497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NS-0005R4-Sq for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:59 -0400 Received: from mout02.posteo.de ([185.67.36.66]:51617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NM-0005PN-Np for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A6061240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247722; bh=9Lw4m3Xegpy6MKnVWzSIbI8AH9cFBnXLRDObvMzB+60=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=GM4eB3Cnliy9XrWks1jtYjtilbQqg+wVQSSkrTFVM+n934dUnCLtXfg7IQfYw3nHu VT8Kk1M+Xjeq3qCr+VxwgJs/dT4qcGvYEXtcOMa3R3PANEwh4sQnP4rR57FBF3IOdh 7WgjBY1eoq/a+t6pq4rixjejohs30oeXmqZX0piF4F2hT2EywnAYCX5/nVj9kPAFfJ VaHtCaU7NSW+OHF+qJC6craoPwbcpiLa/5v14TNo7/W6IYIG1tIU58+qYMjiierjN0 QTnoc7M7cv+iVK8BVL2GD2tkip6nMwGGPQMLq4ok0UGlvO00OFWKSbez1AU3ooJ6ar ZFXuMH56BapRQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjk1tRfz9ryn; Thu, 21 Sep 2023 00:08:42 +0200 (CEST) From: David Elsing Date: Wed, 20 Sep 2023 22:08:01 +0000 Message-ID: <1ea9d34d76746c0de86d11b368fc0acbcccb1bfd.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-Spam-Score: -3.80 X-Spam-Score: -3.80 X-Migadu-Queue-Id: 5D90B5B13C X-Migadu-Scanner: mx2.migadu.com X-TUID: U8IjbtTeAfb9 * gnu/packages/maths.scm (metis-suitesparse): New variable. --- gnu/packages/maths.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 668d564edc..b34ad70321 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5253,6 +5253,32 @@ (define-public gklib-suitesparse (modify-inputs (package-inputs gklib) (prepend suitesparse-config))))) +(define-public metis-suitesparse + (package/inherit metis-5.2 + (name "metis-suitesparse") + (arguments + (substitute-keyword-arguments (package-arguments metis-5.2) + ((#:phases phases) + #~(modify-phases #$phases + (add-before 'prepare-cmake 'set-idxwidth + (lambda _ + (substitute* "Makefile" + (("IDXWIDTH.*=.*") + "IDXWIDTH = \"\\#define IDXTYPEWIDTH 64\"\n")))) + (add-before 'prepare-cmake 'link-suitesparse-config + (lambda _ + (substitute* "programs/CMakeLists.txt" + (("include_directories.*" all) + (string-append + all "find_package(SuiteSparse_config REQUIRED)\n")) + (("(target_link_libraries.*)GKlib(.*)" _ start end) + (string-append + start "GKlib ${SUITESPARSE_CONFIG_LIBRARIES}" end))))))) + ((#:configure-flags _) + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) + (inputs (list suitesparse-config gklib-suitesparse)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0