Make verbose logging optional, fix already included upstream.diff -r1.16 -r1.17 pkgsrc/x11/xfce4-session/distinfo
(youri)
@@ -1,11 +1,12 @@ | @@ -1,11 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.16 2015/07/06 10:39:35 richard Exp $ | 1 | $NetBSD: distinfo,v 1.17 2015/07/07 14:04:22 youri Exp $ | |
2 | 2 | |||
3 | SHA1 (xfce4-session-4.12.1.tar.bz2) = ccdeac8bb6b4bb2382a963efdf2e05c09c61fee4 | 3 | SHA1 (xfce4-session-4.12.1.tar.bz2) = ccdeac8bb6b4bb2382a963efdf2e05c09c61fee4 | |
4 | RMD160 (xfce4-session-4.12.1.tar.bz2) = 14db09177003f4139345b4d670015d90ebf28ef6 | 4 | RMD160 (xfce4-session-4.12.1.tar.bz2) = 14db09177003f4139345b4d670015d90ebf28ef6 | |
5 | Size (xfce4-session-4.12.1.tar.bz2) = 1289284 bytes | 5 | Size (xfce4-session-4.12.1.tar.bz2) = 1289284 bytes | |
6 | SHA1 (patch-ac) = 14398273b8169d26f89262310c1ca4d8546a2c0c | 6 | SHA1 (patch-ac) = 14398273b8169d26f89262310c1ca4d8546a2c0c | |
7 | SHA1 (patch-config.h.in) = 88c67de7708c958674de7f222937739dd9f7fc00 | 7 | SHA1 (patch-config.h.in) = 88c67de7708c958674de7f222937739dd9f7fc00 | |
8 | SHA1 (patch-configure) = 22924508b9af1b428dfe41413ff46b5592d17c48 | 8 | SHA1 (patch-configure) = 10b5a5dd2047685012c1a898204cc695c9a70d35 | |
9 | SHA1 (patch-scripts_Makefile.in) = 1d1f2230fc861f222f44b9541d52c157a23c16dc | 9 | SHA1 (patch-scripts_Makefile.in) = 1d1f2230fc861f222f44b9541d52c157a23c16dc | |
10 | SHA1 (patch-settings_xfce4-session.xml) = 6607e682df06674c4e6a3219b911f58f756cfab7 | 10 | SHA1 (patch-settings_xfce4-session.xml) = 6607e682df06674c4e6a3219b911f58f756cfab7 | |
11 | SHA1 (patch-xfce4-session_xfsm-global.h) = 1f7e1dd237b52666755fc385c2a0c74273f28036 | |||
11 | SHA1 (patch-xfsm-shutdown-helper_main.c) = 6f885efe31597360bb9534007daffa46df41c831 | 12 | SHA1 (patch-xfsm-shutdown-helper_main.c) = 6f885efe31597360bb9534007daffa46df41c831 |
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | $NetBSD: patch-configure,v 1.1 2015/07/02 13:15:58 youri Exp $ | 1 | $NetBSD: patch-configure,v 1.2 2015/07/07 14:04:22 youri Exp $ | |
2 | 2 | |||
3 | Add NetBSD backend detection. | 3 | Add NetBSD backend detection. | |
4 | --- configure.orig 2015-06-29 16:19:21.000000000 +0000 | 4 | --- configure.orig 2015-03-16 07:29:45.000000000 +0000 | |
5 | +++ configure | 5 | +++ configure | |
6 | @@ -18208,6 +18208,8 @@ if test x$with_backend = x; then | 6 | @@ -18208,6 +18208,8 @@ if test x$with_backend = x; then | |
7 | with_backend=freebsd ;; #( | 7 | with_backend=freebsd ;; #( | |
8 | *-*dragonfly*) : | 8 | *-*dragonfly*) : | |
9 | with_backend=freebsd ;; #( | 9 | with_backend=freebsd ;; #( | |
10 | + *-*netbsd*) : | 10 | + *-*netbsd*) : | |
11 | + with_backend=netbsd ;; #( | 11 | + with_backend=netbsd ;; #( | |
12 | *-openbsd*) : | 12 | *-openbsd*) : | |
13 | with_backend=openbsd ;; #( | 13 | with_backend=openbsd ;; #( | |
14 | *) : | 14 | *) : | |
15 | @@ -18237,6 +18239,11 @@ if test x$with_backend = xopenbsd; then | 15 | @@ -18237,6 +18239,11 @@ if test x$with_backend = xopenbsd; then | |
16 | $as_echo "#define BACKEND_TYPE_OPENBSD 1" >>confdefs.h | 16 | $as_echo "#define BACKEND_TYPE_OPENBSD 1" >>confdefs.h | |
17 | 17 |
$NetBSD: patch-xfce4-session_xfsm-global.h,v 1.1 2015/07/07 14:04:22 youri Exp $
Make verbose logging optional.
--- xfce4-session/xfsm-global.h.orig 2014-09-28 14:51:01.000000000 +0000
+++ xfce4-session/xfsm-global.h
@@ -49,7 +49,10 @@ extern XfsmSplashScreen *splash_screen;
#if defined(G_HAVE_ISO_VARARGS)
#define xfsm_verbose(...)\
- xfsm_verbose_real (__func__, __FILE__, __LINE__, __VA_ARGS__)
+G_STMT_START{ \
+ if (G_UNLIKELY (verbose)) \
+ xfsm_verbose_real (__func__, __FILE__, __LINE__, __VA_ARGS__);\
+}G_STMT_END
#else