Skip to content

Commit

Permalink
patches for ubuntu 24-04 (#42)
Browse files Browse the repository at this point in the history
* patches for ubuntu 24-04 compilers

* trunk patches obsoleted (upstreamed)

---------

Co-authored-by: mo-marqh <mo-marqh@users.no-reply.github.com>
  • Loading branch information
mo-marqh and mo-marqh authored Dec 19, 2024
1 parent 05954b7 commit 213cc1a
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1,244 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/buildTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build_test:
name: build test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
version: [XIOS/trunk@2252, XIOS2/trunk, XIOS3/trunk]
Expand All @@ -29,6 +29,8 @@ jobs:
if [ ${{ matrix.version }} == 'XIOS3/trunk' ]; then
sed -i 's/<variable_group id="parameters" >/<variable_group id="parameters" > <variable id="transport_protocol" type="string" >p2p<\/variable>/g' generic_testcase/iodef.xml
cat generic_testcase/iodef.xml
elif [ ${{ matrix.version }} == 'XIOS/trunk@2252' ]; then
patch -p0 < ../patches/xios2/compilePatches.r2252.patch
fi
./make_xios --job 2 --arch GCC_LINUX_APT --debug
cd ..
Expand Down
49 changes: 49 additions & 0 deletions patches/xios2/compilePatches.r2252.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Index: extern/remap/src/earcut.hpp
===================================================================
--- extern/remap/src/earcut.hpp (revision 2252)
+++ extern/remap/src/earcut.hpp (working copy)
@@ -7,7 +7,7 @@
#include <vector>
#include <limits>
//#include <tuple>
-//#include <cstdint>
+#include <cstdint>
//#include <cstddef>

namespace mapbox {
Index: extern/remap/src/elt.hpp
===================================================================
--- extern/remap/src/elt.hpp (revision 2252)
+++ extern/remap/src/elt.hpp (working copy)
@@ -2,6 +2,7 @@
#define __ELT_H__
#include <list>
#include "triple.hpp"
+#include <array>

#define NMAX 10 /**< maximum number of vertices for polygons */

Index: src/io/nc4_data_output.cpp
===================================================================
--- src/io/nc4_data_output.cpp (revision 2252)
+++ src/io/nc4_data_output.cpp (working copy)
@@ -11,6 +11,7 @@
#include "exception.hpp"
#include "timer.hpp"
#include "uuid.hpp"
+#include <cfloat>
namespace xios
{
/// ////////////////////// Dfinitions ////////////////////// ///
Index: src/xios_spl.hpp
===================================================================
--- src/xios_spl.hpp (revision 2252)
+++ src/xios_spl.hpp (working copy)
@@ -16,6 +16,7 @@

// Conteneurs.
#include <vector>
+#include <array>
#include <set>
#include <stack>
#include <list>
Loading

0 comments on commit 213cc1a

Please # to comment.