Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] libnl: fix compilation on hosts without lex
@ 2013-01-07 16:43 Eric Bénard
  2013-01-07 17:59 ` Otavio Salvador
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Bénard @ 2013-01-07 16:43 UTC (permalink / raw)
  To: openembedded-core

* libnl's makefiles are calling $(LEX) but only define $(FLEX), thus
compilation on a host which doesn't have lex fails with :
| lex --header-file=route/cls/ematch_grammar.h  -o route/cls/ematch_grammar.c route/cls/ematch_grammar.l
| make[1]: lex: Command not found
| make[1]: *** [route/cls/ematch_grammar.c] Error 127

* this patch fix this by setting LEX variable to flex tool

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 meta/recipes-support/libnl/libnl_3.2.16.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-support/libnl/libnl_3.2.16.bb b/meta/recipes-support/libnl/libnl_3.2.16.bb
index be3a3a2..0181436 100644
--- a/meta/recipes-support/libnl/libnl_3.2.16.bb
+++ b/meta/recipes-support/libnl/libnl_3.2.16.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.infradead.org/~tgr/libnl/"
 SECTION = "libs/network"
 
 PE = "1"
-PR = "r0"
+PR = "r1"
 
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
@@ -19,6 +19,8 @@ SRC_URI[sha256sum] = "c43a42336c6a3cf559f390e202f8f029d165bd767da7cf7a32a815c570
 
 inherit autotools pkgconfig
 
+EXTRA_OEMAKE += "LEX=flex"
+
 FILES_${PN} = "${libdir}/libnl-3.so.* \
                ${libdir}/libnl.so.* \
                ${sysconfdir}"
-- 
1.7.10.4




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

* Re: [PATCH] libnl: fix compilation on hosts without lex
  2013-01-07 16:43 [PATCH] libnl: fix compilation on hosts without lex Eric Bénard
@ 2013-01-07 17:59 ` Otavio Salvador
  2013-01-07 20:48   ` Eric Bénard
  0 siblings, 1 reply; 3+ messages in thread
From: Otavio Salvador @ 2013-01-07 17:59 UTC (permalink / raw)
  To: Eric Bénard; +Cc: Patches and discussions about the oe-core layer

On Mon, Jan 7, 2013 at 2:43 PM, Eric Bénard <eric@eukrea.com> wrote:
> * libnl's makefiles are calling $(LEX) but only define $(FLEX), thus
> compilation on a host which doesn't have lex fails with :
> | lex --header-file=route/cls/ematch_grammar.h  -o route/cls/ematch_grammar.c route/cls/ematch_grammar.l
> | make[1]: lex: Command not found
> | make[1]: *** [route/cls/ematch_grammar.c] Error 127
>
> * this patch fix this by setting LEX variable to flex tool
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>

I have prepared a patch for this issue but I did patch the Makefile.am
to use $(FLEX) as this is the fix commited in upstream 3.2.17. If you
do not object, I'd like to propose mine patch for review as it is more
in line with upstream fix.

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



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

* Re: [PATCH] libnl: fix compilation on hosts without lex
  2013-01-07 17:59 ` Otavio Salvador
@ 2013-01-07 20:48   ` Eric Bénard
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Bénard @ 2013-01-07 20:48 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer

Hi Otavio,

Le Mon, 7 Jan 2013 15:59:24 -0200,
Otavio Salvador <otavio@ossystems.com.br> a écrit :

> On Mon, Jan 7, 2013 at 2:43 PM, Eric Bénard <eric@eukrea.com> wrote:
> > * libnl's makefiles are calling $(LEX) but only define $(FLEX), thus
> > compilation on a host which doesn't have lex fails with :
> > | lex --header-file=route/cls/ematch_grammar.h  -o route/cls/ematch_grammar.c route/cls/ematch_grammar.l
> > | make[1]: lex: Command not found
> > | make[1]: *** [route/cls/ematch_grammar.c] Error 127
> >
> > * this patch fix this by setting LEX variable to flex tool
> >
> > Signed-off-by: Eric Bénard <eric@eukrea.com>
> 
> I have prepared a patch for this issue but I did patch the Makefile.am
> to use $(FLEX) as this is the fix commited in upstream 3.2.17. If you
> do not object, I'd like to propose mine patch for review as it is more
> in line with upstream fix.
> 
as the end result is the same, the maintainer now has the choice ;-)

Eric



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

end of thread, other threads:[~2013-01-07 21:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-07 16:43 [PATCH] libnl: fix compilation on hosts without lex Eric Bénard
2013-01-07 17:59 ` Otavio Salvador
2013-01-07 20:48   ` Eric Bénard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox