path: root/libglusterfs
diff options
authorKaleb KEITHLEY <>2011-11-29 09:36:50 -0500
committerAnand Avati <>2011-11-30 04:57:08 -0800
commitfbf6ce560dd6e72fc9d404e32d313732077a250f (patch)
tree401e3724d25fa1ec47c70f19c91a9b128d73a0a5 /libglusterfs
parent1b3571d38fc789100e2c053750eca1109494596b (diff)
bz 3826, fix for parallel make in fedora build system
builds of glusterfs in the fedora build system often fail due to a race condition between running yacc and starting to compile the produced by yacc This patch changes the automake to generate the parser files without incurring the race condition This works on jenkins, the fedora build system, and my f16 vm/guest machines. (Finding the right combination that works on all three was an exercise to say the least. I'm open to other suggestions for avoiding the race condition.) Run to (re)generate the Makefile.ins. Then run configure to produce all Makefiles, followed by `make -j X` where X>1 see also BUG: 3826 Change-Id: I06ba0d0a1d59f0f44c0dd2cd9d227ca08d99e205 Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Jeff Darcy <> Reviewed-by: Anand Avati <>
Diffstat (limited to 'libglusterfs')
1 files changed, 5 insertions, 2 deletions
diff --git a/libglusterfs/src/ b/libglusterfs/src/
index a950e67..98be5b2 100644
--- a/libglusterfs/src/
+++ b/libglusterfs/src/
@@ -35,10 +35,13 @@ noinst_HEADERS = common-utils.h defaults.h dict.h glusterfs.h hashfn.h \
EXTRA_DIST = graph.l graph.y
-graph.lex.c: graph.l
+graph.lex.c: graph.l yacc.stamp
$(LEX) -t $(srcdir)/graph.l > $@
+ touch $@
+ graph.y
$(YACC) -d $(srcdir)/graph.y
-CLEANFILES = graph.lex.c
+CLEANFILES = graph.lex.c yacc.stamp