From 75459302c58c25e0fbca495c69f1a6e2e5f163a3 Mon Sep 17 00:00:00 2001
From: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Date: Fri, 26 Aug 2016 13:49:32 +0530
Subject: [PATCH 39/86] build: fix eventtypes.h generation
make 'eventtypes.py' as dependent i.e. must build eventtypes.h
Else the consequence will be like:
error: 'EVENT_CLIENT_GRACE_TIMER_START' undeclared (first use in this function)
> Reviewed-on: http://review.gluster.org/15327
> Tested-by: Prasanna Kumar Kalever <pkalever@redhat.com>
> Smoke: Gluster Build System <jenkins@build.gluster.org>
> Reviewed-by: Aravinda VK <avishwan@redhat.com>
> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Change-Id: I5fe2491d8d1e0c430b307026695d25475250ae79
BUG: 1351589
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/84743
Tested-by: Aravinda Vishwanathapura Krishna Murthy <avishwan@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
---
events/src/Makefile.am | 2 +-
libglusterfs/src/Makefile.am | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/events/src/Makefile.am b/events/src/Makefile.am
index d292fbe..87282c6 100644
--- a/events/src/Makefile.am
+++ b/events/src/Makefile.am
@@ -9,7 +9,7 @@ eventsdir = $(libexecdir)/glusterfs/events
events_PYTHON = __init__.py gf_event.py eventsapiconf.py eventtypes.py \
utils.py
-eventtypes.py:
+eventtypes.py: $(top_srcdir)/events/eventskeygen.py
$(PYTHON) $(top_srcdir)/events/eventskeygen.py PY_HEADER
if BUILD_EVENTS
diff --git a/libglusterfs/src/Makefile.am b/libglusterfs/src/Makefile.am
index b7c3116..93403db 100644
--- a/libglusterfs/src/Makefile.am
+++ b/libglusterfs/src/Makefile.am
@@ -73,7 +73,7 @@ libglusterfs_la_SOURCES += $(CONTRIBDIR)/uuid/clear.c \
endif
-eventtypes.h:
+eventtypes.h: $(top_srcdir)/events/eventskeygen.py
$(PYTHON) $(top_srcdir)/events/eventskeygen.py C_HEADER
if BUILD_EVENTS
--
1.7.1