www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [phobos] New Linux phobos shared library

reply Jordi Sayol <g.sayol yahoo.es> writes:
 From dmd v2.063, release zip file includes Linux phobos shared libraries. As
shared libraries are needed at runtime too, we should allow to install multiple
versions of phobos shared libs. at same time. If not, every program compiled
against it will be forced to be recompiled every new dmd/phobos release. To
avoid this, phobos shared libs. should include some version number on its name.

I propose to name the shared phobos library as "libphobos2.so.0.nn.0", where
"nn" is the current dmd version. The last zero is just for bug/regression fixes.

As phobos changes its interface (almost) every new release, I propose to set
its SONAME to "libphobos2.so.0.nn", so when phobos become stable we can change
the library name to "libphobos2.so.1.0.0" and its SONAME to "libphobos2.so.1".

Some info about Linux shared libraries:
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

-- 
Jordi Sayol
Jul 08 2013
parent reply "Dicebot" <public dicebot.lv> writes:
On Tuesday, 9 July 2013 at 04:53:01 UTC, Jordi Sayol wrote:
 I propose to name the shared phobos library as 
 "libphobos2.so.0.nn.0", where "nn" is the current dmd version. 
 The last zero is just for bug/regression fixes.
This is exactly naming scheme I am already using in my Arch Linux PKGBUILD, so +1 here :)
Jul 09 2013
parent reply Jordi Sayol <g.sayol yahoo.es> writes:
On 09/07/13 13:37, Dicebot wrote:
 On Tuesday, 9 July 2013 at 04:53:01 UTC, Jordi Sayol wrote:
 I propose to name the shared phobos library as "libphobos2.so.0.nn.0", where
"nn" is the current dmd version. The last zero is just for bug/regression fixes.
This is exactly naming scheme I am already using in my Arch Linux PKGBUILD, so +1 here :)
Thank you! and +1 for you too :-) Programs dynamically links against SONAME, so it's more important than the real library name. What SONAME naming scheme you used in Arch Linux PKGBUILD? -- Jordi Sayol
Jul 09 2013
parent "Dicebot" <public dicebot.lv> writes:
On Tuesday, 9 July 2013 at 14:31:51 UTC, Jordi Sayol wrote:
 Programs dynamically links against SONAME, so it's more 
 important than the real library name.
 What SONAME naming scheme you used in Arch Linux PKGBUILD?
To my shame, default one is (.0.2) is used, completely forgot about it. Will bother an official maintainer as soon as final decision is approved.
Jul 09 2013