Skip to contentSkip to conversation

libpcap: add native package

PATCH In review [email protected] 1 participant 4 messages May 24, 2017 – May 25, 2017

lore
Share & tools
lore
#0 lore raw

cover libpcap: add native package

From: Kai Kang <[email protected]>

The following changes since commit a3d160f9e5826140cc8d6b2ed1b38bf022443b08:

linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.10 (2017-05-23 17:46:14 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib kangkai/daq
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/daq

Kai Kang (1):
libpcap: add native package

 meta/recipes-connectivity/libpcap/libpcap.inc | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
2.10.1
#1 lore raw

PATCH 1/1 libpcap: add native package

From: Kai Kang <[email protected]>

Add package libcap-native required by recipe daq-native in layer meta-networking. And daq-native is added to fix snort start error.

---
 meta/recipes-connectivity/libpcap/libpcap.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-connectivity/libpcap/libpcap.inc +2 -0
index 6635779..e57ea87 100644
@@ -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"
Signature · 1 line
2.10.1
author
#2 lore raw
Quoted 4 lines · On 2017年05月24日 17:33, [email protected] wrote:

From: Kai Kang <[email protected]>

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.

Thanks,
Kai

Quoted 16 lines
---
  meta/recipes-connectivity/libpcap/libpcap.inc | 2 ++
  1 file changed, 2 insertions(+)
meta/recipes-connectivity/libpcap/libpcap.inc +2 -0
index 6635779..e57ea87 100644
@@ -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"
Signature · 2 lines
Regards,
Neil | Kai Kang
author
#3 lore raw
Quoted 8 lines · Kang Kai
Quoted 4 lines · On 2017年05月24日 17:33, [email protected] wrote:

From: Kai Kang <[email protected]>

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

Quoted 22 lines

Thanks,
Kai

Quoted 16 lines
---
  meta/recipes-connectivity/libpcap/libpcap.inc | 2 ++
  1 file changed, 2 insertions(+)
meta/recipes-connectivity/libpcap/libpcap.inc +2 -0
index 6635779..e57ea87 100644
@@ -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"
Signature · 2 lines
Regards,
Neil | Kai Kang