From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 02 08:52:40 2025 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 Subject: [PATCH] gnu: Add netcdf-cxx4 and netcdf-cxx4-parallel-openmpi. To: guix-patches@gnu.org Message-id: X-Mailer: git-send-email 2.46.1 X-Debbugs-Cc: Andreas Enge , Eric Bavier , Sharlatan Hellseher 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: Lars Bilke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 03 02:21:42 2025 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 Subject: [PATCH v2] gnu: Add netcdf-cxx4 and netcdf-cxx4-parallel-openmpi. To: 75284@debbugs.gnu.org Message-id: <5bab815c259ef005cc5ef338dffe397a1d2a981a.1735888888.git.lars.bilke@ufz.de> X-Mailer: git-send-email 2.46.1 X-Debbugs-Cc: Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 75284 Cc: Lars Bilke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 19 18:12:41 2025 Received: (at 75284-done) by debbugs.gnu.org; 19 Jan 2025 23:12:41 +0000 Received: from localhost ([127.0.0.1]:48095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZeTA-0001u9-Us for submit@debbugs.gnu.org; Sun, 19 Jan 2025 18:12:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48298) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tZeT8-0001tv-3l for 75284-done@debbugs.gnu.org; Sun, 19 Jan 2025 18:12:38 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZeSy-0002FT-Gd; Sun, 19 Jan 2025 18:12:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=OlRzHOIzcy97PIPCVSEYJ6BYzH9SkZMHhTL8qYXBlK0=; b=YYOVRBX36qlDPOAtp2b9 Hp9JFBSXE1Z/B/NlqbxO/u0rvHXUZOKsNgnsOm12RoPVC2OtD+6OWQOxKY9YaCuCaAqqHEAmfMa4L TRI2e0de0+lO79A7GQ6lHiPwFrz0VT21ponfq/u90b6L8JWk5IFeo8B3mW47XVHl4aqS8TSOz6fcl 9e9SMJaHaCSvXRaM27sr1YiIj0aozEHBOf8HdbZppheGEft7Ge3Pp0CVlL3TbAjxN7hEEWT0Rw5oU x9sWLwpclWkyobHISRltbBtv5EqGq8xy7mrmjDVDx/JUytsQy5UDZWM3C3U/fMIY0n/qT0S8oEiCC gTLDfvkbOgq7fA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Lars Bilke Subject: Re: [bug#75284] [PATCH v2] gnu: Add netcdf-cxx4 and netcdf-cxx4-parallel-openmpi. In-Reply-To: <5bab815c259ef005cc5ef338dffe397a1d2a981a.1735888888.git.lars.bilke@ufz.de> (Lars Bilke's message of "Fri, 03 Jan 2025 08:21:28 +0100") References: <5bab815c259ef005cc5ef338dffe397a1d2a981a.1735888888.git.lars.bilke@ufz.de> Date: Mon, 20 Jan 2025 00:11:46 +0100 Message-ID: <87ikqao0ul.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75284-done Cc: Andreas Enge , 75284-done@debbugs.gnu.org, Sharlatan Hellseher , Eric Bavier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Lars Bilke skribis: > * gnu/packages/maths.scm (netcdf-cxx4): New variable. > * gnu/packages/maths.scm (netcdf-cxx4-parallel-openmpi: New variable. > > Change-Id: I9781aa31567b80e20c528abb5e9289bc625bb3eb Applied with the changes below: addressing a =E2=80=98guix lint=E2=80=99 is= sue, and following the conventions at . Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 5f40f751d3..4e3ea6df26 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2391,6 +2391,7 @@ (define-public netcdf-cxx4 (uri (git-reference (url "https://github.com/Unidata/netcdf-cxx4") (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 (base32 "05kydd5z9iil5iv4fp7l11cicda5n5lsg5sdmsmc55xpspnsg7hr")))) (build-system cmake-build-system) @@ -2424,18 +2425,22 @@ (define-public netcdf-cxx4 (("cxx=([[:graph:]]+)/bin/c\\+\\+") "cxx=\"c++")))))) #:configure-flags (list (string-append "-DHDF5_C_LIBRARY_hdf5=" - (assoc-ref %build-inputs "hdf5") - "/lib/libhdf5.so")))) + (search-input-file + %build-inputs + "/lib/libhdf5.so"))))) (inputs (list netcdf hdf5)) (home-page "https://github.com/Unidata/netcdf-cxx4") (synopsis "NetCDF C++ interface") - (description "C++ interface for NetCDF.") + (description + "This package provides a C++ interface to the NetCDF library for +scientific data storage.") (license license:bsd-3))) (define-public netcdf-cxx4-parallel-openmpi (package (inherit netcdf-cxx4) (name "netcdf-cxx4-parallel-openmpi") + (synopsis "NetCDF C++ interface (with MPI support)") (inputs (modify-inputs (package-inputs netcdf-cxx4) (prepend openmpi) (replace "hdf5" hdf5-parallel-openmpi) --=-=-=-- From unknown Sun Jun 22 00:14:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 Feb 2025 12:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator