Shared library packaging issues
Jordi Sayol via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 15 06:35:48 PST 2014
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,
--
Jordi Sayol
More information about the Digitalmars-d
mailing list