From b099bf56239c6d5acec22255d74a455b8a3c4781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Wed, 15 Nov 2023 11:18:08 +0100 Subject: [PATCH 1/3] Setup Python 3.11 for fontconfig --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c1ca32f84c139b..cccdf7b2c89ec1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -103,6 +103,12 @@ jobs: run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT working-directory: ${{ matrix.vcpkg_path }} + # python3-distutils is required for fontconfig but it has been removed in Python 3.12 + - name: Setup Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Bootstrap vcpkg run: ${{ matrix.vcpkg_bootstrap }} working-directory: ${{ matrix.vcpkg_path }} From efc42022a5f821fcc494a6cc178a33aa29d83a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Wed, 15 Nov 2023 11:05:50 +0100 Subject: [PATCH 2/3] automake and pkg-config is already installed --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cccdf7b2c89ec1..43084d825c347a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -116,7 +116,7 @@ jobs: - name: "[macOS] Bootstrap vcpkg" if: runner.os == 'macOS' run: | - brew update && brew install nasm automake pkg-config + brew update && brew install nasm /bin/bash -c "sudo xcode-select --switch /Applications/Xcode_12.4.app/Contents/Developer" xcrun --show-sdk-version - name: Set up cache From 71ea2cd44c331cefd600cf8860e456328f22056e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Thu, 16 Nov 2023 07:16:55 +0100 Subject: [PATCH 3/3] Comment the nasm requirement CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:619 (message): Could not find nasm. Please install it via your package manager: brew install nasm Call Stack (most recent call first): ports/ffmpeg/portfile.cmake:31 (vcpkg_find_acquire_program) scripts/ports.cmake:147 (include) error: building ffmpeg:x64-osx-min1012 failed with: BUILD_FAILED --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43084d825c347a..f519255e462cb6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,6 +113,7 @@ jobs: run: ${{ matrix.vcpkg_bootstrap }} working-directory: ${{ matrix.vcpkg_path }} + # FFmpeg requires nasm - name: "[macOS] Bootstrap vcpkg" if: runner.os == 'macOS' run: |