Bug#83669: Shared libraries
>>>>> "Frank" == Frank Belew <frb@ximian.com> writes:
Frank> --snip -- You have to watch this one. We've found that
Frank> things like rep require the la in the main package, not the
Frank> dev due to linking to libltdl. This one was somewhat hard
Frank> to discover since everyone always seems to have the -dev
Frank> package installed as well.
In that case, consider a possible solution:
libx.la is renamed by debian/rules to libx.la.1.2.3
At postinst of non-dev package:
ln -sf libx.so.1.2.3 libx.so.1
ln -sf libx.la.1.2.3 libx.la
This way neither libx.so.1 or libx.la will conflict. The sym-link is
adjusted/removed, as required when the package is removed.
However, (I need to check this) libx.la needs to refer to the oldest
library (oldest minor version; major version is the same), and
libx.so.1 needs to refer to the newest library, this is so things will
work correctly for link-time and run-time.
(probably some dh_* helper program would do this stuff automatically
so individual maintainers do not have to worry.)
--
Brian May <bam@debian.org>
Reply to: