www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17022] New: brew install dmd has a bug in its creation of

https://issues.dlang.org/show_bug.cgi?id=17022

          Issue ID: 17022
           Summary: brew install dmd has a bug in its creation of dmd.conf
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: timothee.cour2 gmail.com

brew install dmd has a bug in its creation of dmd.conf:

$homebrew_D/etc/dmd.conf should be a symlink (eg to
../Cellar/dmd/2.072.1/etc/dmd.conf)

just like 

$homebrew_D/bin/dmd is a symlink to ../Cellar/dmd/2.072.1/bin/dmd


Without it, it causes conflict issues when using several versions of dmd:

brew install dmd (subsequent versions, eg 2.071.1 2.072.1)

$homebrew_D/Cellar/dmd/2.071.1/bin/dmd --help|grep Config
Config file: $homebrew_D/etc/dmd.conf

$homebrew_D/Cellar/dmd/2.072.1/bin/dmd --help|grep Config
Config file: $homebrew_D/etc/dmd.conf

=> they use the same dmd.conf, which is incorrect.

--
Dec 23 2016