Shared library packaging issues

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 16 18:40:40 PST 2014


Am Sat, 15 Nov 2014 15:35:48 +0100
schrieb Jordi Sayol via Digitalmars-d
<digitalmars-d at puremagic.com>:

> El 15/11/14 a les 12:21, GreatEmerald via Digitalmars-d ha escrit:
> 
> > Ideally, this problem would be solved by splitting libphobos2.so into its own package.
> 
> Since dmd v2.064.0, a shared phobos2 library package already exist for Debian based systems:
> <http://downloads.dlang.org/releases/2014/libphobos2-66_2.066.1-0_i386.deb>
> <http://downloads.dlang.org/releases/2014/libphobos2-66_2.066.1-0_amd64.deb>
> 
> As every dmd release breaks libphobos2 API, these deb packages can be installed in diverse versions at same time.
> I.e. "libphobos2-65_2.065.0-0_amd64.deb" and "libphobos2-66_2.066.1-0_amd64.deb" can be installed together. This allow to have diverse dmd programs linked to diverse libphobos2 shared libraries at the same system.
> 
> > Second, what's the suggested method of providing includes? Put all the source of the library into includes? Make .di files? What about templates? Is there a suggested directory structure?
> 
> The default path for "d" and "di" sources should be "/usr/include/d/".
> DMD deb packages uses "/usr/include/dmd/" to avoid sources conflict with the ldc sources packaged for Debian.
> 
> Regards,

Exactly a year ago I created a poll[1] about the include path
and 65% voted for "dlang" over just "d". We should stick to
"/usr/include/dlang" now for a consistent experience across
distributions. Compilers' import paths are less of an issue as
they are either built-in or configured in dmd.conf. But for
build tools it would be nice if imports for library X could
always be found in "/usr/include/dlang/X/".

[1]
http://forum.dlang.org/thread/20131112205019.12585bbd@marco-leise


-- 
Marco



More information about the Digitalmars-d mailing list