[Pkg-d-devel] D packaging in Fedora and Debian

jonathan bioinfornatics at gmail.com
Tue Oct 30 17:57:08 UTC 2012


Le mardi 30 octobre 2012 à 18:18 +0100, Thomas Koch a écrit :
> Bonjour,
> 
> je suis Debian Maintainer et me interese de D. :-)
> 
> Do you read the D forum[1]? Would you like to share your experience of D 
> packaging in fedora there? In Debian we just have gdc and phobos, nothing 
> more.
> 
> [1] http://forum.dlang.org/group/digitalmars.D
> 
> Where do you install libraries? /usr/lib/d? Do you ship the full D sourcecode 
> as a kind of header files? Where do you install those? /usr/include/d? Which 
> compilers are in Fedora? How do you handle the license issues with dmd? 
> 
> Which compiler do you use for packaging? How do you solve incompatibilities of 
> different compilers? As I understood, you can't combine binaries produced by 
> different compilers, unlike C.
> 
> Which build system do you prefer and recommend to be packaged?
> 
> Debian has a mailing list for D packaging which has been silent for the last 
> years. Maybe you'd still want to subscribe and tell us your experience. See:
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-d-devel
> and the horribly outdated wikipage http://wiki.debian.org/D
> 
> Maybe we could develop a shared D packaging policy for Fedora and Debian? Is 
> there a mailing list for D packaging in Fedora?
> 
> Best regards,
> 
> Thomas Koch, http://www.koch.ro

Hi,

In first you are are welcome :-)
i do not know if i need to use French or English language, so we will
start with English.

Fedora provides ldc2, phobos, druntime, gl3n, dsqlite, dutsmite,
derelict and maybe some others 

why ldc2 ?
-> dmd is not free, fedora allow only free project
-> gdc not yet into fedora as gdc is not yet part of gcc so we waiting
gcc approval

In fedora we need to use dynamic library over static and any D project
builder do no support it you need to patch it. 
They do not generate header file but they copy source files into include
dir ...
In more often they do not use standard path, you need patch it.
And they another special case their D project builder do not suffix
library by : -ldc -gdc -dmd to give libFoo-ldc.so ...

For this reason i created this makefile
https://github.com/bioinfornatics/MakefileForD

it should :
- support all current compiler 
- able to build both library / executable
- build in //
- support shared lib
- generate pkgconfig file ( could be useful fr developer using the given
project )
- generate geany tag to get completion from geany editors
- generate header file .di

- bin        go to /usr/bin
- lib in 32  go to /usr/lib
- lib in 64  go to /usr/lib64
- header     go to /usr/include/d



you are welcome



-- 
Bioinfornatics at fedoraproject dot org
- Fedora Packager
- package own: ldc, phobos, druntime, gtkd, derelict, gl3n, gljm




More information about the Pkg-d-devel mailing list