[packages/mk-livestatus] Up to 1.2.8p27

arekm arekm at pld-linux.org
Fri Nov 27 21:57:39 CET 2026


commit 50328a571eb8b0aeec03fb9d12a85a4ddb6ceeb4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 15:48:42 2026 +0100

    Up to 1.2.8p27

 format-event-broker-options.patch | 15 +++++++++++++++
 logcache-pthread.patch            | 24 ++++++++++++------------
 mk-livestatus.spec                | 12 +++++++-----
 socket-path.patch                 | 12 ++++++------
 4 files changed, 40 insertions(+), 23 deletions(-)
---
diff --git a/mk-livestatus.spec b/mk-livestatus.spec
index ece2225..a337d9b 100644
--- a/mk-livestatus.spec
+++ b/mk-livestatus.spec
@@ -1,14 +1,15 @@
 Summary:	Accessing Nagios status data
 Name:		mk-livestatus
-Version:	1.2.6p9
-Release:	2
+Version:	1.2.8p27
+Release:	1
 License:	GPL v2
 Group:		Applications
-# Source0Download: https://mathias-kettner.de/check_mk_download_source.html
-Source0:	https://mathias-kettner.de/download/%{name}-%{version}.tar.gz
-# Source0-md5:	a01b3cc372f5dbe672eee29afeb94dd5
+# Source0Download:	https://checkmk.com/download-source
+Source0:	https://download.checkmk.com/checkmk/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	022f40197783b76bf9a49bd39c255570
 Patch0:		socket-path.patch
 Patch1:		logcache-pthread.patch
+Patch2:		format-event-broker-options.patch
 URL:		http://mathias-kettner.de/checkmk_livestatus.html
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	nagios >= 4.0
@@ -33,6 +34,7 @@ able retrieve historic data from the Nagios log files via Livestatus.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %configure \
diff --git a/format-event-broker-options.patch b/format-event-broker-options.patch
new file mode 100644
index 0000000..ca1cdf5
--- /dev/null
+++ b/format-event-broker-options.patch
@@ -0,0 +1,15 @@
+# event_broker_options is unsigned long with Nagios 4; %d mismatches (-Wformat)
+--- mk-livestatus-1.2.8p27.orig/src/module.c
++++ mk-livestatus-1.2.8p27/src/module.c
+@@ -844,9 +844,9 @@
+     if (!verify_event_broker_options()) {
+         logger(LG_CRIT, "Fatal: bailing out. Please fix event_broker_options.");
+         logger(LG_CRIT,
+-               "Hint: your event_broker_options are set to %d. Try setting it "
++               "Hint: your event_broker_options are set to %lu. Try setting it "
+                "to -1.",
+-               event_broker_options);
++               (unsigned long)event_broker_options);
+         return 1;
+     }
+     if (g_debug_level > 0) {
diff --git a/logcache-pthread.patch b/logcache-pthread.patch
index fb15ad2..15fd537 100644
--- a/logcache-pthread.patch
+++ b/logcache-pthread.patch
@@ -8,24 +8,24 @@ Fix missing #include <pthread.h> and duplicate symbol with GCC 15 / -fno-common.
    multiple-definition link error.  logger.c only uses the variable; the
    definition lives in module.c.  Change logger.c to an extern declaration.
 
---- mk-livestatus-1.2.6p9/src/LogCache.cc~	2015-06-24 12:48:37.000000000 +0200
-+++ mk-livestatus-1.2.6p9/src/LogCache.cc	2026-05-08 00:00:00.000000000 +0200
+--- mk-livestatus-1.2.8p27.orig/src/LogCache.cc
++++ mk-livestatus-1.2.8p27/src/LogCache.cc
 @@ -30,6 +30,7 @@
- #include <sys/stat.h>
- #include <sys/types.h>
+ #include <stdlib.h>
+ #include <syslog.h>
  #include <time.h>
 +#include <pthread.h>
  #include <unistd.h>
-
+ #include <utility>
+ #include "Logfile.h"
+--- mk-livestatus-1.2.8p27.orig/src/logger.c
++++ mk-livestatus-1.2.8p27/src/logger.c
+@@ -32,7 +32,7 @@
  #include "nagios.h"
---- mk-livestatus-1.2.6p9/src/logger.c~	2015-06-24 12:48:37.000000000 +0200
-+++ mk-livestatus-1.2.6p9/src/logger.c	2026-05-08 00:00:00.000000000 +0200
-@@ -31,7 +31,7 @@
- #include <pthread.h>
-
+ 
  extern char g_logfile_path[];
 -pthread_t g_mainthread_id;
 +extern pthread_t g_mainthread_id;
  FILE *g_logfile = 0;
-
- void open_logfile()
+ 
+ void open_logfile() {
diff --git a/socket-path.patch b/socket-path.patch
index 30ed7d9..8463523 100644
--- a/socket-path.patch
+++ b/socket-path.patch
@@ -1,10 +1,10 @@
---- mk-livestatus-1.2.6p9/./src/livestatus.h~	2015-06-24 12:48:37.000000000 +0300
-+++ mk-livestatus-1.2.6p9/./src/livestatus.h	2015-08-06 00:36:38.198382095 +0300
-@@ -25,6 +25,6 @@
- #ifndef livestatus_h
- #define livestatus_h
+--- mk-livestatus-1.2.8p27.orig/src/livestatus.h
++++ mk-livestatus-1.2.8p27/src/livestatus.h
+@@ -27,6 +27,6 @@
+ 
+ #include "config.h"  // IWYU pragma: keep
  
 -#define DEFAULT_SOCKET_PATH "/usr/local/nagios/var/rw/live"
 +#define DEFAULT_SOCKET_PATH "/var/lib/nagios/rw/live"
  
- #endif // livestatus_h
+ #endif  // livestatus_h
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mk-livestatus.git/commitdiff/50328a571eb8b0aeec03fb9d12a85a4ddb6ceeb4



More information about the pld-cvs-commit mailing list