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