On 06/03/2013 01:30 AM, Ellery Newcomer wrote:
On 06/02/2013 04:12 PM, Russel Winder wrote:
On Sun, 2013-06-02 at 16:03 -0700, Ellery Newcomer wrote:
[…]
$ objdump -p libphobos2.so | grep SONAME
SONAME libphobos2.so.0.63
Exactly, the actual file should have the fully qualified soname and all
other filenames should be symbolic links to that file. Currently the DMD
deb reverses this and therefore violates the standard for deb
installation.
actually, your resource above says that the soname should have the format
lib{lib}.so.X
and the real name should have the format
lib{lib}.so.X.Y.Z
where
X = version number
Y = minor version number
Z = release number
so the generated .so itself violates the standard.
Currently the Phobos make file generates: libphobos2.so.0.63.0 and
creates two simlinks libphobos2.so and libphobos2.so.0.63, and sets the
soname to libphobos2.s0.0.63.
The soname currently includes the minor version number because the
compatibility currently breaks every release, when the phobos abi is
more stable it should be removed from the soname.
--
Mike Wey