libpcap: upgrade to 1.4.0

0001-Fix-disable-canusb.patch,
0001-The-leading-comma-looked-weird-remove-it.patch,
0001-canusb-needs-lpthread.patch patches included in
upstream, no longer needed.

(From OE-Core rev: 329e73e56b227c5c9fb00e2201fdf1099607b473)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Cristian Iorga 2013-06-05 18:09:07 +03:00 committed by Richard Purdie
parent d3e982a6c4
commit 03fdd2c26c
6 changed files with 8 additions and 121 deletions

View File

@ -1,30 +0,0 @@
Upstream-Status: Backport
From ccf671f5b7fbbef53d9cfd3091229b0b2a25159d Mon Sep 17 00:00:00 2001
From: Edward Sheldrake <ejs1920@sourceforge.net>
Date: Wed, 13 Jun 2012 12:09:21 -0700
Subject: [PATCH] Fix --disable-canusb.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
sgw - Removed configure part of the patch since it could change
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
config.h.in | 3 -
configure |10672 ++++++++++++++++++++++++++++++++++++++++------------------
3 files changed, 7308 insertions(+), 3369 deletions(-)
diff --git a/config.h.in b/config.h.in
index bd5177c..aed5c37 100644
--- a/config.h.in
+++ b/config.h.in
@@ -232,9 +232,6 @@
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
/* Define to the version of this package. */
#undef PACKAGE_VERSION

View File

@ -1,54 +0,0 @@
Upstream-Status: Backport
From fffa60a0693182085a7d4351150137eda26dbf82 Mon Sep 17 00:00:00 2001
From: Guy Harris <guy@alum.mit.edu>
Date: Wed, 13 Jun 2012 12:20:19 -0700
Subject: [PATCH] The leading comma looked weird; remove it.
That might be how the --disable-canusb bug got in. Hopefully this will
make the code look a little clearer and possibly avoid future bugs of
that sort.
sgw - Cleaned up the patch based on another patch
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
configure.in | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
Index: libpcap-1.3.0/configure.in
===================================================================
--- libpcap-1.3.0.orig/configure.in
+++ libpcap-1.3.0/configure.in
@@ -1371,7 +1371,8 @@ AC_SUBST(NETFILTER_SRC)
AC_ARG_ENABLE([bluetooth],
[AC_HELP_STRING([--enable-bluetooth],[enable Bluetooth support @<:@default=yes, if support available@:>@])],
-,enable_bluetooth=yes)
+ [],
+ [enable_bluetooth=yes])
if test "x$enable_bluetooth" != "xno" ; then
dnl check for Bluetooth sniffing support
@@ -1395,8 +1396,10 @@ if test "x$enable_bluetooth" != "xno" ;
fi
AC_ARG_ENABLE([canusb],
-[AC_HELP_STRING([--enable-canusb],[enable canusb support @<:@default=yes, if support available@:>@])]
-,enable_canusb=yes)
+[AC_HELP_STRING([--enable-canusb],[enable canusb support @<:@default=yes, if support available@:>@])],
+ [],
+ [enable_canusb=yes])
+
if test "x$enable_canusb" != "xno" ; then
dnl check for canusb support
@@ -1422,7 +1425,8 @@ fi
AC_ARG_ENABLE([can],
[AC_HELP_STRING([--enable-can],[enable CAN support @<:@default=yes, if support available@:>@])],
-,enable_can=yes)
+ [],
+ [enable_can=yes])
if test "x$enable_can" != "xno" ; then
dnl check for CAN sniffing support

View File

@ -1,32 +0,0 @@
Upstream-Status: Backport
From 2259a62edaf667d4bc9d1a28e612e3a7c0011545 Mon Sep 17 00:00:00 2001
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date: Sat, 30 Jun 2012 10:48:14 -0700
Subject: [PATCH] canusb: needs -lpthread
canusb uses pthreads, but -lpthread is never added to LIBS hence missing
from pcap-config, causing build failures. Fix this.
sgw - Removed configure part of the patch since it could change
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
configure.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.in b/configure.in
index ba5b64e..47e0b70 100644
--- a/configure.in
+++ b/configure.in
@@ -1408,7 +1408,7 @@ if test "x$enable_canusb" != "xno" ; then
[
AC_DEFINE(PCAP_SUPPORT_CANUSB, 1, [target host supports canusb])
CANUSB_SRC=pcap-canusb-linux.c
- LIBS="-lusb-1.0 $LIBS"
+ LIBS="-lusb-1.0 -lpthread $LIBS"
AC_MSG_NOTICE(canusb sniffing is supported)
],
AC_MSG_NOTICE(canusb sniffing is not supported; install libusb1.0 lib devel to enable it)
--
1.7.9.5

View File

@ -4,18 +4,21 @@ PR = "${INC_PR}.0"
SRC_URI += "file://aclocal.patch \
file://ieee80215-arphrd.patch \
file://0001-Fix-disable-canusb.patch \
file://0001-The-leading-comma-looked-weird-remove-it.patch \
file://0001-canusb-needs-lpthread.patch \
"
SRC_URI[md5sum] = "f78455a92622b7a3c05c58b6ad1cec7e"
SRC_URI[sha256sum] = "41cbd9ed68383afd9f1fda279cb78427d36879d9e34ee707e31a16a1afd872b9"
SRC_URI[md5sum] = "56e88a5aabdd1e04414985ac24f7e76c"
SRC_URI[sha256sum] = "7c6a2a4f71e8ab09804e6b4fb3aff998c5583108ac42c0e2967eee8e1dbc7406"
#
# make install doesn't cover the shared lib
# make install-shared is just broken (no symlinks)
#
do_configure_prepend () {
#remove hardcoded references to /usr/include
sed 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i ${S}/configure.in
}
do_install_prepend () {
install -d ${D}${libdir}
install -d ${D}${bindir}