Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change MACH_O compatibility and current versions #1226

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

daviesrob
Copy link
Member

When building libhts.dylib, the compatibility_version and current_version were not being set in the way documented by
Apple - notably they expect current_version to be from the same sequence as, and greater than compatibility_version. See:
https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html

Change the values so current_version is related to the current HTSlib version, and compatibility_version the last one that
introduced a backwards compatible change. As earlier HTSlib releases set compatibility_version to 3, we prepend '3.' to
these numbers so programs linked to earlier versions will still work with libraries built after this change. This will be removed on the next ABI-changing update to the library, which will allow the compatibility_version and current_version sequences to be reset.

Thanks to John Marshall for help with this issue.

Fixes #1144

Replaces and closes #1146

When building libhts.dylib, the  compatibility_version and
current_version were not being set in the way documented by
Apple - notably they expect current_version to be from the
same sequence as, and greater than compatibility_version. See:
https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html

Change the values so current_version is related to the current
HTSlib version, and compatibility_version the last one that
introduced a backwards compatible change.  As earlier HTSlib
releases set compatibility_version to 3, we prepend '3.' to
these numbers so programs linked to earlier versions will still
work with libraries built after this change.  This will be removed
on the next ABI-changing update to the library, which will allow
the compatibility_version and current_version sequences to be
reset.

Thanks to John Marshall for help with this issue.
@whitwham whitwham merged commit 473f8d8 into samtools:develop Feb 12, 2021
@daviesrob daviesrob deleted the mach_o_versions branch February 12, 2021 16:58
jmarshall added a commit to jmarshall/htslib that referenced this pull request Nov 24, 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.

Strange library version numbers
2 participants