diff options
author | Alexey D | 2016-01-27 12:41:52 +0300 |
---|---|---|
committer | Alexey D | 2016-01-27 12:46:19 +0300 |
commit | d30754248bbb5bde000d93b77082dd9131204264 (patch) | |
tree | cefc36f8c510236031fe5e6105907019f510f9b0 | |
parent | 32d970090ce81fac8f92e0dcd67be5e8b6057f8a (diff) | |
download | aur-d30754248bbb5bde000d93b77082dd9131204264.tar.gz |
version 1.0.10
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | 0001-core-fix-failure-to-configure-routes.patch | 54 | ||||
-rw-r--r-- | PKGBUILD | 9 |
3 files changed, 69 insertions, 8 deletions
@@ -1,6 +1,8 @@ +# Generated by mksrcinfo v8 +# Wed Jan 27 07:49:28 UTC 2016 pkgbase = networkmanager-consolekit pkgdesc = NetworkManager with ConsoleKit support for non-systemd systems - pkgver = 1.0.8 + pkgver = 1.0.10 pkgrel = 1 url = http://www.gnome.org/projects/NetworkManager/ install = networkmanager.install @@ -18,7 +20,7 @@ pkgbase = networkmanager-consolekit makedepends = vala makedepends = perl-yaml makedepends = python2-gobject - depends = libnm-glib>=1.0.8 + depends = libnm-glib>=1.0.10 depends = iproute2 depends = libnl depends = polkit-consolekit @@ -38,15 +40,17 @@ pkgbase = networkmanager-consolekit optdepends = bluez: bluetooth support optdepends = openresolv: resolvconf support optdepends = ppp: dialup connection support - provides = networkmanager=1.0.8 + provides = networkmanager=1.0.10 conflicts = networkmanager replaces = networkmanager backup = etc/NetworkManager/NetworkManager.conf - source = http://ftp.gnome.org/pub/gnome/sources/NetworkManager/1.0/NetworkManager-1.0.8.tar.xz + source = https://download.gnome.org/sources/NetworkManager/1.0/NetworkManager-1.0.10.tar.xz + source = 0001-core-fix-failure-to-configure-routes.patch source = NetworkManager.conf source = disable_set_hostname.patch source = networkmanager.rc - sha256sums = 8bb128950f8a79ff881afadb46dd55e16f952390cf7cb4e06063431e5144937f + sha256sums = 1bcfce8441dfd9f432a100d06b54f3831a2275cccc3b74b1b4c09a011e179fbc + sha256sums = 27d84d45046826a25e861a126099d9ad39e84408530c1bb898287e4543eb84f7 sha256sums = 2c6a647b5aec9f3c356d5d95251976a21297c6e64bd8d2a59339f8450a86cb3b sha256sums = 25056837ea92e559f09563ed817e3e0cd9333be861b8914e45f62ceaae2e0460 sha256sums = e39a2a0401518abd1d1d060200e2ca0f0854cdc49a5cb286919be177a7cd90fc diff --git a/0001-core-fix-failure-to-configure-routes.patch b/0001-core-fix-failure-to-configure-routes.patch new file mode 100644 index 000000000000..164b27747fbd --- /dev/null +++ b/0001-core-fix-failure-to-configure-routes.patch @@ -0,0 +1,54 @@ +From 11aa07ed939193e85516c287a57dee1837242972 Mon Sep 17 00:00:00 2001 +From: Thomas Haller <thaller@redhat.com> +Date: Mon, 4 Jan 2016 18:54:26 +0100 +Subject: [PATCH] core: fix failure to configure routes due to wrong + device-route for IPv4 peer-addresses + +As in the case of a OpenVPN connection, we might add an address like: + 10.8.0.58/32 ptp 10.8.0.57 + +In this case, kernel would automatically add a device-route like: + 10.8.0.57/32 via 0.0.0.0 dev 32 metric 0 mss 0 src rtprot-kernel scope link pref-src 10.8.0.58 + +nm_ip4_config_commit() checks all IP addresses to figure out +the present device-routes. Then the routes are synced by NMRouteManager. +Due to a bug, we would not consider the peer-address, but the local-address +and configure a route 10.8.0.58/32, instead of 10.8.0.57/32. + +That stays mostly unnoticed, because usually the peer and the local-address are +in the same subnet, so that there is no difference (/32 is an example of the +peer-address being in a different subnet). + +It also seems that due to a bug fixed by df4e5357521 this issue didn't surface. +Probably because we would not notice the 10.8.0.57/32 right away and thus +nm_route_manager_ip4_route_sync() would not wrongly delete it. + +https://bugzilla.gnome.org/show_bug.cgi?id=759892 + +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809195 +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809494 +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809526 +https://bugs.archlinux.org/task/47535 +https://bugzilla.redhat.com/show_bug.cgi?id=1294309 +https://mail.gnome.org/archives/networkmanager-list/2015-December/msg00059.html +--- + src/nm-ip4-config.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/nm-ip4-config.c b/src/nm-ip4-config.c +index f625d35..61e29af 100644 +--- a/src/nm-ip4-config.c ++++ b/src/nm-ip4-config.c +@@ -298,7 +298,8 @@ nm_ip4_config_commit (const NMIP4Config *config, int ifindex, gboolean routes_fu + + route.ifindex = ifindex; + route.source = NM_IP_CONFIG_SOURCE_KERNEL; +- route.network = nm_utils_ip4_address_clear_host_address (addr->address, addr->plen); ++ route.network = nm_utils_ip4_address_clear_host_address (addr->peer_address ? : addr->address, ++ addr->plen); + route.plen = addr->plen; + route.pref_src = addr->address; + route.metric = default_route_metric; +-- +2.6.4 + @@ -9,7 +9,7 @@ # Contributor: Valentine Sinitsyn <e_val@inbox.ru> pkgname=networkmanager-consolekit -pkgver=1.0.8 +pkgver=1.0.10 pkgrel=1 _pppver=2.4.7 pkgdesc="NetworkManager with ConsoleKit support for non-systemd systems" @@ -34,12 +34,14 @@ replaces=('networkmanager') conflicts=('networkmanager') backup=('etc/NetworkManager/NetworkManager.conf') install=networkmanager.install -source=(http://ftp.gnome.org/pub/gnome/sources/NetworkManager/${pkgver:0:3}/NetworkManager-${pkgver}.tar.xz +source=(https://download.gnome.org/sources/NetworkManager/${pkgver:0:3}/NetworkManager-$pkgver.tar.xz + 0001-core-fix-failure-to-configure-routes.patch NetworkManager.conf disable_set_hostname.patch networkmanager.rc ) -sha256sums=('8bb128950f8a79ff881afadb46dd55e16f952390cf7cb4e06063431e5144937f' +sha256sums=('1bcfce8441dfd9f432a100d06b54f3831a2275cccc3b74b1b4c09a011e179fbc' + '27d84d45046826a25e861a126099d9ad39e84408530c1bb898287e4543eb84f7' '2c6a647b5aec9f3c356d5d95251976a21297c6e64bd8d2a59339f8450a86cb3b' '25056837ea92e559f09563ed817e3e0cd9333be861b8914e45f62ceaae2e0460' 'e39a2a0401518abd1d1d060200e2ca0f0854cdc49a5cb286919be177a7cd90fc') @@ -50,6 +52,7 @@ prepare() { cd NetworkManager-$pkgver + patch -Np1 -i ../0001-core-fix-failure-to-configure-routes.patch patch -Np1 -i ../disable_set_hostname.patch NOCONFIGURE=1 ./autogen.sh } |