cedadev / jasmin_scivm

9 stars 0 forks source link

Please add new ECMWF ecCodes tool #125

Closed agstephens closed 7 years ago

agstephens commented 7 years ago

ECMWF is now transitioning away from grib-api to the ecCodes package.

Please add it to the jasmin_scivm.

https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home

Thanks

alaniwi commented 7 years ago

Got there after some pain :)

The ecCodes package is now somewhat a replacement for grib-api, but we cannot simply drop support for grib_api while user code is still potentially linked against it (as well as JAP packages CDO and Iris in their current builds) and eccodes does not provide libgrib_api.so. ECMWF are continuing to maintain grib_api releases in parallel with ecCodes at present. BUT the two packages conflict because some of the files they provide are the same.

I decided in the end to:

The eccodes RPM is based on a spec file I wrote myself from scratch. The grib_api RPM is based on a spec file written by ECMWF, but now forked from it in order to make the changes described above.

The lines for the release notes are as follows.

=================

The ecCodes package from ECWMF is installed (version 2.4.0). This is the new equivalent of grib_api, although ECMWF are also maintaining "grib_api" in parallel with it.

So that code linked to libgrib_api can continue to run, the "grib_api" package is retained (and upgraded to version 1.23), but a number of files have had to be renamed to avoid conflicts. In particular:

#include <legacy_grib_api/grib_api.h>

======

alaniwi commented 7 years ago

Note that I have packaged it into separate packages to match what has already been done for grib_api, namely:

eccodes-2.4.0-1.el6.x86_64
eccodes-devel-2.4.0-1.el6.x86_64
eccodes-fortran-2.4.0-1.el6.x86_64
eccodes-python27-2.4.0-1.el6.x86_64