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