Skip to content

[fix] xmake install skips SO with version like libfreetype.so.6.20.2#6257

Merged
waruqi merged 2 commits intoxmake-io:devfrom
19317362:dev
Mar 27, 2025
Merged

[fix] xmake install skips SO with version like libfreetype.so.6.20.2#6257
waruqi merged 2 commits intoxmake-io:devfrom
19317362:dev

Conversation

@19317362
Copy link
Contributor

if line:startswith("NEEDED") then
local filename = line:split("%s+")[2]
if filename and filename:endswith(".so") then
if filename and filename:endswith(".so") or filename:match(".-%.so%.%d+") then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use filename:find("%.so%.%d+$") instead of filename:match(".-%.so%.%d+")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code was generated by AI.
filename:find("%.so%.%d+$") works also.

@waruqi waruqi added this to the v2.9.9 milestone Mar 27, 2025
@waruqi waruqi merged commit 7c9b18c into xmake-io:dev Mar 27, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants