pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/wm/xfce4-wm wm/xfce4-wm: fix crasher bug
details: https://anonhg.NetBSD.org/pkgsrc/rev/a1991aac12f5
branches: trunk
changeset: 317540:a1991aac12f5
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Wed Jan 09 01:33:35 2019 +0000
description:
wm/xfce4-wm: fix crasher bug
Address PR pkg/53396, reported and solved by Martin Husemann.
diffstat:
wm/xfce4-wm/Makefile | 4 +-
wm/xfce4-wm/distinfo | 3 +-
wm/xfce4-wm/patches/patch-src_startup__notification.c | 26 +++++++++++++++++++
3 files changed, 30 insertions(+), 3 deletions(-)
diffs (55 lines):
diff -r 6810330da2ac -r a1991aac12f5 wm/xfce4-wm/Makefile
--- a/wm/xfce4-wm/Makefile Wed Jan 09 01:28:45 2019 +0000
+++ b/wm/xfce4-wm/Makefile Wed Jan 09 01:33:35 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.66 2018/11/14 22:22:34 kleink Exp $
+# $NetBSD: Makefile,v 1.67 2019/01/09 01:33:35 gutteridge Exp $
-PKGREVISION= 2
+PKGREVISION= 3
.include "../../meta-pkgs/xfce4/Makefile.common"
VERSION= 4.13.1
diff -r 6810330da2ac -r a1991aac12f5 wm/xfce4-wm/distinfo
--- a/wm/xfce4-wm/distinfo Wed Jan 09 01:28:45 2019 +0000
+++ b/wm/xfce4-wm/distinfo Wed Jan 09 01:33:35 2019 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.25 2018/11/05 18:58:49 bsiegert Exp $
+$NetBSD: distinfo,v 1.26 2019/01/09 01:33:35 gutteridge Exp $
SHA1 (xfwm4-4.13.1.tar.bz2) = 74e367d8b1e37872c3a7c5d0b5a1e0b1195a6228
RMD160 (xfwm4-4.13.1.tar.bz2) = ca6a598107a1a0bb8ab2e9837a43c25955295754
SHA512 (xfwm4-4.13.1.tar.bz2) = 2ac5acdefff3a89b8525719b345dfeb2dc71104b4da341afe99d7c57c049753c4cdb81a512d1f344e5fb463c7143673e83316b63888777bdcf254c4a07ca8320
Size (xfwm4-4.13.1.tar.bz2) = 1224120 bytes
SHA1 (patch-defaults_defaults) = 116409b6ee52344984bf6547c9f6cf06d6d66b92
+SHA1 (patch-src_startup__notification.c) = 1f9abc22d52145b6fef71a9a00ad0eea76b15c6e
diff -r 6810330da2ac -r a1991aac12f5 wm/xfce4-wm/patches/patch-src_startup__notification.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/xfce4-wm/patches/patch-src_startup__notification.c Wed Jan 09 01:33:35 2019 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_startup__notification.c,v 1.1 2019/01/09 01:33:35 gutteridge Exp $
+
+Crash fixer from Martin Husemann in PR pkg/53396:
+sn_startup_sequence_get_last_active_time takes two long pointer
+arguments, but xfce4-wm passes pointers to may-be-different types.
+
+--- src/startup_notification.c.orig 2018-07-29 13:08:54.000000000 +0000
++++ src/startup_notification.c
+@@ -128,6 +128,7 @@ sn_collect_timed_out_foreach (void *elem
+ SnStartupSequence *sequence;
+ time_t tv_sec;
+ suseconds_t tv_usec;
++ long l_sec, l_usec;
+ double elapsed;
+
+ g_return_if_fail (data != NULL);
+@@ -135,7 +136,8 @@ sn_collect_timed_out_foreach (void *elem
+
+ sequence = element;
+ ctod = (CollectTimedOutData *) data;
+- sn_startup_sequence_get_last_active_time (sequence, &tv_sec, &tv_usec);
++ sn_startup_sequence_get_last_active_time (sequence, &l_sec, &l_usec);
++ tv_sec = l_sec; tv_usec = l_sec;
+
+ elapsed =
+ ((((double) ctod->now.tv_sec - tv_sec) * G_USEC_PER_SEC +
Home |
Main Index |
Thread Index |
Old Index