]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Relax the selinux policy version for centos builds 32700/head
authorBoris Ranto <branto@redhat.com>
Fri, 17 Jan 2020 14:24:44 +0000 (15:24 +0100)
committerBoris Ranto <branto@redhat.com>
Fri, 17 Jan 2020 14:24:46 +0000 (15:24 +0100)
We are currently running into issues when installing the test builds
produced on centos 8 as these might have older selinux-policy-base
version than is available to the rhel 8 nodes.

We still want the builds produced on RHEL 8 to use the proper version
condition so the %{?centos} macro should help us achieve that, here.

Signed-off-by: Boris Ranto <branto@redhat.com>
ceph.spec.in

index b4792e73134b0c749eba96a3d2c4f003c08f69c6..5a24223f179a1bf0c452e3d8c62f9fad59ad16eb 100644 (file)
 %endif
 %if %{with selinux}
 # get selinux policy version
+# Force 0.0.0 policy version for centos builds to avoid repository sync issues between rhel and centos
+%if %{?centos}
+%global _selinux_policy_version 0.0.0
+%else
 %{!?_selinux_policy_version: %global _selinux_policy_version 0.0.0}
 %endif
+%endif
 
 %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
 %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}