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