Patchwork [2/3] libpcap: Avoid libpcap build error when libnl1 is involved

login
register
mail settings
Submitter Robert Yang
Date June 16, 2014, 1:49 p.m.
Message ID <f304fb8b27c04e7099b22978c44e30346fb25dea.1402926503.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/73879/
State New
Headers show

Comments

Robert Yang - June 16, 2014, 1:49 p.m.
From: Hu Yadi <Yadi.hu@windriver.com>

Add --with-libnl autoconfig parameter and dependency between libpcap and libnl1

Signed-off-by: Hu Yadi <Yadi.hu@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-connectivity/libpcap/libpcap.inc |    3 +++
 1 file changed, 3 insertions(+)
Ross Burton - June 16, 2014, 3:13 p.m.
On 16 June 2014 14:49, Robert Yang <liezhi.yang@windriver.com> wrote:
> +PACKAGECONFIG[libnl1] = "--with-libnl,--without-libnl,libnl1,libnl1"

Why did you need to specify a runtime dependency?

Ross
Robert Yang - June 16, 2014, 3:32 p.m.
On 06/16/2014 11:13 PM, Burton, Ross wrote:
> On 16 June 2014 14:49, Robert Yang <liezhi.yang@windriver.com> wrote:
>> +PACKAGECONFIG[libnl1] = "--with-libnl,--without-libnl,libnl1,libnl1"
>
> Why did you need to specify a runtime dependency?

Sorry, please drop this one, I will check with the original author.

// Robert

>
> Ross
>
>

Patch

diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc b/meta/recipes-connectivity/libpcap/libpcap.inc
index 177b70f..6f76cb5 100644
--- a/meta/recipes-connectivity/libpcap/libpcap.inc
+++ b/meta/recipes-connectivity/libpcap/libpcap.inc
@@ -23,6 +23,9 @@  inherit autotools binconfig
 
 EXTRA_OECONF = "--with-pcap=linux"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[libnl1] = "--with-libnl,--without-libnl,libnl1,libnl1"
+
 CPPFLAGS_prepend = "-I${S} "
 CFLAGS_prepend = "-I${S} "
 CXXFLAGS_prepend = "-I${S} "