GNU bug report logs - #57410
[PATCH] gnu: Add eccodes.

Previous Next

Package: guix-patches;

Reported by: Antero Mejr <antero <at> mailbox.org>

Date: Thu, 25 Aug 2022 17:24:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 57410 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#57410; Package guix-patches. (Thu, 25 Aug 2022 17:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Antero Mejr <antero <at> mailbox.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 25 Aug 2022 17:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Antero Mejr <antero <at> mailbox.org>
To: guix-patches <at> gnu.org
Cc: Antero Mejr <antero <at> mailbox.org>
Subject: [PATCH] gnu: Add eccodes.
Date: Thu, 25 Aug 2022 13:22:27 -0400
* gnu/packages/geo.scm (eccodes): New variable.
---
 gnu/packages/geo.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 0c869fdebb..f1151fa95c 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -64,6 +64,7 @@ (define-module (gnu packages geo)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages build-tools)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages cmake)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages cpp)
   #:use-module (gnu packages cups)
@@ -76,6 +77,7 @@ (define-module (gnu packages geo)
   #:use-module (gnu packages flex)
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
+  #:use-module (gnu packages gcc)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
@@ -112,6 +114,7 @@ (define-module (gnu packages geo)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages readline)
+  #:use-module (gnu packages shells)
   #:use-module (gnu packages swig)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages textutils)
@@ -2797,3 +2800,35 @@ (define-public libaec
 point representations are not directly supported, they can also be efficiently
 coded by grouping exponents and mantissa.")
     (license license:bsd-2)))
+
+(define-public eccodes
+  (package
+    (name "eccodes")
+    (version "2.27.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ecmwf/eccodes")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hd4lli6g4m77rdfqwq8kxqpgn9na7lhv0j47w0sw9ihy8qllq41"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags #~(list "-DECBUILD_DISABLE_NEW_DTAGS=OFF"
+                                     "-DENABLE_PNG=ON")))
+    (native-inputs (list ecbuild gfortran perl))
+    (inputs (list oksh libaec libpng netcdf openjpeg))
+    (home-page "https://confluence.ecmwf.int/display/ECC")
+    (synopsis "Encoder/decoder for GRIB and BUFR meteorological data files")
+    (description "ecCodes is a package developed by ECMWF which provides an
+application programming interface and a set of tools for decoding and encoding
+messages in the following formats:
+
+@itemize
+@item WMO FM-92 GRIB edition 1 and edition 2
+@item WMO FM-94 BUFR edition 3 and edition 4
+@item WMO GTS abbreviated header (only decoding)
+@end itemize")
+    (license license:asl2.0)))
-- 
2.37.2





Information forwarded to guix-patches <at> gnu.org:
bug#57410; Package guix-patches. (Thu, 25 Aug 2022 17:28:01 GMT) Full text and rfc822 format available.

Message #8 received at 57410 <at> debbugs.gnu.org (full text, mbox):

From: Antero Mejr <antero <at> mailbox.org>
To: 57410 <at> debbugs.gnu.org
Cc: Antero Mejr <antero <at> mailbox.org>
Subject: [PATCH] gnu: Add ecbuild.
Date: Thu, 25 Aug 2022 13:27:02 -0400
* gnu/packages/cmake.scm (ecbuild): New variable.
---
 gnu/packages/cmake.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index cf930c57fc..aa89d4815c 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -32,6 +32,7 @@ (define-module (gnu packages cmake)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module (guix deprecation)
@@ -49,6 +50,7 @@ (define-module (gnu packages cmake)
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages libevent)
   #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages perl)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages texinfo)
@@ -406,3 +408,33 @@ (define-public emacs-cmake-mode
     (description "@code{cmakeos-mode} provides an Emacs major mode for editing
 Cmake files.  It supports syntax highlighting, indenting and refilling of
 comments.")))
+
+(define-public ecbuild
+  ;; when using set the configure flag "-DECBUILD_DISABLE_NEW_DTAGS=OFF"
+  ;; otherwise validate-runpath build step will fail when building Guix packages
+  (package
+    (name "ecbuild")
+    (version "3.7.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ecmwf/ecbuild")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1mcjdqwvkzli7xj2wlnr4hshfh3wi5rs585f9nvqjfpgwvn0ym14"))
+              (modules '((guix build utils)))
+              (snippet #~(substitute* "bin/ecbuild"
+                           (("cmake=\\$\\{cmakebin:=cmake\\}")
+                            (string-append "cmake=${cmakebin:="
+                                           #$cmake-minimal "/bin/cmake}"))))))
+    (build-system cmake-build-system)
+    (native-inputs (list perl))
+    (inputs (list cmake-minimal))
+    (home-page "https://ecbuild.readthedocs.io/en/latest/")
+    (synopsis "CMake wrapper and collection of macros")
+    (description "ecBuild is built on top of CMake and consists of a set of
+macros as well as a wrapper around CMake.  Calling @code{ecbuild $SRC_DIR} is
+equivalent to @code{cmake -DCMAKE_MODULE_PATH=$ECBUILD_DIR/cmake $SRC_DIR}.")
+    (license license:asl2.0)))
-- 
2.37.2





Information forwarded to guix-patches <at> gnu.org:
bug#57410; Package guix-patches. (Thu, 25 Aug 2022 17:31:02 GMT) Full text and rfc822 format available.

Message #11 received at 57410 <at> debbugs.gnu.org (full text, mbox):

From: Antero Mejr <antero <at> mailbox.org>
To: 57410 <at> debbugs.gnu.org
Cc: Antero Mejr <antero <at> mailbox.org>
Subject: [PATCH] gnu: Add libaec.
Date: Thu, 25 Aug 2022 13:30:09 -0400
* gnu/packages/geo.scm (libaec): New variable.
---
 gnu/packages/geo.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 66c97d3d6a..f23a8c1f4e 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -2773,3 +2773,27 @@ (define-public gplates
 reconstructions of geological and paleogeographic features through geological
 time.  Interactively visualize vector, raster and volume data.")
     (license license:gpl2+)))
+
+(define-public libaec
+  (package
+    (name "libaec")
+    (version "1.0.6")
+    (home-page "https://gitlab.dkrz.de/k202009/libaec")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url home-page)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "14myrmmiz9z6wgxqywf3a63cq514vrzsd6z4zvpwigvawlk30iip"))))
+    (build-system cmake-build-system)
+    (synopsis "Adaptive Entropy Coding library")
+    (description "Libaec provides fast lossless compression of 1 up to 32 bit
+wide signed or unsigned integers (samples).  The library achieves best results
+for low entropy data as often encountered in space imaging instrument data or
+numerical model output from weather or climate simulations.  While floating
+point representations are not directly supported, they can also be efficiently
+coded by grouping exponents and mantissa.")
+    (license license:bsd-2)))
-- 
2.37.2





Information forwarded to guix-patches <at> gnu.org:
bug#57410; Package guix-patches. (Sun, 28 Aug 2022 15:23:01 GMT) Full text and rfc822 format available.

Message #14 received at 57410 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Antero Mejr <antero <at> mailbox.org>, 57410 <at> debbugs.gnu.org
Subject: Re: [bug#57410] [PATCH] gnu: Add ecbuild.
Date: Sun, 28 Aug 2022 17:22:08 +0200
[Message part 1 (text/plain, inline)]
On 25-08-2022 19:27, Antero Mejr via Guix-patches via wrote:
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url"https://github.com/ecmwf/ecbuild")
> +                    (commit version)))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "1mcjdqwvkzli7xj2wlnr4hshfh3wi5rs585f9nvqjfpgwvn0ym14"))
> +              (modules '((guix build utils)))
> +              (snippet #~(substitute* "bin/ecbuild"
> +                           (("cmake=\\$\\{cmakebin:=cmake\\}")
> +                            (string-append "cmake=${cmakebin:="
> +                                           #$cmake-minimal "/bin/cmake}"))))))

This 'source' is only usable inside Guix as it embeds store items, which 
makes "guix build --source" less useful for sharing source code (see: 
(guix)Snippets versus Phases).

Try doing this in a snippet instead.

Greetings,
Maxime.

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#57410; Package guix-patches. (Mon, 29 Aug 2022 17:33:02 GMT) Full text and rfc822 format available.

Message #17 received at 57410 <at> debbugs.gnu.org (full text, mbox):

From: Antero Mejr <antero <at> mailbox.org>
To: 57410 <at> debbugs.gnu.org
Cc: antero <at> mailbox.org, maximedevos <at> telenet.be
Subject: [PATCH] gnu: Add ecbuild.
Date: Mon, 29 Aug 2022 13:32:12 -0400
* gnu/packages/cmake.scm (ecbuild): New variable.
---
Patch Guix-specific paths in a build step rather than a snippet (from review).

 gnu/packages/cmake.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index cf930c57fc..be4271f84c 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -32,6 +32,7 @@ (define-module (gnu packages cmake)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module (guix deprecation)
@@ -49,6 +50,7 @@ (define-module (gnu packages cmake)
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages libevent)
   #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages perl)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages texinfo)
@@ -406,3 +408,36 @@ (define-public emacs-cmake-mode
     (description "@code{cmakeos-mode} provides an Emacs major mode for editing
 Cmake files.  It supports syntax highlighting, indenting and refilling of
 comments.")))
+
+(define-public ecbuild
+  ;; when using set the configure flag "-DECBUILD_DISABLE_NEW_DTAGS=OFF"
+  ;; otherwise validate-runpath build step will fail when building Guix packages
+  (package
+    (name "ecbuild")
+    (version "3.7.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ecmwf/ecbuild")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1mcjdqwvkzli7xj2wlnr4hshfh3wi5rs585f9nvqjfpgwvn0ym14"))))
+    (arguments
+     (list #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'patch-cmake-binary-path
+                          (lambda _
+                            (substitute* "bin/ecbuild"
+                              (("cmake=\\$\\{cmakebin:=cmake\\}")
+                               (string-append "cmake=${cmakebin:="
+                                              #$cmake-minimal "/bin/cmake}"))))))))
+    (build-system cmake-build-system)
+    (native-inputs (list perl))
+    (inputs (list cmake-minimal))
+    (home-page "https://ecbuild.readthedocs.io/en/latest/")
+    (synopsis "CMake wrapper and collection of macros")
+    (description "ecBuild is built on top of CMake and consists of a set of
+macros as well as a wrapper around CMake.  Calling @code{ecbuild $SRC_DIR} is
+equivalent to @code{cmake -DCMAKE_MODULE_PATH=$ECBUILD_DIR/cmake $SRC_DIR}.")
+    (license license:asl2.0)))
-- 
2.37.2





Information forwarded to guix-patches <at> gnu.org:
bug#57410; Package guix-patches. (Sat, 02 Sep 2023 04:14:01 GMT) Full text and rfc822 format available.

Message #20 received at 57410 <at> debbugs.gnu.org (full text, mbox):

From: Vagrant Cascadian <vagrant <at> debian.org>
To: Antero Mejr <antero <at> mailbox.org>, 57410 <at> debbugs.gnu.org
Cc: antero <at> mailbox.org, maximedevos <at> telenet.be
Subject: Re: [bug#57410] [PATCH] gnu: Add ecbuild.
Date: Fri, 01 Sep 2023 21:13:21 -0700
[Message part 1 (text/plain, inline)]
retitle 57410 gnu: Add ecbuild.
thanks

On 2022-08-29, Antero Mejr wrote:
> * gnu/packages/cmake.scm (ecbuild): New variable.

The other two new packages proposed in this bug, eccodes and libaec,
have already been merged into guix:

1504edd84f1a0b4afda11cab99edc602d82085c1 gnu: Add eccodes.
d03b6fb0e3f0b81b35a9b35b89c213c144c59fe6 gnu: Add libaec.

Retitling bug to reflect outstanding issue.

live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.