mirror of
https://gitlab.com/CinnamonSlackBuilds/csb.git
synced 2024-12-26 21:59:28 +01:00
xapp: Patch with debug.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
ac7443dcb9
commit
2ed7946942
2 changed files with 33 additions and 0 deletions
31
xapp/debug.patch
Normal file
31
xapp/debug.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
From 2015b643c95127fc34b05e3252562599ce485b14 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Webster <miketwebster@gmail.com>
|
||||||
|
Date: Sat, 3 Jun 2023 09:38:22 -0400
|
||||||
|
Subject: [PATCH] xapp-debug.c: build only with ENABLE_DEBUG.
|
||||||
|
|
||||||
|
xapp-debug.h gets disable, so the build would break when buildtype is
|
||||||
|
'release'.
|
||||||
|
|
||||||
|
Fixes #157.
|
||||||
|
---
|
||||||
|
libxapp/xapp-debug.c | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/libxapp/xapp-debug.c b/libxapp/xapp-debug.c
|
||||||
|
index 8bb10ea..da2b913 100644
|
||||||
|
--- a/libxapp/xapp-debug.c
|
||||||
|
+++ b/libxapp/xapp-debug.c
|
||||||
|
@@ -28,6 +28,8 @@
|
||||||
|
|
||||||
|
#include "xapp-debug.h"
|
||||||
|
|
||||||
|
+#ifdef ENABLE_DEBUG
|
||||||
|
+
|
||||||
|
static DebugFlags flags = 0;
|
||||||
|
static gboolean initialized = FALSE;
|
||||||
|
|
||||||
|
@@ -127,3 +129,4 @@ xapp_debug_valist (DebugFlags flag,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+#endif /* ENABLE_DEBUG */
|
|
@ -74,6 +74,8 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
|
patch -p1 < $CWD/debug.patch
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
meson setup \
|
meson setup \
|
||||||
|
|
Loading…
Reference in a new issue