Skip to content

Commit ef70707

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 294b21a + 60303aa commit ef70707

File tree

939 files changed

+39767
-13307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

939 files changed

+39767
-13307
lines changed

.github/workflows/asan/test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export SKIP_VIRTUALMEM=YES
1111
export LD_PRELOAD=$(clang -print-file-name=libclang_rt.asan-x86_64.so)
1212
export ASAN_OPTIONS=allocator_may_return_null=1:symbolize=1:suppressions=$PWD/../autotest/asan_suppressions.txt
1313
export LSAN_OPTIONS=detect_leaks=1,print_suppressions=0,suppressions=$PWD/../autotest/lsan_suppressions.txt
14+
export UBSAN_OPTIONS=print_stacktrace=1,suppressions=$PWD/../autotest/ubsan_suppressions.txt
1415
export PYTHONMALLOC=malloc
1516

1617
gdalinfo autotest/gcore/data/byte.tif
@@ -63,6 +64,12 @@ if grep -P '===.*\d+ failed' ./test-output.txt > /dev/null ; then
6364
elif grep '==ABORTING' ./test-output.txt; then
6465
echo 'Tests crashed'
6566
exit 1
67+
elif grep 'UndefinedBehaviorSanitizer' ./test-output.txt; then
68+
echo 'UndefinedBehavior detected'
69+
exit 1
70+
elif grep 'ERROR: LeakSanitizer' ./test-output.txt; then
71+
echo 'Memory leak detected'
72+
exit 1
6673
else
6774
echo 'Tests passed'
6875
fi

.github/workflows/cmake_builds.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ jobs:
318318
- name: Checkout GDAL
319319
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
320320
- name: Install development packages
321-
uses: msys2/setup-msys2@61f9e5e925871ba6c9e3e8da24ede83ea27fa91f # v2.27.0
321+
uses: msys2/setup-msys2@40677d36a502eb2cf0fb808cc9dec31bf6152638 # v2.28.0
322322
with:
323323
msystem: MINGW64
324324
update: true
@@ -417,7 +417,7 @@ jobs:
417417
shell: pwsh
418418
run: |
419419
echo "JAVA_HOME=$env:JAVA_HOME_11_X64" >> %GITHUB_ENV%
420-
- uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1
420+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
421421
with:
422422
activate-environment: gdalenv
423423
miniforge-version: latest
@@ -523,7 +523,7 @@ jobs:
523523
git config --global core.autocrlf false
524524
- name: Checkout GDAL
525525
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
526-
- uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1
526+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
527527
with:
528528
activate-environment: gdalenv
529529
miniforge-version: latest
@@ -555,7 +555,7 @@ jobs:
555555
shell: bash -l {0}
556556
run: |
557557
rm -f build/CMakeCache.txt
558-
cmake -A ${architecture} -G "${generator}" "-DCMAKE_PREFIX_PATH=${CONDA}/envs/gdalenv" -Werror=dev "-DCMAKE_CXX_COMPILER_LAUNCHER=clcache" -DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD} -S "$GITHUB_WORKSPACE" -B "$GITHUB_WORKSPACE/build" -DCMAKE_C_FLAGS=" /WX" -DCMAKE_CXX_FLAGS=" /WX" -DGDAL_USE_EXTERNAL_LIBS:BOOL=OFF -DGDAL_USE_PNG_INTERNAL=OFF -DGDAL_USE_JPEG_INTERNAL=OFF -DGDAL_USE_JPEG12_INTERNAL=OFF -DGDAL_USE_GIF_INTERNAL=OFF -DGDAL_USE_LERC_INTERNAL=OFF -DGDAL_USE_LERCV1_INTERNAL=OFF -DGDAL_USE_QHULL_INTERNAL=OFF -DGDAL_USE_OPENCAD_INTERNAL=OFF -DGDAL_BUILD_OPTIONAL_DRIVERS=OFF -DOGR_BUILD_OPTIONAL_DRIVERS=OFF -DGDAL_ENABLE_DRIVER_DERIVED=ON -DWERROR_DEV_FLAG="-Werror=dev"
558+
cmake -A ${architecture} -G "${generator}" "-DCMAKE_PREFIX_PATH=${CONDA}/envs/gdalenv" -Werror=dev "-DCMAKE_CXX_COMPILER_LAUNCHER=clcache" -DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD} -S "$GITHUB_WORKSPACE" -B "$GITHUB_WORKSPACE/build" -DCMAKE_C_FLAGS=" /WX" -DCMAKE_CXX_FLAGS=" /WX" -DGDAL_USE_EXTERNAL_LIBS:BOOL=OFF -DGDAL_USE_PNG_INTERNAL=OFF -DGDAL_USE_JPEG_INTERNAL=OFF -DGDAL_USE_JPEG12_INTERNAL=OFF -DGDAL_USE_GIF_INTERNAL=OFF -DGDAL_USE_LERC_INTERNAL=OFF -DGDAL_USE_LERCV1_INTERNAL=OFF -DGDAL_USE_QHULL_INTERNAL=OFF -DGDAL_USE_OPENCAD_INTERNAL=OFF -DGDAL_BUILD_OPTIONAL_DRIVERS=OFF -DOGR_BUILD_OPTIONAL_DRIVERS=OFF -DGDAL_ENABLE_DRIVER_DERIVED=ON -DGDAL_VRT_ENABLE_RAWRASTERBAND=OFF -DWERROR_DEV_FLAG="-Werror=dev"
559559
- name: Build
560560
shell: bash -l {0}
561561
run: cmake --build $GITHUB_WORKSPACE/build --config RelWithDebInfo -j 2
@@ -694,7 +694,7 @@ jobs:
694694
git config --global core.autocrlf false
695695
- name: Checkout GDAL
696696
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
697-
- uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1
697+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
698698
with:
699699
activate-environment: gdalenv
700700
python-version: 3.9

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
# We do that after running CMake to avoid CodeQL to trigger during CMake time,
109109
# in particular during HDF5 detection which is terribly slow (https://github.com/OSGeo/gdal/issues/9549)
110110
- name: Initialize CodeQL
111-
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
111+
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
112112
with:
113113
languages: ${{ matrix.language }}
114114
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -128,6 +128,6 @@ jobs:
128128
cmake --build build -j$(nproc)
129129
130130
- name: Perform CodeQL Analysis
131-
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
131+
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
132132
with:
133133
category: "/language:${{matrix.language}}"

.github/workflows/conda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
path: ~/conda_pkgs_dir
5151
key: ${{ runner.os }}-${{ steps.get-date.outputs.today }}-conda-${{ env.CACHE_NUMBER }}
5252

53-
- uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1
53+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
5454
with:
5555
miniforge-version: latest
5656
use-mamba: true

.github/workflows/doc_checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
python3 -m venv create doc_env
3636
. doc_env/bin/activate
3737
python3 -m pip install -r doc/requirements.txt
38+
python3 -m pip install setuptools
3839
echo PATH=$PATH >> $GITHUB_ENV
3940
4041
- name: Build GDAL

.github/workflows/fedora_rawhide/Dockerfile.ci

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ RUN dnf install -y clang make diffutils ccache cmake \
2323
libpq-devel \
2424
libavif-devel \
2525
python3-setuptools python3-pip python3-devel python3-lxml swig \
26-
glibc-gconv-extra
26+
glibc-gconv-extra \
27+
python3-jsonschema python3-pytest python3-pytest-env python3-pytest-sugar \
28+
python3-pytest-benchmark python3-filelock
2729

2830
COPY requirements.txt /tmp/
29-
# One of the dependencies of jsonschema 4.18 is rpds_py which requires a Rust compiler
30-
RUN PYTHON_CMD=python3 && $PYTHON_CMD -m pip install "jsonschema<4.18"
3131
RUN PYTHON_CMD=python3 && $PYTHON_CMD -m pip install -r /tmp/requirements.txt
32-
33-
# Workaround https://bugzilla.redhat.com/show_bug.cgi?id=2332307
34-
RUN PYTHON_CMD=python3 && $PYTHON_CMD -m pip install --force-reinstall numpy

.github/workflows/fedora_rawhide/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22

33
set -e
44

5+
# Disable Curl because network based tests fail since b259dc5f54cf6a1f6ba5fb5bb4484c051d1e7142
56
cmake ${GDAL_SOURCE_DIR:=..} \
6-
-DCMAKE_BUILD_TYPE=Release \
7+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
78
-DCMAKE_C_COMPILER=clang \
89
-DCMAKE_CXX_COMPILER=clang++ \
9-
-DCMAKE_C_FLAGS="-Werror -O1 -D_FORTIFY_SOURCE=2" \
10-
-DCMAKE_CXX_FLAGS="-std=c++20 -Werror -O1 -D_FORTIFY_SOURCE=2" \
10+
-DCMAKE_CXX_STANDARD=23 \
11+
-DCMAKE_C_FLAGS="-Werror -O2 -D_FORTIFY_SOURCE=2" \
12+
-DCMAKE_CXX_FLAGS="-Werror -O2 -D_FORTIFY_SOURCE=2" \
1113
-DCMAKE_SHARED_LINKER_FLAGS="-lstdc++" \
1214
-DUSE_CCACHE=ON \
1315
"-DUSE_PRECOMPILED_HEADERS=ON" \
1416
-DEMBED_RESOURCE_FILES=ON \
1517
-DCMAKE_INSTALL_PREFIX=/usr \
18+
-DGDAL_USE_CURL=OFF \
1619
-DWERROR_DEV_FLAG="-Werror=dev"
1720
make -j$(nproc)
1821
make -j$(nproc) install DESTDIR=/tmp/install-gdal
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# Do not run in parallel to avoid issues with local webserver
6+
ctest -V

.github/workflows/linux_build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
travis_branch: fedora_rawhide
8181
container: fedora_rawhide
8282
build_script: build.sh
83+
test_script: test.sh
8384
os: ubuntu-22.04
8485

8586
- name: Ubuntu 24.04, gcc
@@ -143,6 +144,7 @@ jobs:
143144
- name: Ubuntu 24.04, s390x
144145
id: s390x
145146
container: s390x
147+
travis_branch: s390x
146148
build_script: build.sh
147149
test_script: test.sh
148150
os: ubuntu-22.04

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131

32-
- uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1
32+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
3333
with:
3434
channels: conda-forge
3535
auto-update-conda: true

0 commit comments

Comments
 (0)