(In reply to Petr Gajdos from comment #4) > Adding some maintainers, which could be interested. > > > >>>Requires: group(www) > > >>>Requires: user(wwwrun) > > >>>%attr(0755, %{apache_user}, root) %dir %{_localstatedir}/lib/%{php_name} > > >>>%attr(0755, %{apache_user}, root) %dir %{_localstatedir}/lib/%{php_name} > > Feel free to correct me, this alone does not imply overwrite of permissions > after upgrade, it just ensures it is in certain form. In simple case -- when > certain hack Stanislav (thank you) hinted is not used -- then it will be > jusst overwritten during php8 upgrade anyway. > > This is perhaps a bit Apache-centric, yes, even %{apache_user} could be > replaced by wwwrun string in the spec instead; nevertheless wwwrun and www > sound neutral. We seem to not be alone: > https://stackoverflow.com/questions/9203320/php-fpm-and-nginx-session- > problems > > Ideas welcome. > > Note I'll probably not be able to touch this bug next few weeks. It might be worth trying using conditional builds >>>%bcond_with and %bcond_without https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html