[arch-commits] Commit in policykit-gnome/trunk (PKGBUILD bgo572878.patch)

Jan de Groot jgc at archlinux.org
Fri May 8 15:29:23 EDT 2009


    Date: Friday, May 8, 2009 @ 15:29:22
  Author: jgc
Revision: 38492

upgpkg: policykit-gnome 0.9.2-4
    Fix FS#14610

Added:
  policykit-gnome/trunk/bgo572878.patch
Modified:
  policykit-gnome/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   13 ++++++++-----
 bgo572878.patch |   17 +++++++++++++++++
 2 files changed, 25 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-05-08 19:24:56 UTC (rev 38491)
+++ PKGBUILD	2009-05-08 19:29:22 UTC (rev 38492)
@@ -3,20 +3,23 @@
 
 pkgname=policykit-gnome
 pkgver=0.9.2
-pkgrel=3
+pkgrel=4
 pkgdesc="PolicyKit integration for the GNOME desktop"
 arch=('i686' 'x86_64')
 url="http://hal.freedesktop.org/docs/PolicyKit-gnome/"
 license=('GPL')
-depends=('gconf>=2.26.0-2')
-makedepends=('intltool' 'gtk-doc' 'gnome-doc-utils>=0.16.0')
+depends=('gconf>=2.26.1')
+makedepends=('intltool' 'gtk-doc' 'gnome-doc-utils>=0.16.1')
 options=(!emptydirs !libtool)
 install=${pkgname}.install
-source=(http://hal.freedesktop.org/releases/PolicyKit-gnome-${pkgver}.tar.bz2)
-md5sums=('fc478b168d0c926a9766b0b415ff4bbf')
+source=(http://hal.freedesktop.org/releases/PolicyKit-gnome-${pkgver}.tar.bz2
+	bgo572878.patch)
+md5sums=('fc478b168d0c926a9766b0b415ff4bbf'
+         'aa8aa8c0fa69f69f20af9338429150ad')
 
 build() {
   cd "${srcdir}/PolicyKit-gnome-${pkgver}"
+  patch -Np1 -i "${srcdir}/bgo572878.patch" || return 1
   ./configure --prefix=/usr \
       --sysconfdir=/etc \
       --libexecdir=/usr/lib/PolicyKit \

Added: bgo572878.patch
===================================================================
--- bgo572878.patch	                        (rev 0)
+++ bgo572878.patch	2009-05-08 19:29:22 UTC (rev 38492)
@@ -0,0 +1,17 @@
+# Ubuntu: https://bugs.launchpad.net/ubuntu/+source/policykit-gnome/+bug/332343
+# Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=572878
+# Patch: http://bugzilla.gnome.org/attachment.cgi?id=129353&action=view
+# Description: When "clicked" is blocked as the user is not authorized
+#   it should emit "auth-start" so that the user can authenticate. Makes
+#   it work with widgets that don't emit "activate", e.g. buttons.
+--- ./polkit-gnome/polkit-gnome-action.c.old	2009-02-06 17:31:46.000000000 +0000
++++ ./polkit-gnome/polkit-gnome-action.c	2009-02-06 17:32:03.000000000 +0000
+@@ -2062,6 +2062,8 @@ _button_clicked (GtkButton *button, PolK
+         case POLKIT_RESULT_ONLY_VIA_SELF_AUTH_KEEP_ALWAYS:
+                 /* g_debug ("blocking clicked"); */
+                 g_signal_stop_emission_by_name (button, "clicked");
++                if (action->priv->polkit_action != NULL)
++                        g_signal_emit (action, signals [AUTH_START_SIGNAL], 0);
+                 break;
+ 
+         default:



More information about the arch-commits mailing list