The D ecosystem in Debian with free-as-in-freedom DMD
Matthias Klumpp via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 11 08:48:08 PDT 2017
On Tuesday, 11 April 2017 at 15:31:46 UTC, David Nadlinger wrote:
> On Tuesday, 11 April 2017 at 12:38:01 UTC, Matthias Klumpp
> wrote:
>> If you could change the SOVERSION with every one of these
>> changes, or simply just tie it to the respective Phobos
>> release, distributions would automatically do the right thing
>> and compile all D code using Phobos against the new version.
>
> As you mention, this is already done in LDC; not just the
> Debian packages, but also upstream. The soname will always be
> `libphobos2-ldc.so.74` or what have you.
>
> (Thinking about it, it should probably include the patch
> version as well, although we haven't had a situation so far
> where we would have wanted to release multiple LDC versions for
> ABI-incompatible patch releases.)
Phobos is versioned properly in both GDC and LDC, and as long as
that continues, no problems exist at all :-)
https://packages.debian.org/search?suite=stretch&keywords=phobos
This would - as said - also work for other D shared libraries,
unless the D ABI in general breaks or someone tries to build a
program with GDC and uses a library that was built with LDC or
DMD (or any other possible compiler combination).
More information about the Digitalmars-d
mailing list