Skip to content

Fix issue extracting install name from universal dylib - #13034

Merged
memsharded merged 1 commit into
conan-io:developfrom
jcar87:bugfix/get-dylib-install-name-universal
Feb 8, 2023
Merged

memsharded merged 1 commit into
conan-io:developfrom
jcar87:bugfix/get-dylib-install-name-universal

Conversation

@jcar87

@jcar87 jcar87 commented Feb 2, 2023

Copy link
Copy Markdown
Contributor

Changelog: Bugfix: Fix issue in fix_apple_shared_install_name handling dylib files with multiple architectures (universal).
Docs: Omit

Close: #13014

The otool -D command will report the install name multiple times for dylib files that have multiple architectures (universal binaries). In practice, the values should be the same: this PR causes it to pick the first one encountered. When subsequently calling install_name_tool, it will be correctly replaced in all architectures anyway.

@jcar87
jcar87 requested a review from czoido February 2, 2023 16:10
@jcar87
jcar87 marked this pull request as ready for review February 2, 2023 17:10
@SSE4

SSE4 commented Feb 3, 2023

Copy link
Copy Markdown
Contributor

I don't think it's guaranteed values are always the same.
especially, for the two .dylibs built separately and then joined via lipo.
I suppose returning a dict {"arch": "install_name"} and then iterating over it is more reliable and fail proof.

@memsharded memsharded added this to the 1.59 milestone Feb 8, 2023
@memsharded
memsharded merged commit 3d75e82 into conan-io:develop Feb 8, 2023
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.

[bug] fix_apple_shared_install_name fails for universal dylib binaries

4 participants