From 7980930cf7aee32bb1efbb23e3305195b70cf5d4 Mon Sep 17 00:00:00 2001 From: jhoyt4 Date: Mon, 12 Feb 2024 19:22:45 -0500 Subject: [PATCH] Github workflow: Fix python link error on macOS Homebrew recently shifted to python3.12 as the default python on some but not all versions of macOS. This fix resolves a package linking issue experienced when installing python based packages. --- .github/workflows/buildmaster.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildmaster.yml b/.github/workflows/buildmaster.yml index ce242c33d31..42395ce23ff 100644 --- a/.github/workflows/buildmaster.yml +++ b/.github/workflows/buildmaster.yml @@ -100,13 +100,17 @@ jobs: env: OS_VERS: ${{ matrix.os }} run: | - brew update + ${PKGMGR_CMD} update + ${PKGMGR_CMD} unlink python + ${PKGMGR_CMG} brew install python@3.12 + ${PKGMGR_CMD} link --overwrite python@3.12 ${PKGMGR_CMD} install pkg-config ccache qt5 nasm libsamplerate taglib\ lzo libcec libbluray libass libhdhomerun dav1d x264 x265 libvpx \ openssl sound-touch lame freetype libass libiconv libxml2 libzip \ XviD zlib pyenv-virtualenv python-lxml python-requests \ python-setuptools ${PKGMGR_CMD} link qt5 --force + ${PKGMGR_CMD} link python --force # macos-14 updated the linker and needs to be run in "classic" mode case $OS_VERS in macos-14)