Package Details: cdo 2.3.0-0

Git Clone URL: https://aur.archlinux.org/cdo.git (read-only, click to copy)
Package Base: cdo
Description: Command line tool manipulate and analyse Climate model Data. Supported data formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
Upstream URL: https://code.zmaw.de/projects/cdo
Licenses: BSD
Submitter: graziano
Maintainer: ram
Last Packager: ram
Votes: 18
Popularity: 0.000009
First Submitted: 2006-12-18 15:21 (UTC)
Last Updated: 2023-10-20 09:21 (UTC)

Latest Comments

1 2 3 4 Next › Last »

kompetenzbolzen commented on 2024-11-24 10:19 (UTC)

The problem was indeed fixed. This now works.

diff --git a/PKGBUILD b/PKGBUILD
index 9c65f54..d64867f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
 # Maintainer: Ralf Mueller <stark.dreamdetective@gmail.com>
 # Contributor: Ralf Mueller <stark.dreamdetective@gmail.com>
 pkgname=cdo
-pkgver=2.3.0
-fileID=29019
+pkgver=2.4.4
+fileID=29649
 pkgrel=0
 pkgdesc="Command line tool manipulate and analyse Climate model Data. Supported data formats are GRIB, netCDF, SERVICE, EXTRA and IEG."
 url="https://code.zmaw.de/projects/cdo"
@@ -16,7 +16,7 @@ arch=(i686 x86_64)
 backup=()
 install=
 source=(https://code.zmaw.de/attachments/download/${fileID}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('10c878227baf718a6917837527d4426c2d0022cfac4457c65155b9c57f091f6b')
+sha256sums=('49f50bd18dacd585e9518cfd4f55548f692426edfb3b27ddcd1c653eab53d063')

 build() {
   cd "$srcdir/$pkgname-$pkgver"

hol430 commented on 2024-05-27 02:03 (UTC)

This is an upstream problem which should be fixed in the cdo 2.4.1 release, but in the meantime, this patch allows me to build the package:

diff --git a/PKGBUILD b/PKGBUILD
index 9c65f54..ec255a9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,8 +15,16 @@ replaces=()
 arch=(i686 x86_64)
 backup=()
 install=
-source=(https://code.zmaw.de/attachments/download/${fileID}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('10c878227baf718a6917837527d4426c2d0022cfac4457c65155b9c57f091f6b')
+source=("https://code.zmaw.de/attachments/download/${fileID}/${pkgname}-${pkgver}.tar.gz"
+        "header.patch")
+sha256sums=('10c878227baf718a6917837527d4426c2d0022cfac4457c65155b9c57f091f6b'
+            'e40f52b9913437ccab63bcf23cff79fb1ef89151ba78e5ff3b1ed3d01135a004')
+
+prepare() {
+  echo "srcdir=${srcdir}"
+  cd cdo-${pkgver}
+  patch -Np1 -i "${srcdir}/header.patch"
+}

 build() {
   cd "$srcdir/$pkgname-$pkgver"
diff --git a/header.patch b/header.patch
new file mode 100644
index 0000000..502430f
--- /dev/null
+++ b/header.patch
@@ -0,0 +1,56 @@
+diff --unified --recursive --text cdo-2.3.0.orig/src/Bitrounding.cc cdo-2.3.0/src/Bitrounding.cc
+--- cdo-2.3.0.orig/src/Bitrounding.cc  2024-05-27 11:14:03.327387427 +1000
++++ cdo-2.3.0/src/Bitrounding.cc   2024-05-27 11:34:39.032185750 +1000
+@@ -5,6 +5,7 @@
+ 
+ */
+ 
++#include <algorithm>
+ #include <cdi.h>
+ 
+ #include "process_int.h"
+diff --unified --recursive --text cdo-2.3.0.orig/src/cdo_options.cc cdo-2.3.0/src/cdo_options.cc
+--- cdo-2.3.0.orig/src/cdo_options.cc  2024-05-27 11:14:03.310720777 +1000
++++ cdo-2.3.0/src/cdo_options.cc   2024-05-27 11:34:35.868845553 +1000
+@@ -5,6 +5,7 @@
+ 
+ */
+ 
++#include <algorithm>
+ #include "config.h"
+ 
+ #include <cdi.h>
+diff --unified --recursive --text cdo-2.3.0.orig/src/cdo_varlist.cc cdo-2.3.0/src/cdo_varlist.cc
+--- cdo-2.3.0.orig/src/cdo_varlist.cc  2024-05-27 11:14:03.334054088 +1000
++++ cdo-2.3.0/src/cdo_varlist.cc   2024-05-27 11:34:34.908843472 +1000
+@@ -4,7 +4,7 @@
+   Author: Uwe Schulzweida
+ 
+ */
+-
++#include <algorithm>
+ #include "cdo_varlist.h"
+ #include "cdo_cdi_wrapper.h"
+ #include "cdo_output.h"
+diff --unified --recursive --text cdo-2.3.0.orig/src/remap_utils.cc cdo-2.3.0/src/remap_utils.cc
+--- cdo-2.3.0.orig/src/remap_utils.cc  2024-05-27 11:14:03.307387446 +1000
++++ cdo-2.3.0/src/remap_utils.cc   2024-05-27 11:34:32.938839202 +1000
+@@ -5,6 +5,7 @@
+ 
+ */
+ 
++#include <algorithm>
+ #include "remap_utils.h"
+ #include "param_conversion.h"
+ #include "cdo_output.h"
+diff --unified --recursive --text cdo-2.3.0.orig/src/Timstat2.cc cdo-2.3.0/src/Timstat2.cc
+--- cdo-2.3.0.orig/src/Timstat2.cc 2024-05-27 11:14:03.334054088 +1000
++++ cdo-2.3.0/src/Timstat2.cc  2024-05-27 11:34:37.632182712 +1000
+@@ -11,6 +11,7 @@
+         Timstat2        timcor      correlates two data files on the same grid
+ */
+ 
++#include <algorithm>
+ #include <cdi.h>
+ 
+ #include "process_int.h"

bakamotokatas commented on 2024-05-15 14:00 (UTC)

I get the same error as mo0zi

mo0zi commented on 2024-05-15 10:17 (UTC)

Hi

yay -S cdo
AUR Explicit (1): cdo-2.3.0-0
...
Bitrounding.cc: In function ‘int get_keepbits(const MutualInformation&, double)’:
Bitrounding.cc:81:18: error: ‘clamp’ is not a member of ‘std’
   81 |   int nsb = std::clamp(keepMantissaBits, 1, 23);
      |                  ^~~~~
Bitrounding.cc: In member function ‘void ModuleBitrounding::run()’:
Bitrounding.cc:415:36: error: ‘clamp’ is not a member of ‘std’
  415 |                         nsb = std::clamp(nsb, params.minBits, params.maxBits);
      |                                    ^~~~~
make[2]: *** [Makefile:2785: cdo-Bitrounding.o] Error 1
...
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: cdo-exit status 4

ram commented on 2021-11-04 17:11 (UTC) (edited on 2021-11-04 17:11 (UTC) by ram)

update to CDO-2.0.0
  • compile flags are generalized to -O3
  • CDO does not enforce static linking
  • package updates to all its dependencies can cause runtime linking error (proj, magics++, netcdf, hdf5, udunits2, ...) - please rebuild the AUR pkg again in that case

For general building problems not related to AUR, please use the CDO project web page: https://code.mpimet.mpg.de/projects/cdo/boards

I do check this regular - AUR notification usually get lost in the rain of daily mails, sry

Vitrum-cnkj34kr8 commented on 2021-06-03 16:35 (UTC) (edited on 2021-06-03 16:35 (UTC) by Vitrum-cnkj34kr8)

@pmav99 If I remember correctly, cdo links a bunch of libraries statically, so you need to rebuild cdo every time you are updating these libs.

pmav99 commented on 2021-06-03 16:14 (UTC)

The package compiles, but when trying to run I get

cdo: error while loading shared libraries: libproj.so.15: cannot open shared object file: No such file or directory

I guess the problem is that proj version 8 came out and the libproj.so.XX number changed from 15 to 22.

Making a symlink does resolve this.

ram commented on 2021-05-10 09:27 (UTC)

thx for the hints - I simplified the flags a bit ;-)