Skip to content

Commit

Permalink
Support rebuilding on Ubuntu 24.04 (#176)
Browse files Browse the repository at this point in the history
* rebuilding on Ubuntu 24.04 æsupport

* use Node 18 for bundled tests

* modify both configs

* add missing endif

* include `features.h`

* check against glibc and not gcc
  • Loading branch information
mmomtchev authored Aug 30, 2024
1 parent adcdeb9 commit 9e51e19
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:

strategy:
matrix:
linux-version: [ 'amazonlinux:2022' ]
linux-version: [ 'amazonlinux:2022', 'ubuntu:24.04' ]

steps:
- uses: actions/checkout@v4
Expand All @@ -105,7 +105,7 @@ jobs:
with:
max-size: 1000M
key: distros-bundled-${{ matrix.linux-version }}
- run: npm run container dev ${{ matrix.linux-version }} 16 bundled
- run: npm run container dev ${{ matrix.linux-version }} 18 bundled
env:
MOCHA_TEST_NETWORK: ${{ github.event.inputs.testNetwork }}

Expand Down
6 changes: 6 additions & 0 deletions deps/libnetcdf/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@
#define USE_HDF5 1
#define USE_NETCDF4 1
#define USE_NETCDF_2 1

#include <gnu/libc-version.h>
#include <features.h>
#if __GLIBC_PREREQ(2, 38)
#define HAVE_STRLCAT 1
#endif
#endif

#ifdef WIN32
Expand Down
6 changes: 6 additions & 0 deletions deps/libnetcdf/netcdf/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@
#define USE_HDF5 1
#define USE_NETCDF4 1
#define USE_NETCDF_2 1

#include <gnu/libc-version.h>
#include <features.h>
#if __GLIBC_PREREQ(2, 38)
#define HAVE_STRLCAT 1
#endif
#endif

#ifdef WIN32
Expand Down

0 comments on commit 9e51e19

Please sign in to comment.