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