aboutsummaryrefslogtreecommitdiffstats
path: root/community/mate-power-manager/0001-removing-backtrace.patch
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <b@bpiotrowski.pl>2015-11-09 11:58:10 +0100
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2015-11-09 11:58:47 +0100
commitcdcc1580d7cb9355ea43aa8dbe8c314ec5a6c274 (patch)
tree6764f9e21789624eb5cac4d2368787149e29b4de /community/mate-power-manager/0001-removing-backtrace.patch
parent4dd718bf53cdde5b7cd6fad035e2020eb42a20c3 (diff)
downloadaports-cdcc1580d7cb9355ea43aa8dbe8c314ec5a6c274.tar.bz2
aports-cdcc1580d7cb9355ea43aa8dbe8c314ec5a6c274.tar.xz
main/mate-power-manager: move to community
Diffstat (limited to 'community/mate-power-manager/0001-removing-backtrace.patch')
-rw-r--r--community/mate-power-manager/0001-removing-backtrace.patch152
1 files changed, 152 insertions, 0 deletions
diff --git a/community/mate-power-manager/0001-removing-backtrace.patch b/community/mate-power-manager/0001-removing-backtrace.patch
new file mode 100644
index 0000000000..536991bc16
--- /dev/null
+++ b/community/mate-power-manager/0001-removing-backtrace.patch
@@ -0,0 +1,152 @@
+From b8907c90dec6a7f6fc2a3c682ddb48d4ebf8406e Mon Sep 17 00:00:00 2001
+From: Alan Lacerda <alacerda@alpinelinux.org>
+Date: Fri, 17 Apr 2015 11:34:47 +0000
+Subject: [PATCH] removing backtrace
+
+---
+ applets/brightness/egg-debug.c | 28 ----------------------------
+ applets/inhibit/egg-debug.c | 28 ----------------------------
+ src/egg-debug.c | 28 ----------------------------
+ 3 files changed, 84 deletions(-)
+
+diff --git a/applets/brightness/egg-debug.c b/applets/brightness/egg-debug.c
+index 3a8e6e7..b06b540 100644
+--- a/applets/brightness/egg-debug.c
++++ b/applets/brightness/egg-debug.c
+@@ -75,31 +75,6 @@ pk_set_console_mode (guint console_code)
+ }
+
+ /**
+- * egg_debug_backtrace:
+- **/
+-void
+-egg_debug_backtrace (void)
+-{
+- void *call_stack[512];
+- int call_stack_size;
+- char **symbols;
+- int i = 1;
+-
+- call_stack_size = backtrace (call_stack, G_N_ELEMENTS (call_stack));
+- symbols = backtrace_symbols (call_stack, call_stack_size);
+- if (symbols != NULL) {
+- pk_set_console_mode (CONSOLE_RED);
+- g_print ("Traceback:\n");
+- while (i < call_stack_size) {
+- g_print ("\t%s\n", symbols[i]);
+- i++;
+- }
+- pk_set_console_mode (CONSOLE_RESET);
+- free (symbols);
+- }
+-}
+-
+-/**
+ * pk_log_line:
+ **/
+ static void
+@@ -229,9 +204,6 @@ egg_error_real (const gchar *func, const gchar *file, const int line, const gcha
+ pk_print_line (func, file, line, buffer, CONSOLE_RED);
+ g_free(buffer);
+
+- /* we want to fix this! */
+- egg_debug_backtrace ();
+-
+ exit (1);
+ }
+
+diff --git a/applets/inhibit/egg-debug.c b/applets/inhibit/egg-debug.c
+index 3a8e6e7..b06b540 100644
+--- a/applets/inhibit/egg-debug.c
++++ b/applets/inhibit/egg-debug.c
+@@ -75,31 +75,6 @@ pk_set_console_mode (guint console_code)
+ }
+
+ /**
+- * egg_debug_backtrace:
+- **/
+-void
+-egg_debug_backtrace (void)
+-{
+- void *call_stack[512];
+- int call_stack_size;
+- char **symbols;
+- int i = 1;
+-
+- call_stack_size = backtrace (call_stack, G_N_ELEMENTS (call_stack));
+- symbols = backtrace_symbols (call_stack, call_stack_size);
+- if (symbols != NULL) {
+- pk_set_console_mode (CONSOLE_RED);
+- g_print ("Traceback:\n");
+- while (i < call_stack_size) {
+- g_print ("\t%s\n", symbols[i]);
+- i++;
+- }
+- pk_set_console_mode (CONSOLE_RESET);
+- free (symbols);
+- }
+-}
+-
+-/**
+ * pk_log_line:
+ **/
+ static void
+@@ -229,9 +204,6 @@ egg_error_real (const gchar *func, const gchar *file, const int line, const gcha
+ pk_print_line (func, file, line, buffer, CONSOLE_RED);
+ g_free(buffer);
+
+- /* we want to fix this! */
+- egg_debug_backtrace ();
+-
+ exit (1);
+ }
+
+diff --git a/src/egg-debug.c b/src/egg-debug.c
+index 3a8e6e7..b06b540 100644
+--- a/src/egg-debug.c
++++ b/src/egg-debug.c
+@@ -75,31 +75,6 @@ pk_set_console_mode (guint console_code)
+ }
+
+ /**
+- * egg_debug_backtrace:
+- **/
+-void
+-egg_debug_backtrace (void)
+-{
+- void *call_stack[512];
+- int call_stack_size;
+- char **symbols;
+- int i = 1;
+-
+- call_stack_size = backtrace (call_stack, G_N_ELEMENTS (call_stack));
+- symbols = backtrace_symbols (call_stack, call_stack_size);
+- if (symbols != NULL) {
+- pk_set_console_mode (CONSOLE_RED);
+- g_print ("Traceback:\n");
+- while (i < call_stack_size) {
+- g_print ("\t%s\n", symbols[i]);
+- i++;
+- }
+- pk_set_console_mode (CONSOLE_RESET);
+- free (symbols);
+- }
+-}
+-
+-/**
+ * pk_log_line:
+ **/
+ static void
+@@ -229,9 +204,6 @@ egg_error_real (const gchar *func, const gchar *file, const int line, const gcha
+ pk_print_line (func, file, line, buffer, CONSOLE_RED);
+ g_free(buffer);
+
+- /* we want to fix this! */
+- egg_debug_backtrace ();
+-
+ exit (1);
+ }
+
+--
+2.3.3
+