From 3d6e5f16842a416ef2fa1400bd815d05341ea0c7 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sat, 12 Jul 2025 11:50:37 +0200 Subject: [PATCH] Do not build the Perl bindings during make distcheck Fails on bot Linux and Mac for different reasons. On Linux: ERROR: files left after uninstall: ./lib/x86_64-linux-gnu/perl/5.40.1/Hamlib.pm ./lib/x86_64-linux-gnu/perl/5.40.1/auto/Hamlib/Hamlib.so ./lib/x86_64-linux-gnu/perl/5.40.1/auto/Hamlib/.packlist ./lib/x86_64-linux-gnu/perl/5.40.1/perllocal.pod make[1]: *** [Makefile:921: distuninstallcheck] Error 1 On Mac: Can't load 'blib/arch/auto/Hamlib/Hamlib.bundle' for module Hamlib: dlopen(blib/arch/auto/Hamlib/Hamlib.bundle, 0x0001): Library not loaded: /Users/runner/work/Hamlib/Hamlib/hamlib-4.7~git/_inst/lib/libhamlib.4.dylib Referenced from: <0FE3328D-6834-37EA-9827-03864B87CEA4> /Users/runner/work/Hamlib/Hamlib/hamlib-4.7~git/_build/sub/bindings/blib/arch/auto/Hamlib/Hamlib.bundle Reason: tried: '/Users/runner/work/Hamlib/Hamlib/hamlib-4.7~git/_inst/lib/libhamlib.4.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/work/Hamlib/Hamlib/hamlib-4.7~git/_inst/lib/libhamlib.4.dylib' (no such file), '/Users/runner/work/Hamlib/Hamlib/hamlib-4.7~git/_inst/lib/libhamlib.4.dylib' (no such file) at /opt/homebrew/opt/perl/lib/perl5/5.40/darwin-thread-multi-2level/DynaLoader.pm line 210. at blib/lib/Hamlib.pm line 11. --- .github/workflows/c-cpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 681ee26c6..44db443ad 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -91,7 +91,7 @@ jobs: run: make -j 4 V=0 --no-print-directory - name: make distcheck if: runner.os != 'macOS' - run: make distcheck V=0 --no-print-directory AM_DISTCHECK_CONFIGURE_FLAGS="${{ matrix.configure_args }}" + run: make distcheck V=0 --no-print-directory AM_DISTCHECK_CONFIGURE_FLAGS="${{ matrix.configure_args }} --without-perl-binding" - name: make distcheck on macOS if: runner.os == 'macOS' - run: make distcheck V=0 --no-print-directory AM_DISTCHECK_CONFIGURE_FLAGS="${{ matrix.configure_args }} --without-lua-binding PYTHON=/opt/homebrew/bin/python3" + run: make distcheck V=0 --no-print-directory AM_DISTCHECK_CONFIGURE_FLAGS="${{ matrix.configure_args }} --without-perl-binding --without-lua-binding PYTHON=/opt/homebrew/bin/python3"