On lundi, 21 mars 2016 15.21:11 h CET Johannes Weberhofer wrote:
Am 21.03.2016 um 15:03 schrieb Ludwig Nussel:
Hi,
https://en.opensuse.org/openSUSE:Packaging_guidelines#Web_Applications suggest to package "web applications" to /srv/www/%name. I see two major problems with that
1. /srv is considered admin space so packages should not mess with it. Citing FHS¹: "... no program should rely on a specific subdirectory structure of /srv existing or data necessarily being stored in /srv ... Distributions must take care not to remove locally placed files in these directories without administrator permission" 2. For the reason that admins are expected to put files in /srv that are not tracked by package management, /srv is a default btrfs subvolume. That means anything installed in /srv is excluded from the default system snapshots. Ie rollbacks of packages that install code in /srv won't have any effect and the rpm database would not reflect what's actually running anymore.
Therefore I'd like to propose to change the section to the following:
Web applications packaged in openSUSE should place their their files in /etc, /usr, /var etc depending on type just like any other application would do. A package must not install, remove or otherwise modify /srv content as it's use is reserved to the admin according to FHS¹. It's ok to allow the admin to configure the software to use /srv of course.
cu Ludwig
[1] http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYS...
I fully agree to the suggested change. This simplifies cross-distro-packaging, too.
Johannes Weberhofer
Get one +1 from here too. Is there ary deep search that can be run against the content (at least factory, and perhaps devel repo) to grab a list of impacted package to open a series of bug against them ? Ludwig, any idea about the calendar for the RFC ( like a state of this should be fixed, higher warning, badness 10000000 :-) you would like to see ? -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org