[Bug 300997] New: Installing config files to /usr/share/config violates Filesystem Hierarchy Standard
florian.petran at googlemail.com
florian.petran at googlemail.com
Fri Jun 1 15:25:21 BST 2012
https://bugs.kde.org/show_bug.cgi?id=300997
Bug ID: 300997
Severity: minor
Version: unspecified
Priority: NOR
Assignee: unassigned-bugs at kde.org
Summary: Installing config files to /usr/share/config violates
Filesystem Hierarchy Standard
Classification: Unclassified
OS: Linux
Reporter: florian.petran at googlemail.com
Hardware: Other
Status: UNCONFIRMED
Component: general
Product: kde
Currently, KDE products install their config files to /usr/share/config, but
this violates the Filesystem Hierarchy Standard. It states (p.18):
"/usr is shareable, read-only data. That means that /usr
should be shareable between various FHS-compliant hosts and must not be written
to. Any information that is host-specific or varies with time is stored
elsewhere." [1]
And on p. 22:
"The /usr/share hierarchy is for all read-only architecture independent data
files.This hierarchy is intended to be shareable among all architecture
platforms of a given OS; thus, for example, a site with i386, Alpha, and PPC
platforms might maintain a single /usr/share directory that is
centrally-mounted. [...] Any program or package which contains or requires data
that doesn’t need to be modified should store that data in /usr/share (or
/usr/local/share, if installed locally)." [1]
Since config files make only sense when they are occasionally written to, it is
a violation of the FHS to keep them under /usr or /usr/share. I propose that
the config files be moved to a subdirectory under /etc like /etc/kde.
[1] http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.pdf
Reproducible: Always
Seen in KDE 4.8 but AFAIK applies to current git as well. Checked Linux under
OS, but it applies to all OS that honor FHS, such as the *BSDs.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list