Make dub part of the standard dmd distribution

weaselcat via Digitalmars-d digitalmars-d at
Sun May 31 22:34:51 PDT 2015

On Monday, 1 June 2015 at 05:27:00 UTC, Manu wrote:
> On 1 June 2015 at 14:57, weaselcat via Digitalmars-d
> <digitalmars-d at> wrote:
>> On Monday, 1 June 2015 at 03:48:31 UTC, Manu wrote:
>>> On 1 June 2015 at 09:01, Andrei Alexandrescu via Digitalmars-d
>>> <digitalmars-d at> wrote:
>>>> Let's make this part of 2.068:
>>>> It's preapproved. Who would want to work on it?
>>> Please declare a standard unix location for D 'includes'. 
>>> Nobody
>>> agrees where in the filesystem D files should be.
>>> I use /usr/include/d2/ for my stuff (I saw it precedented a 
>>> few times
>>> before, but it doesn't seem that great), but I want a 
>>> standard place
>>> that stuff bundled by linux package managers can agree on.
>>> As for dub, I'd use it if it worked like a package manager; 
>>> dub get
>>> libcurl-d libqt-d zlib-d libsdl2-d etc
>>> I have no use for it as a build system, and therefore it's 
>>> expression
>>> of dependencies is no use to me. I just want something that 
>>> works the
>>> same way as '-dev' packages already work perfectly well in 
>>> linux, that
>>> is, they fetch headers and libs, and put them in a standard 
>>> location
>>> that all the tooling can find.
>> run dub fetch --help
> Interesting. I'm amazed this never came up before in 
> discussion...
> I've talked about this so many times.
> So, DMD/LDC/GDC know where to look to find these packages? What
> happens if the package includes a binary lib?
dub uses git to manage packages, it keeps the list of D packages 

the help is a bit unintuitive, it just gives a brief overview 
with dub --help, you have to issue a subcommand to get the help 
about it.

> That that, I still want someone to declare an official path for 
> D
> 'includes' in the *nix filesystem, so D lib packages have 
> somewhere to
> install...

the problem is that XDG didn't really define a standard for 
user-level libraries and binaries, so it's a huge mess.

Dub is actually violating part of the XDG standard as is because 
it defaults to ~/.dub

More information about the Digitalmars-d mailing list