summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2013-06-05 18:09:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-07 16:41:03 +0100
commit329e73e56b227c5c9fb00e2201fdf1099607b473 (patch)
treec52ec184c812598d3a512c00701af664c5070d4a /meta/recipes-connectivity
parent02971543527e993b60132ddb101a9093efa3f324 (diff)
downloadopenembedded-core-329e73e56b227c5c9fb00e2201fdf1099607b473.tar.gz
openembedded-core-329e73e56b227c5c9fb00e2201fdf1099607b473.tar.bz2
openembedded-core-329e73e56b227c5c9fb00e2201fdf1099607b473.zip
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. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-Fix-disable-canusb.patch30
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-The-leading-comma-looked-weird-remove-it.patch54
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-canusb-needs-lpthread.patch32
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap/aclocal.patch (renamed from meta/recipes-connectivity/libpcap/libpcap-1.3.0/aclocal.patch)0
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch (renamed from meta/recipes-connectivity/libpcap/libpcap-1.3.0/ieee80215-arphrd.patch)0
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap_1.4.0.bb (renamed from meta/recipes-connectivity/libpcap/libpcap_1.3.0.bb)13
6 files changed, 8 insertions, 121 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-Fix-disable-canusb.patch b/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-Fix-disable-canusb.patch
deleted file mode 100644
index 1e5e2878f7..0000000000
--- a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-Fix-disable-canusb.patch
+++ /dev/null
@@ -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
-
diff --git a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-The-leading-comma-looked-weird-remove-it.patch b/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-The-leading-comma-looked-weird-remove-it.patch
deleted file mode 100644
index e077a29ecd..0000000000
--- a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-The-leading-comma-looked-weird-remove-it.patch
+++ /dev/null
@@ -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
diff --git a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-canusb-needs-lpthread.patch b/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-canusb-needs-lpthread.patch
deleted file mode 100644
index e7456b799b..0000000000
--- a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-canusb-needs-lpthread.patch
+++ /dev/null
@@ -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
-
diff --git a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/aclocal.patch b/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
index 469d122eeb..469d122eeb 100644
--- a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/aclocal.patch
+++ b/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
diff --git a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/ieee80215-arphrd.patch b/meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch
index 2f5cd213bc..2f5cd213bc 100644
--- a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/ieee80215-arphrd.patch
+++ b/meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch
diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.3.0.bb b/meta/recipes-connectivity/libpcap/libpcap_1.4.0.bb
index efbe2bc081..75a540ecb4 100644
--- a/meta/recipes-connectivity/libpcap/libpcap_1.3.0.bb
+++ b/meta/recipes-connectivity/libpcap/libpcap_1.4.0.bb
@@ -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}