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

Set FFI SONAME to fips203-ffi crate major version #7

Merged
merged 2 commits into from
May 1, 2024

Conversation

dkg
Copy link
Contributor

@dkg dkg commented May 1, 2024

SONAME represents the backward-compatible API for a C shared object.

Using the major version number for this seems like a reasonable first pass, given the semver semantics.


Note that it would be better if Cargo handled this automatically itself: rust-lang/cargo#5045 But in the meantime, it isn't unreasonable to just drop it in explicitly.

dkg added 2 commits April 30, 2024 22:45
SONAME represents the backward-compatible API for a C shared object.

Using the major version number for this seems like a reasonable first
pass, given the semver semantics.
When doing an initial build against a library with an SONAME, the
resulting ELF object stores the SONAME, not the literal filename that
was found for linking.

To make the test run correctly, we symlink the SONAME to the resultant
object.

This is a bit janky, for at least two reasons.

- it would be better to have the shared object be named with the
SONAME in the first place -- if we want to, then we can symlink to it
without the SONAME.

- if we have to find the SONAME in ffi/tests/Makefile, we should
really be able to derive the SONAME from the info in ffi/Cargo.toml
instead of hard-coding it in ffi/tests/Makefile
@integritychain integritychain merged commit 4242795 into integritychain:main May 1, 2024
30 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.

None yet

2 participants