From a0df828f291ae120511bf76d05d3d2259d9aee24 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 23 Dec 2024 19:02:18 +0100 Subject: [PATCH] linux_and_macos.yml: Patch ax_check_gl.m4 on demand to fix macOS CI --- .github/workflows/linux_and_macos.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/linux_and_macos.yml b/.github/workflows/linux_and_macos.yml index 7e0f06c0..9390c217 100644 --- a/.github/workflows/linux_and_macos.yml +++ b/.github/workflows/linux_and_macos.yml @@ -101,6 +101,15 @@ jobs: portaudio \ sdl12-compat + # Patch ax_check_gl.m4 of autoconf-archive 2024.10.16 as needed + # https://github.com/Homebrew/homebrew-core/issues/202234 + set -x -o pipefail + ax_check_gl_m4=/usr/local/Cellar/autoconf-archive/2024.10.16/share/aclocal/ax_check_gl.m4 + if [[ -e "${ax_check_gl_m4}" ]] && ! grep -qF '[m4_fatal' "${ax_check_gl_m4}" ; then + wget -O- https://github.com/autoconf-archive/autoconf-archive/commit/427e226a2fe3980388abffd6de25ed6b9591cce3.patch \ + | sudo patch -N "${ax_check_gl_m4}" + fi + - name: Setting dynamic environment variables run: |- set -x