D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3529 - Use of /etc discouraged in FreeBSD for third party applications.
Summary: Use of /etc discouraged in FreeBSD for third party applications.
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All FreeBSD
: P3 normal
Assignee: No Owner
URL:
Keywords: bootcamp
Depends on:
Blocks:
 
Reported: 2009-11-19 20:15 UTC by Travis Boucher
Modified: 2024-12-13 17:51 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Travis Boucher 2009-11-19 20:15:51 UTC
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 Dmitry Olshansky 2018-05-16 09:07:21 UTC
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 anonymous4 2018-05-16 11:42:50 UTC
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 dlangBugzillaToGithub 2024-12-13 17:51:00 UTC
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