[arch-general] Packaging: difference between "example documentation config" and "default config"
j.l.k at gmx.com
Wed May 28 03:52:12 EDT 2014
there are two kinds of config files shipped with Arch packages:
1) "example documentation config" - by this I mean sample config files,
intended for documentation purposes
2) "default config" - by this I mean configs containing sensible default values
uncommented to provide basic functionality ootb
One of the recognition signs is that in Arch, 2) configs are usually very short.
Some examples of proper "default configs":
and of "example documentation configs":
Now the problem is: should "example documentation configs" be installed in /etc/
or /usr/share/doc/<package>/ ? I'd vote for the latter, here is the reasoning:
1) Users will hardly overwrite files in /usr/share/doc/ so keeping "example
documentation configs" there will ease maintenance of short and much clearer
separate config files.
2) In the examples above, in all dnsmasq, wpa_supplicant and hostapd, the
decision to keep the configs under /etc/ is made in PKGBUILD , , . In
case of wpa_supplicant, wpa_supplicant.conf(5) even indicates that the path to
example config is "probably" /usr/share/doc/wpa_supplicant/.
3) Keeping "example documentation configs" with uncommented options under /etc/
might lead to unintended behaviour, meaning the default options might not be
very sane. Specifically, /etc/wpa_supplicant/wpa_supplicant.conf has multiple
network blocks uncommented, which, in conjunction with the recently introduced
dhcpcd hook , may lead to wpa_supplicant being started without user's
intervention and not failing due to the network blocks uncommented in
4) Considering the user-centric clause in the Arch Way , I don't think any
default config file for the three packages is necessary as anybody using it will
have to modify it. Creating the file instead of modifying some bloated sample
should be easier, see point 1).
Before I submit bug reports for the three packages (dnsmasq, wpa_supplicant,
hostapd), I'd like to hear some more opinions about this. Thanks,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: not available
More information about the arch-general