From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MAyRCkyadmf7FwAAe85BDQ:P1 (envelope-from ) for ; Thu, 02 Jan 2025 13:53:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MAyRCkyadmf7FwAAe85BDQ (envelope-from ) for ; Thu, 02 Jan 2025 14:53:16 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="Xm/+SYOS"; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735825995; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DtqKcvvAeETnqUiUBRW62JdIiQeB9BMTlIejVQdwqpQ=; b=e/nBk/UXa6rmgIQ0c/uxRGo2K6hspgghHhJEKGSNr0FxKVJ+N98iNcREfQ6e/8v1rJtxPf +RbgawbB0UoORKqYsYUHGKMwrB2BzC8hwc20GC34AP4aMyuu5LaqCzAmuwebRSpqHb5Ldh d7eX10kE55oc1YrRheLSqwXvrukyrUakE37Z37U1IEV+Dbt2kQIoFO4Hf9OL8Bs0ODPN57 6QyPAguvD03J15mjqylHCFoFKt3Y/md0dl3mwMPsJfRK8GOyqzQJqU35NNbIP5vPxt5CZo QUC64g0KLrAYnI7jAqMH5fdV+k0scG2V3/czlnlKki2/TYVwbeN5shIXXBUwcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="Xm/+SYOS"; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735825995; a=rsa-sha256; cv=none; b=QYubBOQEqk3Mw7wO39YszfjCRSx7On3CbV9CWtYCRd3M2j+Bz9CHrWMpVMxz8CPe7Ezp7o D92KKtVHqZ+qJaEkwtM6TjG8Wjnt/bWFriOO7ska+wzISe3kG+9crEeg2Nhl3PLzbe/8C8 RCX3YQkWo334vzCl4hR0bhXZ3KgYWVmOgRLs6BxkLLf1Ym0iw62huNTW/ordfrZJMFwIIc O/sjB+2AtT+KcMqwDBNOfpPy0AhqBSlVeir7Nql9qpAArjkxFYN3ROBjZzqbBlP0uHNpUb VVuU4IKu/QrNqbUWlhgPCgbqWFo1GuzdttAsj8VxRGBF4abSu27eAF7UAF/R/Q== 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 9926F95C70 for ; Thu, 02 Jan 2025 14:53:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTLdO-0001kl-Kb; Thu, 02 Jan 2025 08:53:10 -0500 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 1tTLdM-0001kL-MH for guix-patches@gnu.org; Thu, 02 Jan 2025 08:53:08 -0500 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 1tTLdL-0001qx-FV for guix-patches@gnu.org; Thu, 02 Jan 2025 08:53:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:Date:MIME-version:To:Subject; bh=DtqKcvvAeETnqUiUBRW62JdIiQeB9BMTlIejVQdwqpQ=; b=Xm/+SYOSRADLKvMZmAiCUDSmjsImRXf+Kqt6BN6dEF7/zc+yFLYIidy+tfzW3QaMlbDgE2C7s+NpaepsmcZJQrti7R8REhX4Er2GPclQPbib36TQfHzshtI2jkY1+QCj9D/23rU6QUEI2uSv8dZ+bWkTG+HtkkLkQT4qidsy4L9NEbc1CnM5X/vO6iS/yqUTV5AjRkQlLvxI57cN+z8e7vKdcjW8fgnq/7copfVbSe9VLNR7N4BHEBTtfpU6BnkcpEEh86tDq84wwX07bFIbHXe2jmRd5WWBKRO6RPwEqRzJKxsKA0MOSrpuVuxDEbw4Q43UKr5Snfuht1ffqO9sRQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTLdI-0001Ds-6x; Thu, 02 Jan 2025 08:53:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75284] [PATCH] gnu: Add netcdf-cxx4 and netcdf-cxx4-parallel-openmpi. Resent-From: Lars Bilke Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Thu, 02 Jan 2025 13:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75284 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75284@debbugs.gnu.org Cc: Lars Bilke , Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by submit@debbugs.gnu.org id=B.17358259614659 (code B ref -1); Thu, 02 Jan 2025 13:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jan 2025 13:52:41 +0000 Received: from localhost ([127.0.0.1]:43197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTLcu-0001D5-5F for submit@debbugs.gnu.org; Thu, 02 Jan 2025 08:52:40 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60904) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTLcs-0001Cp-2C for submit@debbugs.gnu.org; Thu, 02 Jan 2025 08:52:39 -0500 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 1tTLck-0001fd-Ho for guix-patches@gnu.org; Thu, 02 Jan 2025 08:52:30 -0500 Received: from mailgate4.ufz.de ([141.65.7.211] helo=mailgate.ufz.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTLci-0001mt-9G for guix-patches@gnu.org; Thu, 02 Jan 2025 08:52:30 -0500 Received: from imap.intranet.ufz.de (dcs1.intranet.ufz.de [141.65.125.135]) by mailgate.ufz.de (Mailgate4-UFZ) with ESMTP id 10E5A16030D for ; Thu, 2 Jan 2025 14:52:24 +0100 (CET) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN Received: from conversion-daemon.imap.intranet.ufz.de by imap.intranet.ufz.de (Oracle Communications Messaging Server 8.0.2.6.20200227 64bit (built Feb 27 2020)) id <0SPG00F00QRE9R00@imap.intranet.ufz.de> for guix-patches@gnu.org; Thu, 02 Jan 2025 14:52:24 +0100 (CET) Received: from smtp1.ufz.de ([141.65.7.216]) by imap.intranet.ufz.de (Oracle Communications Messaging Server 8.0.2.6.20200227 64bit (built Feb 27 2020)) with ESMTPS id <0SPG00IC6RVBGEG0@imap.intranet.ufz.de> for guix-patches@gnu.org; Thu, 02 Jan 2025 14:52:24 +0100 (CET) Received: from envinf4.minotaur-alpha.ts.net (unknown [141.65.34.85]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp1.ufz.de (smtp1-UFZ) with ESMTPSA id D3EB180077; Thu, 2 Jan 2025 14:52:23 +0100 (CET) Date: Thu, 02 Jan 2025 14:52:10 +0100 From: Lars Bilke Message-id: X-Mailer: git-send-email 2.46.1 Received-SPF: pass client-ip=141.65.7.211; envelope-from=lars.bilke@ufz.de; helo=mailgate.ufz.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.15 X-Spam-Score: -8.15 X-Migadu-Queue-Id: 9926F95C70 X-Migadu-Scanner: mx10.migadu.com X-TUID: 2fo9gFRSkAla * gnu/packages/maths.scm (netcdf-cxx4): New variable. * gnu/packages/maths.scm (netcdf-cxx4-parallel-openmpi: New variable. Change-Id: I9781aa31567b80e20c528abb5e9289bc625bb3eb --- gnu/packages/maths.scm | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 22e2822c8c..71ea757e0e 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2381,6 +2381,66 @@ (define-public netcdf-fortran (home-page (package-home-page netcdf)) (license (package-license netcdf)))) +(define-public netcdf-cxx4 + (package + (name "netcdf-cxx4") + (synopsis "NetCDF C++ interface") + (license license:bsd-3) + (description "C++ interface for NetCDF.") + (home-page "https://github.com/Unidata/netcdf-cxx4") + (version "4.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Unidata/netcdf-cxx4") + (commit (string-append "v" version)))) + (sha256 + (base32 "05kydd5z9iil5iv4fp7l11cicda5n5lsg5sdmsmc55xpspnsg7hr")))) + (build-system cmake-build-system) + (inputs (list netcdf hdf5)) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'configure 'patch-configure + (lambda _ + (substitute* "libnetcdf-cxx.settings.in" + ;; Don't record the build-time host, time and gcc path to make the + ;; settings file reproducible. + (("@CONFIG_DATE@") + "Not set (Guix build)") + (("@host_cpu@-@host_vendor@-@host_os@") + "Linux") + (("@CC_VERSION@") + "gcc")) + ;; The filter tests fail with 'Caught unexpected exception'. + (substitute* "cxx4/CMakeLists.txt" + (("add_bin_test\\(cxx4 test_filter\\)") + "")) + (substitute* "examples/CMakeLists.txt" + (("add_sh_test\\(examples tst_filter\\)") + "")))) + (add-after 'install 'clear-reference-to-compiler + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Do not retain a reference to GCC and other build only inputs. + (let ((out (assoc-ref outputs "out"))) + (substitute* (string-append out "/bin/ncxx4-config") + (("cc=([[:graph:]]+)/bin/gcc") + "cc=\"gcc") + (("cxx=([[:graph:]]+)/bin/c\\+\\+") + "cxx=\"c++")))))) + #:configure-flags (list (string-append "-DHDF5_C_LIBRARY_hdf5=" + (assoc-ref %build-inputs "hdf5") + "/lib/libhdf5.so")))))) + +(define-public netcdf-cxx4-parallel-openmpi + (package + (inherit netcdf-cxx4) + (name "netcdf-cxx4-parallel-openmpi") + (inputs (modify-inputs (package-inputs netcdf-cxx4) + (prepend openmpi) + (replace "hdf5" hdf5-parallel-openmpi) + (replace "netcdf" netcdf-parallel-openmpi))))) + (define-public n2p2 (package (name "n2p2") base-commit: ab43d883a0a88adbcfd3c3ab8d4c097cd9054b90 -- 2.46.1