]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: rpm: selinux-policy fixes 24136/head
authorBrad Hubbard <bhubbard@redhat.com>
Fri, 17 Nov 2017 01:54:38 +0000 (11:54 +1000)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 18 Sep 2018 00:02:31 +0000 (17:02 -0700)
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>
(cherry picked from commit ee4f172f983aaaa7f2c1b674084e0f12591bc0ea)

ceph.spec.in

index bb394f06b35dddf1fede8bfeb669b6c5b219f62f..e516de57b40dbc62159ff503a89c645cfce48a21 100644 (file)
@@ -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}