
Am 15.12.20 um 13:35 schrieb Dominique Leuenberger / DimStar:
On Tue, 2020-12-15 at 09:39 +0100, Eric Schirra wrote:
Am 2020-12-15 08:40, schrieb Arjen de Korte:
According to https://en.opensuse.org/openSUSE:Packaging_PHP
PHP applications should put PHP files under /usr/share/php/{<Vendor Name> or <Application Name>}.
Currently, the /usr/share/php directory is not in the filesystem package and also not provided by PHP{7,8}. Should this directory be provided by PHP{7,8} or should packages create this directory themselves as needed? Or should packages install in the /usr/share/php{7,8} instead? Why should a php-web-application go under this directory? This is totally illogical and not reproducible. For me a web application should be under /srv/www. It's not a "normal" application. It's application which runs under one server.
There is actually a technical argument to all this as well:
/srv is a separate btrfs volume. So if a packag installs to /srv/…, then an admin that a snapshot rollback, the RPM database O(in /usr) is being rolled back, referencing the old package, but the files on /srv stay non-rolled back, as it is intentionally split out.
/srv is for the admin to populate his data, non-packaged stuff, there we do not want a system-rollback to revert the admin (and potenitally even user data) files.
Cheers, Dominique
Hi Dominique! This is the point! RPMs should not place content in the /srv/ directory. I'm also providing some packages (mediawiki, processire) which actually can provide multiple, sym-linked instances of the same software in different path - where the source is a single directory under /usr/shared/. If the package is directly stored under /usr/shared/ or under /usr/shared/php is not that important (INHO), but AppArmor configuration could be a point for /usr/shared/php. Best regards, Johannes
_______________________________________________ openSUSE Factory mailing list -- factory@lists.opensuse.org To unsubscribe, email factory-leave@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/factory@lists.opensuse.org
-- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna