From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uCuxLjKQd2faMAEAe85BDQ:P1 (envelope-from ) for ; Fri, 03 Jan 2025 07:22:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uCuxLjKQd2faMAEAe85BDQ (envelope-from ) for ; Fri, 03 Jan 2025 08:22:26 +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=hRss+ENP; 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=1735888946; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nNvwv6DtV+8gpI9RZUYGdikm/3TVgecMPDd2ObEqqSU=; b=qvtkzlVNgcTuNF54X08C3MZztCvR/FmaI1CRpHMgoyft78Ob9N/64IL/UVl8BgmfkigBf5 8ilzLcAeqmjdznxxddUMsbdi4PdefEDKVl2qOhLIH4C0i1St41lKcyL+K6Q7dDRErRY8wh sdqwERjbnDFnhI0riTWJZKS8Vs+fPV8dNQDbnXWEEpMpOpGSWlup51ld8P//jOSTgsFz1m CLrUC1z6f67r82arrp1kLTWZF7xRbnTWBDLd/YMB6Yk5fyTrLNy8jwEpXmYLqTqVQFX62e lwa3RnqfcsmO+kyvwG0H6nj4sfplfOUGnoQz8zcP+/smqPCWvbuWHODgs8y84A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=hRss+ENP; 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=1735888946; a=rsa-sha256; cv=none; b=pjbygSUQIjFDEbqv+l0KSAt0Zlu8dTCcj71PDWy1/QndujOTs2CgIXoco5GkZ0p0ktXy4i OhD2NVG2LKyXfpkpOPjG05xgsox/xhR1XTYMR7+q9UKjzet8kcbeQv/Tz0e/lzD/4acOra p+rsojTmYDQ11xnAPeQvl8tl+SGiKCfz9vIPvOVRHGYHqzzkCAeuWdxlKUB0eoKNUbNTPg pSK59GfpcHSOVp5dn0lKVOoFPIKC9LlvWbDowGhynMiD5w4d5oCtGB9qOW00Wk3CzGZe8q 1OW0Q97fxypMai670jAHDD0Ga7SaBoBMdVbm+Rmvdv0WuLtSQoDU3h6uyH+nyA== 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 371B127C0E for ; Fri, 03 Jan 2025 08:22:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTc0W-0004lX-NH; Fri, 03 Jan 2025 02:22:08 -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 1tTc0S-0004lD-U3 for guix-patches@gnu.org; Fri, 03 Jan 2025 02:22:06 -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 1tTc0S-0005ec-AO for guix-patches@gnu.org; Fri, 03 Jan 2025 02:22:04 -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:In-Reply-To:References:Subject; bh=nNvwv6DtV+8gpI9RZUYGdikm/3TVgecMPDd2ObEqqSU=; b=hRss+ENPxUCn0GYXkMhdv1/ny5M8kBU2vwnKJsJuRVyL6udSJ/UqO2EtN3z8UFmngTyvi9LQZHblY2d4lsMGS8Q8JuHagDuqk4icDvoE+aWDyubK5KgZ/NErKVTiejC9PDLdz9NmlBA/A0tyKpPP1avC5ObXPEvRddYdCYAB7P0leHPwAWX9ZogscVIvaSU/5d8brnbqPlFXW1VAl0LiU5cKJR/8IqSkv3koxoVxaQ3Ogac5RKBzJ7XQDKlZFnOSZttg9F/2D32nlLbt4uFGG98BD71BGaHqgnK0RzSPq0LlqCVASQvg7RqV3KzF8ekybRniWvBfogngkmg3RpspnQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTc0P-0006WY-NW; Fri, 03 Jan 2025 02:22:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75284] [PATCH v2] gnu: Add netcdf-cxx4 and netcdf-cxx4-parallel-openmpi. References: In-Reply-To: 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: Fri, 03 Jan 2025 07:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 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-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by 75284-submit@debbugs.gnu.org id=B75284.173588890225031 (code B ref 75284); Fri, 03 Jan 2025 07:22:01 +0000 Received: (at 75284) by debbugs.gnu.org; 3 Jan 2025 07:21:42 +0000 Received: from localhost ([127.0.0.1]:49325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTc05-0006Vf-Tn for submit@debbugs.gnu.org; Fri, 03 Jan 2025 02:21:42 -0500 Received: from mailgate5.ufz.de ([141.65.7.212]:59260 helo=mailgate.ufz.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTc03-0006VV-1W for 75284@debbugs.gnu.org; Fri, 03 Jan 2025 02:21:40 -0500 Received: from imap.intranet.ufz.de (dcs1.intranet.ufz.de [141.65.125.135]) by mailgate.ufz.de (Mailgate5-UFZ) with ESMTP id A3ED416031D for <75284@debbugs.gnu.org>; Fri, 3 Jan 2025 08:21:37 +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 <0SPI00M003GOOY00@imap.intranet.ufz.de> for 75284@debbugs.gnu.org; Fri, 03 Jan 2025 08:21:37 +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 <0SPI00JCG4G1ZLE0@imap.intranet.ufz.de> for 75284@debbugs.gnu.org; Fri, 03 Jan 2025 08:21:37 +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 7B1E880077; Fri, 3 Jan 2025 08:21:37 +0100 (CET) Date: Fri, 03 Jan 2025 08:21:28 +0100 From: Lars Bilke Message-id: <5bab815c259ef005cc5ef338dffe397a1d2a981a.1735888888.git.lars.bilke@ufz.de> X-Mailer: git-send-email 2.46.1 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: mx12.migadu.com X-Migadu-Spam-Score: -3.05 X-Spam-Score: -3.05 X-Migadu-Queue-Id: 371B127C0E X-TUID: mupfgINNg1To * 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..dee8c0636a 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") + (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) + (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")))) + (inputs (list netcdf hdf5)) + (home-page "https://github.com/Unidata/netcdf-cxx4") + (synopsis "NetCDF C++ interface") + (description "C++ interface for NetCDF.") + (license license:bsd-3))) + +(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