From b8ecaccc1bd6fc546ec7db76e582f65f2134a28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Walenciak?= Date: Fri, 24 Apr 2026 23:27:55 +0200 Subject: [PATCH] Fix FreeBSD workflow --- .github/workflows/freebsd-build-qt6.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/freebsd-build-qt6.yml b/.github/workflows/freebsd-build-qt6.yml index ae26815..6b38f23 100644 --- a/.github/workflows/freebsd-build-qt6.yml +++ b/.github/workflows/freebsd-build-qt6.yml @@ -19,7 +19,32 @@ jobs: uses: vmactions/freebsd-vm@v1 with: usesh: true + # Pin to a stable FreeBSD release. The default image tracks + # FreeBSD CURRENT (15), whose pkg(8) binary repository is + # regularly broken (e.g. "truncated reply for + # signature_fingerprints" leaves the ports catalogue unreadable + # and no packages installable). + release: "14.2" prepare: | + # Switch pkg(8) from the default "quarterly" repo to "latest" so + # Qt6 and its dependencies (notably pcre2) come from the same + # build slice. Otherwise Qt6 may link against a newer pcre2 than + # the one available, producing runtime errors like + # "libpcre2-16.so.0: version PCRE2_10.47 required by + # libQt6Core.so.6 not defined". + mkdir -p /usr/local/etc/pkg/repos + sed 's|/quarterly|/latest|' /etc/pkg/FreeBSD.conf \ + > /usr/local/etc/pkg/repos/FreeBSD.conf + # The "latest" repo is already built against a newer userland + # (14.3) than the 14.2 VM, so tell pkg(8) to proceed anyway. + export IGNORE_OSVERSION=yes + echo "IGNORE_OSVERSION=yes" >> /usr/local/etc/pkg.conf + pkg update -f + # Upgrade packages already on the image (installed from the + # quarterly repo) so their shared libraries match what the + # newly installed Qt6 expects. Without this, pcre2 can stay at + # an older version while Qt6 links against a newer one. + pkg upgrade -y pkg install -y \ cmake \ ninja \