[Pkg-utopia-commits] r1963 - in /packages/unstable/networkmanager/debian: changelog control patches/24-libnl1-pre8_fix.patch
biebl at users.alioth.debian.org
biebl at users.alioth.debian.org
Thu Dec 20 07:04:12 UTC 2007
Author: biebl
Date: Thu Dec 20 07:04:11 2007
New Revision: 1963
URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=1963
Log:
- Bump Build-Depends on libnl-dev to (>= 1.0~pre8).
* debian/patches/24-libnl1-pre8_fix.patch
- Backport support for libnl 1.0-pre8 from upstream SVN.
Added:
packages/unstable/networkmanager/debian/patches/24-libnl1-pre8_fix.patch
Modified:
packages/unstable/networkmanager/debian/changelog
packages/unstable/networkmanager/debian/control
Modified: packages/unstable/networkmanager/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/networkmanager/debian/changelog?rev=1963&op=diff
==============================================================================
--- packages/unstable/networkmanager/debian/changelog (original)
+++ packages/unstable/networkmanager/debian/changelog Thu Dec 20 07:04:11 2007
@@ -2,8 +2,11 @@
* debian/control
- The Vcs-* fields are now officially supported, so remove the XS- prefix.
-
- -- Michael Biebl <biebl at debian.org> Sat, 03 Nov 2007 00:43:02 +0100
+ - Bump Build-Depends on libnl-dev to (>= 1.0~pre8).
+ * debian/patches/24-libnl1-pre8_fix.patch
+ - Backport support for libnl 1.0-pre8 from upstream SVN.
+
+ -- Michael Biebl <biebl at debian.org> Thu, 20 Dec 2007 07:58:34 +0100
network-manager (0.6.5-3) unstable; urgency=low
Modified: packages/unstable/networkmanager/debian/control
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/networkmanager/debian/control?rev=1963&op=diff
==============================================================================
--- packages/unstable/networkmanager/debian/control (original)
+++ packages/unstable/networkmanager/debian/control Thu Dec 20 07:04:11 2007
@@ -3,8 +3,8 @@
Priority: optional
Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers at lists.alioth.debian.org>
Uploaders: Riccardo Setti <giskard at debian.org>, Michael Biebl <biebl at debian.org>
-Build-Depends: debhelper (>= 5.0.0), cdbs, autotools-dev, intltool, libgnome-keyring-dev, libdbus-glib-1-dev (>= 0.60), libiw-dev(>= 27+28pre9), libgnomeui-dev, libglade2-dev, libglib2.0-dev, libgconf2-dev, libhal-dev (>= 0.5.0), libnl-dev (>= 0.99+1.0.svn21), libnotify-dev (>= 0.3), docbook-to-man, iproute
-Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5.0.0), cdbs, autotools-dev, intltool, libgnome-keyring-dev, libdbus-glib-1-dev (>= 0.60), libiw-dev(>= 27+28pre9), libgnomeui-dev, libglade2-dev, libglib2.0-dev, libgconf2-dev, libhal-dev (>= 0.5.0), libnl-dev (>= 1.0~pre8), libnotify-dev (>= 0.3), docbook-to-man, iproute
+Standards-Version: 3.7.3
Vcs-Svn: svn://svn.debian.org/svn/pkg-utopia/packages/unstable/networkmanager
Vcs-Browser: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/networkmanager
Homepage: http://www.gnome.org/projects/NetworkManager/
Added: packages/unstable/networkmanager/debian/patches/24-libnl1-pre8_fix.patch
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/networkmanager/debian/patches/24-libnl1-pre8_fix.patch?rev=1963&op=file
==============================================================================
--- packages/unstable/networkmanager/debian/patches/24-libnl1-pre8_fix.patch (added)
+++ packages/unstable/networkmanager/debian/patches/24-libnl1-pre8_fix.patch Thu Dec 20 07:04:11 2007
@@ -1,0 +1,46 @@
+=== modified file 'src/NetworkManagerSystem.c'
+--- src/NetworkManagerSystem.c 2007-12-20 06:06:27 +0000
++++ src/NetworkManagerSystem.c 2007-12-20 06:57:47 +0000
+@@ -224,16 +224,33 @@
+
+ static struct nl_handle * new_nl_handle (void)
+ {
+- struct nl_handle * nlh = NULL;
+-
+- nlh = nl_handle_alloc_nondefault(NL_CB_VERBOSE);
+- nl_handle_set_pid (nlh, (pthread_self() << 16 | getpid()));
+- if (nl_connect(nlh, NETLINK_ROUTE) < 0)
+- {
+- nm_warning ("%s: couldn't connecto to netlink: %s", __func__, nl_geterror());
++ struct nl_handle * nlh = NULL;
++ struct nl_cb *cb;
++
++ cb = nl_cb_alloc (NL_CB_VERBOSE);
++ nlh = nl_handle_alloc_cb (cb);
++
++ if (!nlh) {
++ nm_warning ("couldn't allocate netlink handle.");
++ return NULL;
++ }
++
++ if (nl_connect (nlh, NETLINK_ROUTE) < 0) {
++ /* HACK: try one more time. Because the netlink monitor for link state
++ * inits before we get here, it grabs the port that matches the PID
++ * of the NM process, which also happens to be the PID that libnl uses
++ * the first time too. The real fix is to convert nm-netlink-monitor.c
++ * over to use libnl.
++ */
+ nl_handle_destroy (nlh);
+ nlh = NULL;
+- }
++
++ nlh = new_nl_handle ();
++ if (!nlh) {
++ nm_error ("couldn't connect to netlink: %s", nl_geterror ());
++ return NULL;
++ }
++ }
+
+ return nlh;
+ }
+
More information about the Pkg-utopia-commits
mailing list