connman: use libnl2
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Thu, 7 Jan 2010 16:54:33 +0000 (17:54 +0100)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Thu, 7 Jan 2010 16:55:12 +0000 (17:55 +0100)
recipes/connman/connman.inc
recipes/connman/connman_0.46.bb
recipes/connman/files/link-against-libnl2.patch [new file with mode: 0644]

index 5b2f0cc..9ea04e3 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.moblin.org/projects/projects_connman.php"
 SECTION = "libs/network"
 LICENSE = "GPL"
 # we need to define the depends here, the dynamic stuff is too late
-DEPENDS  = "libnl wpa-supplicant dbus glib-2.0 ppp busybox dhclient resolvconf bluez4"
+DEPENDS  = "libnl2 wpa-supplicant dbus glib-2.0 ppp busybox dhclient resolvconf bluez4"
 
 EXTRA_OECONF += "\
     ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
index 814187d..9fcd7a7 100644 (file)
@@ -1,6 +1,5 @@
 require connman.inc
-
-PR = "r3"
+PR = "r5"
 
 EXTRA_OECONF += "\
   --disable-gtk-doc \
@@ -15,6 +14,7 @@ EXTRA_OECONF += "\
   --enable-dhclient \
   --enable-resolvconf \
   --enable-dnsproxy \
+  --enable-tools \
   --disable-novatel \
   --disable-huawei \
   --disable-hso \
@@ -32,7 +32,7 @@ EXTRA_OECONF += "\
 
 SRC_URI  = "\
   http://www.kernel.org/pub/linux/network/connman/connman-${PV}.tar.gz \
+  file://link-against-libnl2.patch;patch=1 \
   file://no_system_user_perms.patch;patch=1 \
   file://connman \
 "
-
diff --git a/recipes/connman/files/link-against-libnl2.patch b/recipes/connman/files/link-against-libnl2.patch
new file mode 100644 (file)
index 0000000..5be1618
--- /dev/null
@@ -0,0 +1,13 @@
+Index: connman-0.46/configure.ac
+===================================================================
+--- connman-0.46.orig/configure.ac
++++ connman-0.46/configure.ac
+@@ -326,7 +326,7 @@
+ AC_ARG_ENABLE(tools, AC_HELP_STRING([--enable-tools],
+               [enable testing tools]), [enable_tools=${enableval}])
+ if (test "${enable_tools}" = "yes"); then
+-      PKG_CHECK_MODULES(NETLINK, libnl-1, dummy=yes,
++      PKG_CHECK_MODULES(NETLINK, libnl-2.0, dummy=yes,
+                               AC_MSG_ERROR(Netlink library is required))
+       AC_SUBST(NETLINK_CFLAGS)
+       AC_SUBST(NETLINK_LIBS)