mirror of
https://github.com/ceph/ceph
synced 2025-01-29 14:34:40 +00:00
build/ops: rpm: selinux-policy fixes
Requiring the file /usr/share/selinux/devel/policyhelp breaks fc27 and Rawhide builds as they do not have that file. This exposed the fact this code had not worked in some time due to changes in selinux policy modules packaging. See https://bugzilla.redhat.com/show_bug.cgi?id=999584 Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
This commit is contained in:
parent
c662dc3067
commit
ee4f172f98
@ -44,7 +44,7 @@
|
||||
|
||||
%if %{with selinux}
|
||||
# get selinux policy version
|
||||
%{!?_selinux_policy_version: %global _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null || echo 0.0.0)}
|
||||
%{!?_selinux_policy_version: %global _selinux_policy_version 0.0.0}
|
||||
%endif
|
||||
|
||||
%{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
|
||||
@ -100,7 +100,6 @@ BuildRequires: sharutils
|
||||
%if 0%{with selinux}
|
||||
BuildRequires: checkpolicy
|
||||
BuildRequires: selinux-policy-devel
|
||||
BuildRequires: /usr/share/selinux/devel/policyhelp
|
||||
%endif
|
||||
%if 0%{with make_check}
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
|
Loading…
Reference in New Issue
Block a user