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