From a0030c2c4fc23fd344dc5f8d9b2c18bc0d7c6b39 Mon Sep 17 00:00:00 2001 From: binLep Date: Sun, 27 Apr 2025 11:29:50 +0800 Subject: update the search regex for installing packages --- xmake/modules/utils/binary/deplibs.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/modules/utils/binary/deplibs.lua') diff --git a/xmake/modules/utils/binary/deplibs.lua b/xmake/modules/utils/binary/deplibs.lua index cb6b230e0..48002f5d8 100644 --- a/xmake/modules/utils/binary/deplibs.lua +++ b/xmake/modules/utils/binary/deplibs.lua @@ -81,7 +81,7 @@ function _get_all_depends_by_objdump(binaryfile, opt) else if line:startswith("NEEDED") then local filename = line:split("%s+")[2] - if filename and filename:endswith(".so") or filename:find("%.so%.%d+$") then + if filename and filename:endswith(".so") or filename:find("%.so[%.%d+]+$") then depends = depends or {} table.insert(depends, filename) end @@ -122,7 +122,7 @@ function _get_all_depends_by_ldd(binaryfile, opt) line = splitinfo[1] end line = line:gsub("%(.+%)", ""):trim() - local filename = line:match(".-%.so$") or line:match(".-%.so%.%d+") + local filename = line:match(".-%.so$") or line:match(".-%.so[%.%d+]+$") if filename then depends = depends or {} table.insert(depends, filename:trim()) -- cgit v1.3.1