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