From 7c3d3ac0e566a01c45f3e8c46af8893f57b3a64c Mon Sep 17 00:00:00 2001 From: ComixHe Date: Thu, 9 Jan 2025 15:22:55 +0800 Subject: [PATCH] chore: ldd-check ignores some libs which under /opt Signed-off-by: ComixHe --- misc/libexec/linglong/builder/helper/ldd-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/libexec/linglong/builder/helper/ldd-check.sh b/misc/libexec/linglong/builder/helper/ldd-check.sh index e723dedfb..3e81199f2 100755 --- a/misc/libexec/linglong/builder/helper/ldd-check.sh +++ b/misc/libexec/linglong/builder/helper/ldd-check.sh @@ -130,7 +130,7 @@ main() { # remove all library which from /runtime local oldIFS="${IFS}" - IFS=" " read -r -a dependLibs <<<"$(echo "${dependLibs[@]}" | tr ' ' '\n' | grep -v "/runtime" | tr '\n' ' ' || true)" + IFS=" " read -r -a dependLibs <<<"$(echo "${dependLibs[@]}" | tr ' ' '\n' | grep -v "^/opt\|^/runtime" | tr '\n' ' ' || true)" IFS="${oldIFS}" # the rest of the library may from /usr/[lib|lib32|lib64]