diff options
| author | Remi Collet <remi@remirepo.net> | 2026-06-05 12:25:29 +0200 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-06-05 12:25:29 +0200 |
| commit | 6f26d8487aa754b2c0fc2817736c24f2d1ca3be1 (patch) | |
| tree | ae316326e47a2346e571cfa67426ec76215eb815 | |
| parent | 8dc9e883ab2ef2f2c1b372ca437f3db9de4100e0 (diff) | |
https://github.com/remicollet/remirepo/issues/323
| -rw-r--r-- | php80.spec | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,6 +1,6 @@ # remirepo spec file for php80 SCL metapackage # -# SPDX-FileCopyrightText: Copyright 2018-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2018-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # @@ -21,7 +21,7 @@ Summary: Package that installs PHP 8.0 Name: %scl_name Version: 8.0 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL-2.0-or-later Source0: macros-build @@ -47,6 +47,7 @@ that install PHP 8.0 language. Summary: Package that handles %scl Software Collection. Requires: scl-utils Requires: environment-modules +Requires(post): %{_root_bindir}/grep Requires(post): %{_root_sbindir}/semanage %if 0%{?fedora} >= 42 || 0%{?rhel} >= 11 Requires(post): %{_root_bindir}/selinuxenabled @@ -202,6 +203,9 @@ ln -s %{_mandir}/man1/php-cgi.1.gz %{buildroot}%{_root_mandir}/man1/php-cgi.1.gz semanage fcontext -a -e / %{?_scl_root} &>/dev/null || : semanage fcontext -a -e %{_root_sysconfdir} %{_sysconfdir} &>/dev/null || : semanage fcontext -a -e %{_root_localstatedir} %{_localstatedir} &>/dev/null || : +grep -q '^%{_localstatedir}' /etc/selinux/targeted/contexts/files/file_contexts.subs \ + || echo "%{_localstatedir} %{_root_localstatedir}" >>/etc/selinux/targeted/contexts/files/file_contexts.subs \ + || : selinuxenabled && load_policy || : restorecon -R %{?_scl_root} &>/dev/null || : restorecon -R %{_sysconfdir} &>/dev/null || : @@ -243,6 +247,10 @@ restorecon -R %{_localstatedir} &>/dev/null || : %changelog +* Fri Jun 5 2026 Remi Collet <remi@remirepo.net> 8.0-5 +- workaround for selinux context on /var/opt + https://github.com/remicollet/remirepo/issues/323 + * Fri Feb 14 2025 Remi Collet <remi@remirepo.net> 8.0-4 - F42: fix dependencies - re-license spec file to CECILL-2.1 |
