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