From 5bd76bcf76c12f91a3236bcedb0353a2d2f2fde9 Mon Sep 17 00:00:00 2001 From: Marcus Geelnard Date: Mon, 6 Mar 2023 20:05:26 +0100 Subject: [PATCH] CI: Install a newer version of texinfo for macOS This fixes the makeinfo errors in binutils on macOS. --- .github/workflows/build-toolchain.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build-toolchain.yml b/.github/workflows/build-toolchain.yml index 18842cf..160da5e 100644 --- a/.github/workflows/build-toolchain.yml +++ b/.github/workflows/build-toolchain.yml @@ -77,6 +77,12 @@ jobs: autoconf automake bison bzip2 curl dos2unix flex gawk gzip libzstd-devel make p7zip perl tar texinfo + - name: Install macOS packages + if: ${{ runner.os == 'macOS' }} + run: | + brew update + brew install texinfo + - name: Build toolchain env: CC: "${{ matrix.config.cc }}" @@ -90,6 +96,12 @@ jobs: find ./ext -iname "*.texi" -exec dos2unix -q '{}' \; fi + # Override the antiquated system makeinfo on macOS with the one installed by brew. + # This solves build errors in the binutils/bfd documentation (2023-02-07). + if [ "${{ runner.os }}" == "macOS" ] ; then + export PATH="/usr/local/opt/texinfo/bin:$PATH" + fi + if [ "${{ matrix.config.build_type }}" == "docker" ] ; then ./build-in-docker.sh else