[packages/cacti-spine] - rel 2, upstream removed backtrace support
baggins
baggins at pld-linux.org
Mon Dec 29 00:07:43 CET 2025
commit a56e552e4ce82b6d96363a8db53e577eb75f7668
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Dec 29 02:07:32 2025 +0100
- rel 2, upstream removed backtrace support
cacti-spine.spec | 4 ++-
no-backtrace.patch | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 93 insertions(+), 1 deletion(-)
---
diff --git a/cacti-spine.spec b/cacti-spine.spec
index 3431283..f6396f6 100644
--- a/cacti-spine.spec
+++ b/cacti-spine.spec
@@ -6,12 +6,13 @@ Summary: A backend data gatherer for Cacti
Summary(pl.UTF-8): Backend gromadzący dane dla Cacti
Name: cacti-spine
Version: 1.2.30
-Release: 1
+Release: 2
License: GPL
Group: Daemons
Source0: https://files.cacti.net/spine/%{name}-%{version}.tar.gz
# Source0-md5: 249ca44c5a7863a2b5fcd382c8a77055
Patch0: %{name}-paths.patch
+Patch1: no-backtrace.patch
# Official patches http://www.cacti.net/spine_download_patches.php
URL: http://www.cacti.net/
BuildRequires: autoconf
@@ -47,6 +48,7 @@ procesorem cmd.php.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__libtoolize}
diff --git a/no-backtrace.patch b/no-backtrace.patch
new file mode 100644
index 0000000..6702660
--- /dev/null
+++ b/no-backtrace.patch
@@ -0,0 +1,90 @@
+From 8ffdcf01aa766459176465d583576468ebad96a0 Mon Sep 17 00:00:00 2001
+From: TheWitness <thewitness at cacti.net>
+Date: Thu, 26 Jun 2025 23:23:51 -0400
+Subject: [PATCH] Fix: #365 - Removing Backtrace support
+
+---
+ configure.ac | 22 ----------------------
+ error.c | 22 ----------------------
+ error.h | 4 ----
+ 4 files changed, 2 insertions(+), 49 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 84c2069..9b5c4fa 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -443,28 +443,6 @@ else
+ AC_MSG_RESULT([no])
+ fi
+
+-# See if we can support backtracing
+-AC_MSG_CHECKING([if we can support backtracing])
+-AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+- #include <stdlib.h>
+- #include <execinfo.h>
+- ]], [[
+- void *array[10];
+- size_t size;
+-
+- // get void*'s for all entries on the stack
+- size = backtrace(array, 10);
+- if (size) {
+- exit(0);
+- } else {
+- exit(1);
+- }
+- ]])],[ AC_MSG_RESULT(yes)
+- AC_DEFINE(HAVE_EXECINFO_H,1,[Do we have backtracing capabilities?])
+- ],[AC_MSG_RESULT(no)
+-])
+-
+-# See if we can support backtracing
+ AC_MSG_CHECKING([if we can support mysql/mariadb retry count])
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdlib.h>
+diff --git a/error.c b/error.c
+index cfdec00..846678e 100644
+--- a/error.c
++++ b/error.c
+@@ -73,29 +73,7 @@ static void spine_signal_handler(int spine_signal) {
+ break;
+ case SIGSEGV:
+ fprintf(stderr, "%s FATAL: Spine Encountered a Segmentation Fault\n", logtime);
+-
+- #ifdef HAVE_EXECINFO_H
+- int row = 0;
+- char **exit_strings = NULL;
+-
+- fprintf(stderr, "Generating backtrace...%ld line(s)...\n", set.exit_size);
+-
+- if (set.exit_size) {
+- set.exit_size = backtrace(set.exit_stack, set.exit_size);
+- exit_strings = backtrace_symbols(set.exit_stack, set.exit_size);
+-
+- if (exit_strings) {
+- for (row = 0; row < set.exit_size; row++) {
+- fprintf(stderr, "%3d: %s\n", row, exit_strings[row]);
+- }
+-
+- free(exit_strings);
+- }
+- }
+- #endif
+-
+ exit(1);
+-
+ break;
+ case SIGBUS:
+ fprintf(stderr, "%s FATAL: Spine Encountered a Bus Error\n", logtime);
+diff --git a/error.h b/error.h
+index 0ba1d3b..5ced1f6 100644
+--- a/error.h
++++ b/error.h
+@@ -33,7 +33,3 @@
+
+ extern void install_spine_signal_handler(void);
+ extern void uninstall_spine_signal_handler(void);
+-#ifdef HAVE_EXECINFO_H
+-extern char ** backtrace_symbols();
+-extern int backtrace();
+-#endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cacti-spine.git/commitdiff/a56e552e4ce82b6d96363a8db53e577eb75f7668
More information about the pld-cvs-commit
mailing list