256ebe
From aa73240892a7072be68772370fd95173e6e77d10 Mon Sep 17 00:00:00 2001
256ebe
From: Atin Mukherjee <amukherj@redhat.com>
256ebe
Date: Mon, 21 Mar 2016 17:07:00 +0530
256ebe
Subject: [PATCH 04/52] glusterd/spec: fixing autogen issue
256ebe
256ebe
Backport of https://code.engineering.redhat.com/gerrit/#/c/59463/
256ebe
256ebe
Because of the incorrect build section, autogen.sh wasn't re-run during the rpm
256ebe
build process. The `extras/Makefile.in` was not regenerated with the changes
256ebe
made to `extras/Makefile.am` in the firewalld patch. This meant that
256ebe
`extras/Makefile` was generated without the firewalld changes. So the firewalld
256ebe
config wasn't installed during `make install` and rpmbuild later failed when it
256ebe
failed to find `/usr/lib/firewalld/glusterfs.xml`
256ebe
256ebe
Label: DOWNSTREAM ONLY
256ebe
256ebe
>Reviewed-on: https://code.engineering.redhat.com/gerrit/59463
256ebe
256ebe
Change-Id: I498bcceeacbd839640282eb6467c9f1464505697
256ebe
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
256ebe
Reviewed-on: https://code.engineering.redhat.com/gerrit/70343
256ebe
Reviewed-by: Milind Changire <mchangir@redhat.com>
256ebe
---
256ebe
 glusterfs.spec.in | 7 +------
256ebe
 1 file changed, 1 insertion(+), 6 deletions(-)
256ebe
256ebe
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
256ebe
index c655f16..f5c1f79 100644
256ebe
--- a/glusterfs.spec.in
256ebe
+++ b/glusterfs.spec.in
256ebe
@@ -700,12 +700,7 @@ done
256ebe
 
256ebe
 %build
256ebe
 
256ebe
-# RHEL6 and earlier need to manually replace config.guess and config.sub
256ebe
-%if ( 0%{?rhel} && 0%{?rhel} <= 6 )
256ebe
-./autogen.sh
256ebe
-%endif
256ebe
-
256ebe
-%configure \
256ebe
+./autogen.sh && %configure \
256ebe
         %{?_with_asan} \
256ebe
         %{?_with_cmocka} \
256ebe
         %{?_with_debug} \
256ebe
-- 
256ebe
1.8.3.1
256ebe