]> tinc-vpn.org Git - tinc/commitdiff
Add workarounnd for bug in LZO2 header files
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 1 Apr 2026 20:32:15 +0000 (22:32 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 1 Apr 2026 20:32:15 +0000 (22:32 +0200)
The header <lzo1x.h> includes <lzo/lzoconf.h>, which should have been
<lzoconf.h>, or the pkg-config file is wrong. This is mainly an issue on
macOS when installing LZO2 via Homebrew.

.github/workflows/test.yml

index 00087eb031778da966784acb06b58d7542dc60bc..c8741740a4157e7610c18450c1de9d7db00b67d3 100644 (file)
@@ -302,14 +302,14 @@ jobs:
         run: sh .ci/deps.sh
 
       - name: Run tests with default settings
-        run: sh .ci/test/run.sh default
+        run: CFLAGS=/opt/homebrew/include sh .ci/test/run.sh default
 
       - name: Run tests without legacy protocol
-        run: sh .ci/test/run.sh nolegacy
+        run: CFLAGS=/opt/homebrew/include sh .ci/test/run.sh nolegacy
         if: always()
 
       - name: Run tests with libgcrypt
-        run: sh .ci/test/run.sh gcrypt
+        run: CFLAGS=/opt/homebrew/include sh .ci/test/run.sh gcrypt
         if: always()
 
       - name: Upload test results