[OE-core] [PATCH 1/1] libpcap: add native package

Kang Kai Kai.Kang at windriver.com
Thu May 25 03:19:30 UTC 2017


On 2017年05月24日 21:19, Kang Kai wrote:
> On 2017年05月24日 17:33, kai.kang at windriver.com wrote:
>> From: Kai Kang <kai.kang at windriver.com>
>>
>> Add package libcap-native required by recipe daq-native in layer
>> meta-networking. And daq-native is added to fix snort start error.
>
> I just realize that it only needs daq-native provide a shell script, 
> so libpcap-native may not be needed. I'll figure it out.
> Please ignore this patch for now.

Unfortunately there is a var STATIC_LIBS in the shell script 
daq-modules-config from package daq-native which depends on configure 
options.
If doesn't build with libpcap for daq-native, then no '-lpcap' in the 
output of the shell script daq-modules-config and build snort will fail.

So libpcap-native is needed indeed, and please help the review the 
patch, thanks.

BTW, the typo 'libcap-native' in commit message has been updated in 
poky-contrib git repo.

Thanks,
Kai


>
> Thanks,
> Kai
>
>>
>> Signed-off-by: Kai Kang <kai.kang at windriver.com>
>> ---
>>   meta/recipes-connectivity/libpcap/libpcap.inc | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc 
>> b/meta/recipes-connectivity/libpcap/libpcap.inc
>> index 6635779..e57ea87 100644
>> --- a/meta/recipes-connectivity/libpcap/libpcap.inc
>> +++ b/meta/recipes-connectivity/libpcap/libpcap.inc
>> @@ -38,3 +38,5 @@ CXXFLAGS_prepend = "-I${S} "
>>   do_configure_prepend () {
>>       sed -i -e's,^V_RPATH_OPT=.*$,V_RPATH_OPT=,' ${S}/pcap-config.in
>>   }
>> +
>> +BBCLASSEXTEND = "native"
>
>

-- 
Regards,
Neil | Kai Kang




More information about the Openembedded-core mailing list