Re: The dmd.conf rant

2015-04-02 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-02 02:33, Martin Nowak wrote: o current directory o home directory o exe directory (windows) o directory off of argv0 o SYSCONFDIR (default=/etc/) (non-windows) This sucks. -- /Jacob Carlborg

Re: The dmd.conf rant

2015-04-01 Thread Daniel Murphy via Digitalmars-d
ketmar wrote in message news:mfft3m$2uuc$6...@digitalmars.com... actually, the fix is very easy: ditch idgen.d in favor of old idgen.c, and patch makefile. both can be done automatically (i did). whoa, i can build DMD without problems again! Not exactly a long-term solution.

Re: The dmd.conf rant

2015-04-01 Thread Daniel Murphy via Digitalmars-d
Martin Nowak wrote in message news:mffl5h$107q$1...@digitalmars.com... ### conclusion The lookup order for the config file should be changed to the following. - next to dmd binary (highest precedence so that I can have multiple installations) - per-user conf folder (HOME) (to override the

Re: The dmd.conf rant

2015-04-01 Thread Oren Tirosh via Digitalmars-d
On Wednesday, 1 April 2015 at 02:29:05 UTC, Martin Nowak wrote: [...] ### conclusion The lookup order for the config file should be changed to the following. - next to dmd binary (highest precedence so that I can have multiple installations) - per-user conf folder (HOME) (to override the

Re: The dmd.conf rant

2015-04-01 Thread ketmar via Digitalmars-d
On Wed, 01 Apr 2015 19:16:09 +1100, Daniel Murphy wrote: ketmar wrote in message news:mfft3m$2uuc$6...@digitalmars.com... actually, the fix is very easy: ditch idgen.d in favor of old idgen.c, and patch makefile. both can be done automatically (i did). whoa, i can build DMD without

Re: The dmd.conf rant

2015-04-01 Thread Andrei Alexandrescu via Digitalmars-d
On 3/31/15 9:43 PM, Martin Nowak wrote: That's only half of the story, because without a config dmd doesn't know where to find druntime/phobos or how to link a binary. Everything can be specified in the command line. -- Andrei

Re: The dmd.conf rant

2015-04-01 Thread Daniel Murphy via Digitalmars-d
ketmar wrote in message news:mfgdjf$2uuc$6...@digitalmars.com... sure, but it works for now, and will work for a long time, as DDMD transition is a lenghty process. Hopefully not too lengthy!

Re: The dmd.conf rant

2015-04-01 Thread Martin Krejcirik via Digitalmars-d
On Wednesday, 1 April 2015 at 02:29:05 UTC, Martin Nowak wrote: The lookup order for the config file should be changed to the following. - next to dmd binary (highest precedence so that I can have multiple installations) - per-user conf folder (HOME) (to override the system-wide config) -

Re: The dmd.conf rant

2015-04-01 Thread ketmar via Digitalmars-d
On Wed, 01 Apr 2015 22:36:39 +1100, Daniel Murphy wrote: ketmar wrote in message news:mfgdjf$2uuc$6...@digitalmars.com... sure, but it works for now, and will work for a long time, as DDMD transition is a lenghty process. Hopefully not too lengthy! i hope too, as i really want to work

Re: The dmd.conf rant

2015-04-01 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-01 07:00, H. S. Teoh via Digitalmars-d wrote: On Wed, Apr 01, 2015 at 04:28:43AM +0200, Martin Nowak via Digitalmars-d wrote: The lookup order for the config file should be changed to the following. - next to dmd binary (highest precedence so that I can have multiple installations)

Re: The dmd.conf rant

2015-04-01 Thread Martin Nowak via Digitalmars-d
On Wednesday, 1 April 2015 at 07:10:20 UTC, Andrei Alexandrescu wrote: Everything can be specified in the command line. -- Andrei This might be a feasible approach for dlang.org or phobos (it's already tedious there), but this doesn't work when you actually want to use a compiler from the

Re: The dmd.conf rant

2015-04-01 Thread Martin Nowak via Digitalmars-d
On Wednesday, 1 April 2015 at 19:20:14 UTC, Dicebot wrote: The way I have set it up personally, there is a single /etc/dmd.conf for latest released package and bunch of ~/devel/dlang-X/bin folders, each with own dmd binary and own dmd.conf side by side with that dmd binary - all added to PATH.

Re: The dmd.conf rant

2015-04-01 Thread Dicebot via Digitalmars-d
The way I have set it up personally, there is a single /etc/dmd.conf for latest released package and bunch of ~/devel/dlang-X/bin folders, each with own dmd binary and own dmd.conf side by side with that dmd binary - all added to PATH. Seems to pick up the matching one depending on which

The dmd.conf rant

2015-03-31 Thread Martin Nowak via Digitalmars-d
tl;dr, please reconsider changing the conf order or splitting the conf file https://github.com/D-Programming-Language/dmd/pull/4256#issuecomment-88316771 That dmd.conf is driving me crazy. I need a dmd.conf in my dmd repo, so that I can use dmd-master. It wouldn't work without a config and

Re: The dmd.conf rant

2015-03-31 Thread ketmar via Digitalmars-d
On Wed, 01 Apr 2015 03:19:07 +, deadalnix wrote: On Wednesday, 1 April 2015 at 02:54:27 UTC, Andrei Alexandrescu wrote: On 3/31/15 7:28 PM, Martin Nowak wrote: That dmd.conf is driving me crazy. Me too! I made the complaint some time ago and was told my setup was wrong. I stopped

Re: The dmd.conf rant

2015-03-31 Thread Martin Nowak via Digitalmars-d
On 04/01/2015 04:54 AM, Andrei Alexandrescu wrote: I don't understand this part. -conf= should essentially remove all notion of .conf files whatsoever. That's only half of the story, because without a config dmd doesn't know where to find druntime/phobos or how to link a binary. You really

Re: The dmd.conf rant

2015-03-31 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 01, 2015 at 04:28:43AM +0200, Martin Nowak via Digitalmars-d wrote: [...] That dmd.conf is driving me crazy. No kidding, after idgen.d got merged, I had to spend about an *hour* trying to figure out how to get things to build with the right conf files. [...] ### conclusion The

Re: The dmd.conf rant

2015-03-31 Thread deadalnix via Digitalmars-d
On Wednesday, 1 April 2015 at 02:54:27 UTC, Andrei Alexandrescu wrote: On 3/31/15 7:28 PM, Martin Nowak wrote: That dmd.conf is driving me crazy. Me too! I made the complaint some time ago and was told my setup was wrong. I stopped using master since then, I have no time to fix my build

Re: The dmd.conf rant

2015-03-31 Thread Andrei Alexandrescu via Digitalmars-d
On 3/31/15 7:28 PM, Martin Nowak wrote: That dmd.conf is driving me crazy. Me too! We learned the same from dlang.org https://github.com/D-Programming-Language/dlang.org/pull/758#issuecomment-74294012, adding the `-conf=` switch didn't solve the actual problem and created new ones. I don't