Skip to content

Commit

Permalink
Merge pull request qgis#54628 from agiudiceandrea/backport-54616-to-q…
Browse files Browse the repository at this point in the history
…ueued_ltr_backports

[Backport queued_ltr_backports] Fix MingW64 build
  • Loading branch information
m-kuhn committed Sep 17, 2023
2 parents e6295e2 + 626fd40 commit 9d62602
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mingw64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
- uses: actions/checkout@v3

- name: Update system
run: dnf5 -y update
run: dnf -y update

- name: Install core dependencies
run: dnf5 -y install zip
run: dnf -y install zip

- name: Install build dependencies
run: ./ms-windows/mingw/mingwdeps.sh
Expand Down
5 changes: 1 addition & 4 deletions ms-windows/mingw/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ mkdir -p "$BUILDDIR"
(
CRSSYNC_BIN=$(readlink -f "$SRCDIR")/build/output/bin/crssync
cd "$BUILDDIR"
rpm --eval "%{mingw64_cmake}" > mingw64-cmake.sh
sed -i -e 's/%__cmake/cmake/' mingw64-cmake.sh
chmod +x mingw64-cmake.sh
./mingw$bits-cmake.sh \
mingw$bits-cmake \
-DCMAKE_CROSS_COMPILING=1 \
-DUSE_CCACHE=ON \
-DCMAKE_BUILD_TYPE=$buildtype \
Expand Down
2 changes: 1 addition & 1 deletion ms-windows/mingw/mingwdeps.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

dnf5 install -y --nogpgcheck \
dnf install -y --nogpgcheck \
mingw64-dlfcn \
mingw64-exiv2 \
mingw64-fcgi \
Expand Down

0 comments on commit 9d62602

Please sign in to comment.