Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] libnl: fix compilation on hosts without lex
Date: Mon,  7 Jan 2013 17:43:44 +0100	[thread overview]
Message-ID: <1357577024-7889-1-git-send-email-eric@eukrea.com> (raw)

* 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




             reply	other threads:[~2013-01-07 17:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-07 16:43 Eric Bénard [this message]
2013-01-07 17:59 ` [PATCH] libnl: fix compilation on hosts without lex Otavio Salvador
2013-01-07 20:48   ` Eric Bénard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1357577024-7889-1-git-send-email-eric@eukrea.com \
    --to=eric@eukrea.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox