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

Load libsecret by its SONAME, libsecret-1.so.0 #13927

Merged
merged 1 commit into from
May 20, 2024

Commits on May 17, 2024

  1. Load libsecret by its SONAME, libsecret-1.so.0

    The library name `libsecret-1.so` is only found in `-dev` or `-devel`
    packages on many distros, and it's usually only a symlink. For example,
    this is what I have on Fedora:
    
        /usr/lib64/libsecret-1.so -> libsecret-1.so.0
        /usr/lib64/libsecret-1.so.0 -> libsecret-1.so.0.0.0
        /usr/lib64/libsecret-1.so.0.0.0
    
        $ rpm -qf /usr/lib64/libsecret*
        libsecret-devel-0.21.4-2.fc40.x86_64
        libsecret-0.21.4-2.fc40.x86_64
        libsecret-0.21.4-2.fc40.x86_64
    
    The middle `libsecret-1.so.0` filename matches the actual `SONAME` in
    the library, which you can see with `readelf -d`, and this is what
    programs built directly against this library will use. It's a better
    choice for dynamic loaders too, so devel packages aren't needed.
    cuviper committed May 17, 2024
    Configuration menu
    Copy the full SHA
    4ee7b9c View commit details
    Browse the repository at this point in the history