[arch-commits] Commit in xfce4-screensaver/repos/extra-x86_64 (3 files)

Christian Hesse eworm at archlinux.org
Sat Mar 28 19:39:51 UTC 2020


    Date: Saturday, March 28, 2020 @ 19:39:51
  Author: eworm
Revision: 378637

archrelease: copy trunk to extra-x86_64

Added:
  xfce4-screensaver/repos/extra-x86_64/0001-Send-empty-DBus-responses.patch
    (from rev 378636, xfce4-screensaver/trunk/0001-Send-empty-DBus-responses.patch)
  xfce4-screensaver/repos/extra-x86_64/PKGBUILD
    (from rev 378636, xfce4-screensaver/trunk/PKGBUILD)
Deleted:
  xfce4-screensaver/repos/extra-x86_64/PKGBUILD

--------------------------------------+
 0001-Send-empty-DBus-responses.patch |   70 ++++++++++++++++++++++++++++++
 PKGBUILD                             |   76 ++++++++++++++++++---------------
 2 files changed, 112 insertions(+), 34 deletions(-)

Copied: xfce4-screensaver/repos/extra-x86_64/0001-Send-empty-DBus-responses.patch (from rev 378636, xfce4-screensaver/trunk/0001-Send-empty-DBus-responses.patch)
===================================================================
--- 0001-Send-empty-DBus-responses.patch	                        (rev 0)
+++ 0001-Send-empty-DBus-responses.patch	2020-03-28 19:39:51 UTC (rev 378637)
@@ -0,0 +1,70 @@
+From cc33cea3df2ab361cdbddecfa901fbc048ce278b Mon Sep 17 00:00:00 2001
+From: Sean Davis <smd.seandavis at gmail.com>
+Date: Sat, 28 Mar 2020 08:23:00 -0400
+Subject: Send empty DBus responses (bug #16522)
+
+---
+ src/gs-listener-dbus.c | 27 +++++++++++++++++++++++----
+ 1 file changed, 23 insertions(+), 4 deletions(-)
+
+diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
+index 3463ef9..6307324 100644
+--- a/src/gs-listener-dbus.c
++++ b/src/gs-listener-dbus.c
+@@ -832,6 +832,25 @@ listener_remove_ck_ref_entry (GSListener *listener,
+ }
+ #endif
+ 
++static DBusHandlerResult
++listener_dbus_confirm (DBusConnection *connection,
++                       DBusMessage    *message) {
++    DBusMessage        *reply;
++
++    reply = dbus_message_new_method_return (message);
++    if (reply == NULL) {
++        g_error ("No memory");
++    }
++
++    if (!dbus_connection_send (connection, reply, NULL)) {
++        g_error ("No memory");
++    }
++
++    dbus_message_unref (reply);
++
++    return DBUS_HANDLER_RESULT_HANDLED;
++}
++
+ static DBusHandlerResult
+ listener_dbus_add_ref_entry (GSListener     *listener,
+                              int             entry_type,
+@@ -1306,15 +1325,15 @@ listener_dbus_handle_session_message (DBusConnection *connection,
+ 
+     if (dbus_message_is_method_call (message, GS_LISTENER_SERVICE, "Lock")) {
+         g_signal_emit (listener, signals[LOCK], 0);
+-        return DBUS_HANDLER_RESULT_HANDLED;
++        return listener_dbus_confirm (connection, message);
+     }
+     if (dbus_message_is_method_call (message, GS_LISTENER_SERVICE, "Quit")) {
+         g_signal_emit (listener, signals[QUIT], 0);
+-        return DBUS_HANDLER_RESULT_HANDLED;
++        return listener_dbus_confirm (connection, message);
+     }
+     if (dbus_message_is_method_call (message, GS_LISTENER_SERVICE, "Cycle")) {
+         g_signal_emit (listener, signals[CYCLE], 0);
+-        return DBUS_HANDLER_RESULT_HANDLED;
++        return listener_dbus_confirm (connection, message);
+     }
+     if (dbus_message_is_method_call (message, GS_LISTENER_SERVICE, "Inhibit")) {
+         return listener_dbus_add_ref_entry (listener, REF_ENTRY_TYPE_INHIBIT, connection, message);
+@@ -1345,7 +1364,7 @@ listener_dbus_handle_session_message (DBusConnection *connection,
+     }
+     if (dbus_message_is_method_call (message, GS_LISTENER_SERVICE, "SimulateUserActivity")) {
+         g_signal_emit (listener, signals[SIMULATE_USER_ACTIVITY], 0);
+-        return DBUS_HANDLER_RESULT_HANDLED;
++        return listener_dbus_confirm (connection, message);
+     }
+     if (dbus_message_is_method_call (message, "org.freedesktop.DBus.Introspectable", "Introspect")) {
+         return do_introspect (connection, message, local_interface);
+-- 
+cgit v1.2.3
+

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-28 19:39:37 UTC (rev 378636)
+++ PKGBUILD	2020-03-28 19:39:51 UTC (rev 378637)
@@ -1,34 +0,0 @@
-# Maintainer: Christian Hesse <mail at eworm.de>
-
-pkgname=xfce4-screensaver
-pkgver=0.1.9
-pkgrel=2
-pkgdesc='Xfce Screensaver'
-arch=('x86_64')
-url='https://docs.xfce.org/apps/screensaver/start'
-license=('GPL2')
-groups=('xfce4-goodies')
-depends=('libxss' 'libxklavier' 'libwnck3' 'garcon' 'dbus-glib' 'python' 'python-gobject')
-makedepends=('intltool')
-backup=('etc/pam.d/xfce4-screensaver')
-source=("https://archive.xfce.org/src/apps/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2")
-sha256sums=('5743ff271f3df3cdeb7f9e8ba63548f6cf0c9e37a16ebf1ccfccf827bd47e486')
-
-build() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  ./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --libexecdir=/usr/lib \
-    --localstatedir=/var \
-    --disable-static \
-    --disable-debug
-  make
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  make DESTDIR="$pkgdir" install
-}

Copied: xfce4-screensaver/repos/extra-x86_64/PKGBUILD (from rev 378636, xfce4-screensaver/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-28 19:39:51 UTC (rev 378637)
@@ -0,0 +1,42 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=xfce4-screensaver
+pkgver=0.1.9
+pkgrel=3
+pkgdesc='Xfce Screensaver'
+arch=('x86_64')
+url='https://docs.xfce.org/apps/screensaver/start'
+license=('GPL2')
+groups=('xfce4-goodies')
+depends=('libxss' 'libxklavier' 'libwnck3' 'garcon' 'dbus-glib' 'python' 'python-gobject')
+makedepends=('intltool')
+backup=('etc/pam.d/xfce4-screensaver')
+source=("https://archive.xfce.org/src/apps/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2"
+        '0001-Send-empty-DBus-responses.patch')
+sha256sums=('5743ff271f3df3cdeb7f9e8ba63548f6cf0c9e37a16ebf1ccfccf827bd47e486'
+            'fe4c1c13431f62ca0cd22fa21ff97648c8edaf023d55027337b2a096e852c680')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  patch -Np1 < ../0001-Send-empty-DBus-responses.patch
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --libexecdir=/usr/lib \
+    --localstatedir=/var \
+    --disable-static \
+    --disable-debug
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list