Re: Using project version in soname: is it OK?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/19/2018 11:07 PM, Alois Mahdal wrote:
Hi Fedora!

TL;DR: What do experienced C/C++ packagers think about this PR,
considering potential future appearance in Fedora?

     https://github.com/naelstrof/slop/pull/94

Using the project version for soname is usually a bad idea, because soname is related to ABI compatibility, while project releases are not.

If you upgrade a package containing a shared library with an soname depending on the project version, you'll break the compatibility with compiled programs using the shared library, even if the ABI has not effectively changed.

That's why you better avoid changing the soname when not needed.
Please note also that setting an soname is generally a developer's task, not a packager one.

Libtool implements a "version info" feature from which the soname is derived. The derivation itself is platform-dependent. There's some hints and explanation in libtool doc: https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html With this convention, the real soname computation can be performed properly on each platform, depending on the system supported ABI compatibility.

See also my comment for the curl project (uses libtool) at https://curl.haxx.se/mail/lib-2010-02/0130.html
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux