CI: fold the platform-library list before matching it

The list spans three lines inside one string, and the case pattern looked for
the name between two spaces - so the last name on each line, followed by a
newline, could never match. libaaudio.so is one of those, and the DirectAudio
relay helper is the first library we ship that needs it.
This commit is contained in:
The412Banner committed 2026-09-21 09:18:20 -04:00
1 parent f542e59a20
commit 849596facb
1 file changed
+3 -1
+3 -1
View File
@@ -172,7 +172,9 @@ jobs:
for so in *.so; do
for need in $(readelf -d "$so" | sed -n 's/.*NEEDED.*\[\(.*\)\]/\1/p'); do
[ -f "$need" ] && continue
case " $SYSTEM " in *" $need "*) continue ;; esac
# $SYSTEM spans lines; unquoted echo folds its newlines to spaces, or the last
# name on each line could never match (libaaudio.so did not, for the relay helper).
case " $(echo $SYSTEM) " in *" $need "*) continue ;; esac
echo "::error::$so needs $need, which is neither in the apk nor a platform library"
fail=1
done