Bug 3529 – Use of /etc discouraged in FreeBSD for third party applications.

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
FreeBSD
Creation time
2009-11-19T20:15:51Z
Last change time
2024-12-13T17:51:00Z
Keywords
bootcamp
Assigned to
No Owner
Creator
Travis Boucher
Moved to GitHub: dmd#17509 →

Comments

Comment #0 by boucher.travis — 2009-11-19T20:15:51Z
Normally /etc is only used for system-specific configuration in FreeBSD. /usr/local/etc is the preferred place to put third party configuration files. PREFIX=/usr/local $PREFIX/etc - Configuration $PREFIX/bin - Binaries $PREFIX/lib - Libraries $PREFIX/include - Headers $PREFIX/libexec - Executables not meant to be used directly by end users (eg. desktop applets for gnome end up here, as do binaries that get executed via wrapper scripts in $PREFIX/bin) Doing this would make it easier to not only install on a FreeBSD machine, but maintain consistency with other applications on all unix platforms (including linux). Rule of thumb for FreeBSD: Install to /usr/local Rule of thumb for Linux: Install to /usr/local if doing it yourself, install to /usr if being installed via a distribution package. Fairly trivial to implement, maybe a define being used? -DINIFILE="/usr/local/etc/dmd.conf"
Comment #1 by dmitry.olsh — 2018-05-16T09:07:21Z
I do not understand which component this relates to if any. Certainly not a compiler problem per see. Will assign it to installer as a normal issue.
Comment #2 by dfj1esp02 — 2018-05-16T11:42:50Z
What the installer is supposed to do? According to documentation https://dlang.org/dmd-freebsd.html#dmd-conf compiler won't read /usr/local/etc/dmd.conf and -conf option seemingly overrides the configuration search sequence.
Comment #3 by robert.schadek — 2024-12-13T17:51:00Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17509 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB