Hello community,
here is the log from the commit of package NetworkManager-gnome for
openSUSE:12.2 checked in at 2012-06-29 11:33:21
Comparing /work/SRC/openSUSE:12.2/NetworkManager-gnome (Old)
and /work/SRC/openSUSE:12.2/.NetworkManager-gnome.new (New)
Package is NetworkManager-gnome, Maintainer is gnome-maintain...@suse.de
Changes:
--- /work/SRC/openSUSE:12.2/NetworkManager-gnome/NetworkManager-gnome.changes
2012-06-25 15:14:40.0 +0200
+++
/work/SRC/openSUSE:12.2/.NetworkManager-gnome.new/NetworkManager-gnome.changes
2012-06-29 11:33:22.0 +0200
@@ -1,0 +2,14 @@
+Thu Jun 28 21:19:01 UTC 2012 - dims...@opensuse.org
+
+- Add nm-applet-private-connection.patch: Create private
+ connections if the user is not authorized.
+ Some distributions do not allow the normal user to create a
+ system connection without the polkit authentication. This commit
+ checks the polkit policy and creates private connections if the
+ user is not authorized. [bnc#751211].
+- Add polkit-devel BuildRequires, as the above patch makes use
+ of it.
+- Add gnome-common BuildRequires and call to gnome-autogen.sh, as
+ above patch touches the build system.
+
+---
New:
nm-applet-private-connection.patch
Other differences:
--
++ NetworkManager-gnome.spec ++
--- /var/tmp/diff_new_pack.R8I1YK/_old 2012-06-29 11:33:22.0 +0200
+++ /var/tmp/diff_new_pack.R8I1YK/_new 2012-06-29 11:33:22.0 +0200
@@ -27,11 +27,15 @@
BuildRequires: dbus-1-glib-devel
BuildRequires: gconf2-devel
BuildRequires: gnome-bluetooth-devel
+# Needed for patch0
+BuildRequires: gnome-common
BuildRequires: gtk3-devel
BuildRequires: intltool
BuildRequires: libgnome-keyring-devel
BuildRequires: libnotify-devel
BuildRequires: libtool
+# Needed by patch0
+BuildRequires: polkit-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(iso-codes)
@@ -40,6 +44,8 @@
Group: System/GUI/GNOME
Source:
http://download.gnome.org/sources/network-manager-applet/0.9/network-manager-applet-%{version}.tar.xz
Source1:nm-icons.tar.gz
+# PATCH-FIX-UPSTREAM nm-applet-private-connection.patch bnc#751211 bgo#646187
dims...@opensuse.org -- Create private connections if the user is not
authorized. Allows to create wifi connections without root access. Patch under
discussion upstream.
+Patch0: nm-applet-private-connection.patch
Provides: NetworkManager-client
Requires: NetworkManager = 0.9.3
# needed for translated country names
@@ -72,9 +78,12 @@
%lang_package
%prep
%setup -q -n network-manager-applet-%{version} -a 1
+%patch0 -p1
translation-update-upstream
%build
+# Needed for patch0
+NOCONFIGURE=1 gnome-autogen.sh
%configure \
--disable-static \
--disable-maintainer-mode \
++ nm-applet-private-connection.patch ++
From d646ee98751194e6bd7e2f57418a2a995c634924 Mon Sep 17 00:00:00 2001
From: Gary Ching-Pang Lin chingp...@gmail.com
Date: Thu, 2 Feb 2012 18:08:56 +0800
Subject: [PATCH] Create private connections if the user is not authorized
Some distributions do not allow the normal user to create a system
connection without the polkit authentication. This commit checks
the polkit policy and creates private connections if the user is
not authorized.
https://bugzilla.gnome.org/show_bug.cgi?id=646187
---
src/applet-device-cdma.c |6
src/applet-device-gsm.c |6
src/applet-device-wifi.c | 12 +++
src/applet-device-wimax.c |6
src/applet-device-wired.c |6
src/connection-editor/Makefile.am |2 +
src/connection-editor/ce-page.c | 47 +
src/gnome-bluetooth/Makefile.am |2 +
src/gnome-bluetooth/bt-widget.c | 59 +
src/utils/Makefile.am |3 +-
src/utils/utils.c | 40 +
src/utils/utils.h |2 +
12 files changed, 190 insertions(+), 1 deletions(-)
Index: network-manager-applet-0.9.4.1/src/applet-device-cdma.c
===
--- network-manager-applet-0.9.4.1.orig/src/applet-device-cdma.c
+++ network-manager-applet-0.9.4.1/src/applet-device-cdma.c
@@ -148,6 +148,12 @@ mobile_wizard_done (NMAMobileWizard *wiz
NULL);
g_free (uuid);
g_free (id);
+ if (!utils_system_connection_authorized ()) {
+ nm_setting_connection_add_permission
((NMSettingConnection *)setting,
+