[arch-commits] Commit in xfce4-screensaver/repos/extra-x86_64 (3 files)
Christian Hesse
eworm at archlinux.org
Mon Nov 9 19:45:47 UTC 2020
Date: Monday, November 9, 2020 @ 19:45:47
Author: eworm
Revision: 399927
archrelease: copy trunk to extra-x86_64
Added:
xfce4-screensaver/repos/extra-x86_64/0001-Catch-gs_listener_dbus_init-failures.patch
(from rev 399926, xfce4-screensaver/trunk/0001-Catch-gs_listener_dbus_init-failures.patch)
xfce4-screensaver/repos/extra-x86_64/PKGBUILD
(from rev 399926, xfce4-screensaver/trunk/PKGBUILD)
Deleted:
xfce4-screensaver/repos/extra-x86_64/PKGBUILD
-------------------------------------------------+
0001-Catch-gs_listener_dbus_init-failures.patch | 30 ++++++++
PKGBUILD | 76 ++++++++++++----------
2 files changed, 72 insertions(+), 34 deletions(-)
Copied: xfce4-screensaver/repos/extra-x86_64/0001-Catch-gs_listener_dbus_init-failures.patch (from rev 399926, xfce4-screensaver/trunk/0001-Catch-gs_listener_dbus_init-failures.patch)
===================================================================
--- 0001-Catch-gs_listener_dbus_init-failures.patch (rev 0)
+++ 0001-Catch-gs_listener_dbus_init-failures.patch 2020-11-09 19:45:47 UTC (rev 399927)
@@ -0,0 +1,30 @@
+From f596f888a2b6e6598b9d0e4f0200b60e7f9eef64 Mon Sep 17 00:00:00 2001
+From: Shawn Anastasio <shawn at anastas.io>
+Date: Sun, 6 Sep 2020 19:33:12 +0000
+Subject: [PATCH 1/1] Catch gs_listener_dbus_init failures
+
+In cases where the dbus connection fails, gs_listener_dbus_init
+will fail and return FALSE. Previously, this status code was not
+checked in the gs_listener constructor, resulting in a silent failure
+that eventually resulted in a Segmentation Fault when the listener's
+system_connection pointer gets used.
+
+Add a g_assert to ensure gs_listener_dbus_init succeeds, or bail out
+gracefully on failures.
+---
+ src/gs-listener-dbus.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
+index 6307324..7aebe00 100644
+--- a/src/gs-listener-dbus.c
++++ b/src/gs-listener-dbus.c
+@@ -2196,7 +2196,7 @@ gs_listener_init (GSListener *listener) {
+ #endif
+ listener->priv->prefs = gs_prefs_new();
+
+- gs_listener_dbus_init (listener);
++ g_assert (gs_listener_dbus_init (listener));
+
+ init_session_id (listener);
+
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-09 19:45:40 UTC (rev 399926)
+++ PKGBUILD 2020-11-09 19:45:47 UTC (rev 399927)
@@ -1,34 +0,0 @@
-# Maintainer: Christian Hesse <mail at eworm.de>
-
-pkgname=xfce4-screensaver
-pkgver=0.1.11
-pkgrel=1
-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=('814020da160ac4f9bcd79ae098ca6dd17643144214613dcb687821c8d8deac77')
-
-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 399926, xfce4-screensaver/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-09 19:45:47 UTC (rev 399927)
@@ -0,0 +1,42 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=xfce4-screensaver
+pkgver=0.1.11
+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"
+ '0001-Catch-gs_listener_dbus_init-failures.patch')
+sha256sums=('814020da160ac4f9bcd79ae098ca6dd17643144214613dcb687821c8d8deac77'
+ '8037d7f257e30a85b0acff2f0697973ed46e17c567f3fdde87b52437eaad6208')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -Np1 -R < ../0001-Catch-gs_listener_dbus_init-failures.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