summaryrefslogtreecommitdiff
path: root/.github/scripts/verify-macos-artifacts.sh
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-10-20 22:35:06 +0100
committerDave Hibberd <hibby@debian.org>2026-10-20 22:35:06 +0100
commit82ebb1ed1af30cee4dfbb1c628431d32885a00e0 (patch)
tree1a1f782d3e576b758be0bc61171574a7cd8f2376 /.github/scripts/verify-macos-artifacts.sh
parent061658210acb6425517733ea012dda803a7f72a1 (diff)
parent61d684922b0f1c8455cc60eb3d123df058c9e1f5 (diff)
Merge tag 'debian/3.3.0_beta2+dfsg-1' into hibbian/trixie-backports
tagging wsjtx 3.3.0~beta2+dfsg-1
Diffstat (limited to '.github/scripts/verify-macos-artifacts.sh')
-rwxr-xr-x.github/scripts/verify-macos-artifacts.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/.github/scripts/verify-macos-artifacts.sh b/.github/scripts/verify-macos-artifacts.sh
index 981e60d6..5caf31e0 100755
--- a/.github/scripts/verify-macos-artifacts.sh
+++ b/.github/scripts/verify-macos-artifacts.sh
@@ -9,6 +9,7 @@ Verifies Mach-O files under PATH for:
* expected architecture
* deployment target not newer than --target
* no package-manager runtime library references
+ * no Qt load dependencies in jt9
Package-manager paths are always rejected:
/opt/homebrew, /usr/local/Cellar, /usr/local/opt, /opt/local
@@ -146,9 +147,20 @@ check_file() {
fi
install_name=$(otool -arch "$arch" -D "$file" 2>/dev/null | awk 'NR == 2 { print $1 }' || true)
- refs=$(otool -arch "$arch" -L "$file" 2>/dev/null | awk 'NR > 1 { print $1 }' || true)
+ if ! refs=$(otool -arch "$arch" -L "$file" 2>/dev/null | awk 'NR > 1 { print $1 }'); then
+ echo "::error file=${file}::Could not inspect Mach-O load dependencies"
+ return 1
+ fi
while IFS= read -r ref; do
[ -n "$ref" ] || continue
+ if [ "${file##*/}" = jt9 ]; then
+ case "${ref##*/}" in
+ Qt*|libQt*)
+ echo "::error file=${file}::jt9 must not depend on Qt: ${ref}"
+ fail=1
+ ;;
+ esac
+ fi
if [ "$ref" = "$install_name" ]; then
case "$ref" in
*/*) ;;