From 969855f99e2d43b8ba8c5a68d5c969c666275718 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 5 Jul 2026 10:46:58 +0200 Subject: [PATCH] ci(freebsd): provide a bzip2.pc stub for freetype2 Installing the bzip2 package does not ship a pkg-config file, so freetype2.pc (a transitive requirement of gtkmm-3.0) still failed with 'Package bzip2 ... not found'. bzip2 lives in the FreeBSD base system; write a minimal bzip2.pc before meson setup so pkg-config can resolve it. --- .github/workflows/freebsd.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index 339394f6..68ce22eb 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -29,10 +29,15 @@ jobs: sync_files: runner-to-vm run: | sudo pkg install -y git # subprojects/date - sudo pkg install -y bzip2 catch evdev-proto gtk-layer-shell gtkmm30 jsoncpp \ + sudo pkg install -y catch evdev-proto gtk-layer-shell gtkmm30 jsoncpp \ libdbusmenu libevdev libfmt libmpdclient libudev-devd meson \ pkgconf pipewire pulseaudio scdoc sndio spdlog wayland-protocols upower \ libinotify + # freetype2.pc declares a bzip2 pkg-config requirement that no FreeBSD + # package ships (bzip2 lives in the base system), which breaks the + # gtkmm-3.0 lookup. Drop in a minimal bzip2.pc pointing at base libbz2. + printf 'Name: bzip2\nDescription: bzip2\nVersion: 1.0.8\nLibs: -lbz2\nCflags:\n' \ + | sudo tee /usr/local/libdata/pkgconfig/bzip2.pc >/dev/null meson setup build -Dman-pages=enabled ninja -C build meson test -C build --no-rebuild --print-errorlogs --suite waybar