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