diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-16 12:46:45 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-16 12:46:45 +0100 |
commit | 40bb7a30fca0bda0beb0177bdac2783c5875db2f (patch) | |
tree | 3f451282d4bd89b137e8d0f2fc72b461f83d9eda /meta/packages/networkmanager | |
parent | e423eadb0ff65496d5ca24b12abc7080123db536 (diff) | |
download | poky-40bb7a30fca0bda0beb0177bdac2783c5875db2f.tar.gz |
networkmanager: Update to work with recent libnl
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/networkmanager')
-rw-r--r-- | meta/packages/networkmanager/files/libnlfix.patch | 29 | ||||
-rw-r--r-- | meta/packages/networkmanager/networkmanager_svn.bb | 3 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta/packages/networkmanager/files/libnlfix.patch b/meta/packages/networkmanager/files/libnlfix.patch new file mode 100644 index 0000000000..69f4922ea0 --- /dev/null +++ b/meta/packages/networkmanager/files/libnlfix.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | Index: trunk/src/nm-netlink.c | ||
2 | =================================================================== | ||
3 | --- trunk.orig/src/nm-netlink.c 2007-09-25 22:37:50.000000000 +0100 | ||
4 | +++ trunk/src/nm-netlink.c 2009-05-16 12:44:26.000000000 +0100 | ||
5 | @@ -52,16 +52,20 @@ | ||
6 | struct nl_handle * | ||
7 | nm_netlink_get_default_handle (void) | ||
8 | { | ||
9 | + struct nl_cb *cb; | ||
10 | + | ||
11 | if (def_nl_handle) | ||
12 | return def_nl_handle; | ||
13 | |||
14 | - def_nl_handle = nl_handle_alloc_nondefault (NL_CB_VERBOSE); | ||
15 | - g_assert (def_nl_handle); | ||
16 | + cb = nl_cb_alloc(NL_CB_VERBOSE); | ||
17 | + def_nl_handle = nl_handle_alloc_cb (cb); | ||
18 | + if (!def_nl_handle) { | ||
19 | + nm_warning ("couldn't allocate netlink handle."); | ||
20 | + return NULL; | ||
21 | + } | ||
22 | |||
23 | - nl_handle_set_pid (def_nl_handle, (pthread_self () << 16 | getpid ())); | ||
24 | if (nl_connect (def_nl_handle, NETLINK_ROUTE) < 0) { | ||
25 | nm_error ("couldn't connect to netlink: %s", nl_geterror ()); | ||
26 | - nl_handle_destroy (def_nl_handle); | ||
27 | return NULL; | ||
28 | } | ||
29 | |||
diff --git a/meta/packages/networkmanager/networkmanager_svn.bb b/meta/packages/networkmanager/networkmanager_svn.bb index 96d1cf3980..d3c5443335 100644 --- a/meta/packages/networkmanager/networkmanager_svn.bb +++ b/meta/packages/networkmanager/networkmanager_svn.bb | |||
@@ -7,10 +7,11 @@ DEPENDS = "libnl dbus dbus-glib hal gconf-dbus wireless-tools ppp gnome-common p | |||
7 | RDEPENDS = "hal wpa-supplicant iproute2 dhcp-client" | 7 | RDEPENDS = "hal wpa-supplicant iproute2 dhcp-client" |
8 | 8 | ||
9 | PV = "0.7+svnr${SRCREV}" | 9 | PV = "0.7+svnr${SRCREV}" |
10 | PR = "r8" | 10 | PR = "r9" |
11 | 11 | ||
12 | SRC_URI="svn://svn.gnome.org/svn/NetworkManager/;module=trunk;proto=http \ | 12 | SRC_URI="svn://svn.gnome.org/svn/NetworkManager/;module=trunk;proto=http \ |
13 | file://no-restarts.diff;patch=1;pnum=0 \ | 13 | file://no-restarts.diff;patch=1;pnum=0 \ |
14 | file://libnlfix.patch;patch=1 \ | ||
14 | file://makefile-fix.patch;patch=1 \ | 15 | file://makefile-fix.patch;patch=1 \ |
15 | file://allow-disabling.patch;patch=1 \ | 16 | file://allow-disabling.patch;patch=1 \ |
16 | file://NetworkManager \ | 17 | file://NetworkManager \ |