diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
| commit | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch) | |
| tree | 1269efa852935b183daae4bb33a58d1b4d2ffb53 /.github/scripts/verify-macos-artifacts.sh | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to '.github/scripts/verify-macos-artifacts.sh')
| -rwxr-xr-x | .github/scripts/verify-macos-artifacts.sh | 14 |
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 */*) ;; |
