All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] libnl: fix parallel make
  2010-12-03  3:16 [PATCH 0/1] fix occasional build failure of libnl Qing He
@ 2010-12-03  3:12 ` Qing He
  0 siblings, 0 replies; 2+ messages in thread
From: Qing He @ 2010-12-03  3:12 UTC (permalink / raw)
  To: poky

lex/yacc generated header file should be explicitly listed for
makefile dependency

also add flex-native and bison-native for the recipe

Signed-off-by: Qing He <qing.he@intel.com>
---
 .../libnl/libnl-2.0/fix-makefile.patch             |   22 ++++++++++++++++++++
 meta/recipes-support/libnl/libnl_2.0.bb            |    7 ++++-
 2 files changed, 27 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/libnl/libnl-2.0/fix-makefile.patch

diff --git a/meta/recipes-support/libnl/libnl-2.0/fix-makefile.patch b/meta/recipes-support/libnl/libnl-2.0/fix-makefile.patch
new file mode 100644
index 0000000..d9f00be
--- /dev/null
+++ b/meta/recipes-support/libnl/libnl-2.0/fix-makefile.patch
@@ -0,0 +1,22 @@
+12/03/2010
+
+add explicit rules for header files generated by lex and yacc,
+otherwise the build of lib/route/pktloc.c may fail in a parallel
+environment.
+
+Signed-off-by: Qing He <qing.he@intel.com>
+diff --git a/lib/Makefile.am b/lib/Makefile.am
+index 92a916e..e8b8ef3 100644
+--- a/lib/Makefile.am
++++ b/lib/Makefile.am
+@@ -35,6 +35,10 @@ route/pktloc_grammar.c: route/pktloc_grammar.l
+ route/pktloc_syntax.c: route/pktloc_syntax.y
+ 	$(YACC) -d $(YFLAGS) -o $@ $^
+ 
++route/pktloc.$(OBJEXT): route/pktloc_syntax.h route/pktloc_grammar.h
++route/pktloc_syntax.h: route/pktloc_syntax.c
++route/pktloc_grammar.h: route/pktloc_grammar.c
++
+ libnl_route_la_LDFLAGS = -version-info 2:0:0
+ libnl_route_la_LIBADD  = libnl.la
+ libnl_route_la_SOURCES = \
diff --git a/meta/recipes-support/libnl/libnl_2.0.bb b/meta/recipes-support/libnl/libnl_2.0.bb
index fa96215..e275670 100644
--- a/meta/recipes-support/libnl/libnl_2.0.bb
+++ b/meta/recipes-support/libnl/libnl_2.0.bb
@@ -6,9 +6,12 @@ PRIORITY = "optional"
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2b41e13261a330ee784153ecbb6a82bc"
 
-PR = "r0"
+DEPENDS = "flex-native bison-native"
+PR = "r1"
 
-SRC_URI= "http://www.infradead.org/~tgr/libnl/files/${PN}-${PV}.tar.gz"
+SRC_URI= "http://www.infradead.org/~tgr/libnl/files/${PN}-${PV}.tar.gz \
+          file://fix-makefile.patch \
+         "
 
 inherit autotools pkgconfig
 
-- 
1.7.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 0/1] fix occasional build failure of libnl
@ 2010-12-03  3:16 Qing He
  2010-12-03  3:12 ` [PATCH 1/1] libnl: fix parallel make Qing He
  0 siblings, 1 reply; 2+ messages in thread
From: Qing He @ 2010-12-03  3:16 UTC (permalink / raw)
  To: poky


Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: qhe/fix
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=qhe/fix

Thanks,
    Qing He
---


Qing He (1):
  libnl: fix parallel make

 .../libnl/libnl-2.0/fix-makefile.patch             |   22 ++++++++++++++++++++
 meta/recipes-support/libnl/libnl_2.0.bb            |    7 ++++-
 2 files changed, 27 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/libnl/libnl-2.0/fix-makefile.patch



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-03  3:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-03  3:16 [PATCH 0/1] fix occasional build failure of libnl Qing He
2010-12-03  3:12 ` [PATCH 1/1] libnl: fix parallel make Qing He

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.