14f8ab
From bbf43008e6d21d649536547f500662b940562c3e Mon Sep 17 00:00:00 2001
14f8ab
From: Sunny Kumar <sunkumar@redhat.com>
14f8ab
Date: Mon, 11 May 2020 10:02:08 +0100
14f8ab
Subject: [PATCH 373/375] build: geo-rep sub-pkg requires
14f8ab
 policycoreutils-python-utils on rhel8
14f8ab
14f8ab
glusterfs-geo-replication sub-package requires policycoreutils-python-utils
14f8ab
on rhel8 to set relevant selinux boolean to allow rsync.
14f8ab
14f8ab
Backport of:
14f8ab
    >Upstream Patch: https://review.gluster.org/#/c/glusterfs/+/24433/
14f8ab
    >Change-Id: Ia0fdcfdd8c7d18cd194e011f6b365bf5cb70a20a
14f8ab
    >Fixes: #1236
14f8ab
    >Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
14f8ab
14f8ab
BUG: 1825177
14f8ab
Change-Id: Ia0fdcfdd8c7d18cd194e011f6b365bf5cb70a20a
14f8ab
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/200242
14f8ab
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
14f8ab
---
14f8ab
 glusterfs.spec.in | 6 ++++++
14f8ab
 1 file changed, 6 insertions(+)
14f8ab
14f8ab
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
14f8ab
index 5ed07e7..9def416 100644
14f8ab
--- a/glusterfs.spec.in
14f8ab
+++ b/glusterfs.spec.in
14f8ab
@@ -523,6 +523,8 @@ Requires:         util-linux
14f8ab
 Requires:         %{name}-libs%{?_isa} = %{version}-%{release}
14f8ab
 # required for setting selinux bools
14f8ab
 %if ( 0%{?rhel} && 0%{?rhel} >= 8 )
14f8ab
+Requires(post):      policycoreutils-python-utils
14f8ab
+Requires(postun):    policycoreutils-python-utils
14f8ab
 Requires:            selinux-policy-targeted
14f8ab
 Requires(post):      selinux-policy-targeted
14f8ab
 BuildRequires:       selinux-policy-devel
14f8ab
@@ -1978,6 +1980,10 @@ fi
14f8ab
 %endif
14f8ab
 
14f8ab
 %changelog
14f8ab
+
14f8ab
+* Mon May 11 2020 Sunny Kumar <sunkumar@redhat.com>
14f8ab
+- added requires policycoreutils-python-utils on rhel8 for geo-replication
14f8ab
+
14f8ab
 * Tue Aug 27 2019 Hari Gowtham <hgowtham@redhat.com>
14f8ab
 - Added scripts to collect machine stats and component stats (#1719171)
14f8ab
 
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab