Bug 17022 – brew install dmd has a bug in its creation of dmd.conf
Status
RESOLVED
Resolution
INVALID
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2016-12-23T10:42:14Z
Last change time
2020-08-06T16:25:38Z
Assigned to
No Owner
Creator
Timothee Cour
Comments
Comment #0 by timothee.cour2 — 2016-12-23T10:42:14Z
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.
Comment #1 by dlang-bugzilla — 2017-06-26T01:36:19Z
Err, I'm not sure who maintains the brew recipe for dmd, but I don't think it's anyone from the core team, so I think this bug was filed in the wrong place.
Comment #2 by pro.mathias.lang — 2020-08-06T16:25:38Z
Homebrew does not support multiple versions installed at the same time, so I don't fix there's a bug here.