libdfx.so currently has no SONAME/SOVERSION defined, which breaks a number of things when creating distro packages (e.g. Ubuntu packages in my case). For instance, when trying to compute shared library dependencies from dfx-mgr on libdfx, dpkg-shlibdeps wont be able to extract the name of the library from libdfx.so, and the dfx-mgr binary won't properly have a libdfx "NEEDED" dependency on the lib.
Typically, libraries shipped in linux distros will:
be shared libraries (really rare to have static libraries unless they change ABI all the time, and even then distros tend to prefer using shared libraries and rebuilding the reverse dependencies)
provide some guarantees on API stability
aim for ABI stability as long as possible, and bump the SONAME when an incompatible change really has to land
For now, while creating packaging aimed at Ubuntu, I've worked around this by defining an Ubuntu specific SONAME "0ubuntu1" with this change:
So now, the packaged library properly appears with a "SONAME" property (objdump -x libdfx.so | grep SONAME) of libdfx.0ubuntu1, and I also get a libdfx.so symlink that I can ship in the libdfx-dev package.
Obviously, having to track ABI/API downstream in the Ubuntu packaging is cumbersome as it creates Ubuntu specific binaries, extra work and a risk of errors, so it'd be awesome if you could document API/ABI guarantees and define a SONAME in your releases so that all projects downstream of libdfx use the same SONAME. :-)
Hi!
libdfx.so currently has no SONAME/SOVERSION defined, which breaks a number of things when creating distro packages (e.g. Ubuntu packages in my case). For instance, when trying to compute shared library dependencies from dfx-mgr on libdfx, dpkg-shlibdeps wont be able to extract the name of the library from libdfx.so, and the dfx-mgr binary won't properly have a libdfx "NEEDED" dependency on the lib.
Typically, libraries shipped in linux distros will:
For now, while creating packaging aimed at Ubuntu, I've worked around this by defining an Ubuntu specific SONAME "0ubuntu1" with this change:
So now, the packaged library properly appears with a "SONAME" property (objdump -x libdfx.so | grep SONAME) of libdfx.0ubuntu1, and I also get a libdfx.so symlink that I can ship in the libdfx-dev package.
Obviously, having to track ABI/API downstream in the Ubuntu packaging is cumbersome as it creates Ubuntu specific binaries, extra work and a risk of errors, so it'd be awesome if you could document API/ABI guarantees and define a SONAME in your releases so that all projects downstream of libdfx use the same SONAME. :-)
Thanks!