[packages/rrdtool] Up to 1.11.0
arekm
arekm at pld-linux.org
Thu Nov 19 22:04:27 CET 2026
commit f806c9baae9ab7a2d748fa12ec6afaff11770dd4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 19 21:59:56 2026 +0100
Up to 1.11.0
lua-info-counter.patch | 18 ++++++++++++++++++
rrdcached-systemd-listen-fds.patch | 28 ++++++++++++++++++++++++++++
rrdtool-build.patch | 12 ------------
rrdtool.spec | 21 ++++++++++++++-------
4 files changed, 60 insertions(+), 19 deletions(-)
---
diff --git a/rrdtool.spec b/rrdtool.spec
index 7023db3..b4438d5 100644
--- a/rrdtool.spec
+++ b/rrdtool.spec
@@ -11,6 +11,7 @@
%bcond_without rrd_graph # all rrd_graph functions (depend on cairo+pango)
%bcond_without rrdcgi # building of rrdcgi (depends on rrd_graph)
%bcond_without static_libs # static library
+%bcond_without tests # unit tests
%if %{without rrd_graph}
%undefine with_rrdcgi
@@ -23,16 +24,17 @@ Summary(pt_BR.UTF-8): Round Robin Database, uma ferramenta para construção de
Summary(ru.UTF-8): RRDtool - база данных с "циклическим обновлением"
Summary(uk.UTF-8): RRDtool - це система зберігання та показу серійних даних
Name: rrdtool
-Version: 1.10.3
-Release: 2
+Version: 1.11.0
+Release: 1
License: GPL v2+ + FLOSS exception
Group: Applications/Databases
Source0: https://github.com/oetiker/rrdtool-1.x/releases/download/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 6d8d2e1fd7d2abe1a71169e6fd5587c4
+# Source0-md5: 289fa4c8f31db4626deddb6603ee117e
Patch0: %{name}-tcl-path.patch
-Patch1: %{name}-build.patch
Patch2: python-path.patch
-URL: http://oss.oetiker.ch/rrdtool/
+Patch3: rrdcached-systemd-listen-fds.patch
+Patch4: lua-info-counter.patch
+URL: https://oss.oetiker.ch/rrdtool/
BuildRequires: autoconf >= 2.69
BuildRequires: automake
%{?with_ceph:BuildRequires: ceph-devel}
@@ -64,6 +66,7 @@ BuildRequires: rpm-perlprov
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-pip
+BuildRequires: python3-setuptools >= 1:70.1
%endif
%if %{with ruby}
BuildRequires: rpm-rubyprov
@@ -310,8 +313,9 @@ Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl.
%prep
%setup -q
%patch -P 0 -p1
-%patch -P 1 -p1
%patch -P 2 -p1
+%patch -P 3 -p1
+%patch -P 4 -p1
%{__sed} -i -e 's#\$TCL_PACKAGE_PATH#%{_prefix}/lib#g' configure.ac
%{__sed} -i -e 's#/lib/lua/#/%{_lib}/lua/#g' configure.ac
@@ -349,13 +353,16 @@ install -d perl-docs/html
%{!?with_python:--disable-python} \
%{!?with_ruby:--disable-ruby} \
%{!?with_tcl:--disable-tcl} \
- --with-perl-options="INSTALLDIRS=vendor"
+ --with-perl-options="INSTALLDIRS=vendor" \
+ --with-systemdsystemunitdir=%{systemdunitdir}
# empty RUBY_MAKE_OPTIONS as workaround for some make weirdness
# (tried to install without DESTDIR on plain make)
%{__make} \
RUBY_MAKE_OPTIONS=
+%{?with_tests:%{__make} check}
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
diff --git a/lua-info-counter.patch b/lua-info-counter.patch
new file mode 100644
index 0000000..0a2e418
--- /dev/null
+++ b/lua-info-counter.patch
@@ -0,0 +1,18 @@
+Lua info() reads RD_I_CNT values (step, rra[].rows, ...) from u_val instead of
+u_cnt, so they come back as garbage such as 2.96e-322.
+
+--- rrdtool-1.11.0.org/bindings/lua/rrdlua.c 2026-11-19 21:53:30.312771467 +0100
++++ rrdtool-1.11.0/bindings/lua/rrdlua.c 2026-11-19 21:53:30.542268923 +0100
+@@ -114,11 +114,7 @@
+ lua_pushstring(L, data->key);
+ switch (data->type) {
+ case RD_I_CNT:
+- if (isnan(data->value.u_val)) {
+- lua_pushnil(L);
+- } else {
+- lua_pushnumber(L, (lua_Number) data->value.u_val);
+- }
++ lua_pushnumber(L, (lua_Number) data->value.u_cnt);
+ lua_rawset(L, -3);
+ break;
+ case RD_I_VAL:
diff --git a/rrdcached-systemd-listen-fds.patch b/rrdcached-systemd-listen-fds.patch
new file mode 100644
index 0000000..f1a98e3
--- /dev/null
+++ b/rrdcached-systemd-listen-fds.patch
@@ -0,0 +1,28 @@
+From 131287b18ada968bc186ef06b88f438477890cfd Mon Sep 17 00:00:00 2001
+From: emwgit <emw-github-2026 at nocabal.de>
+Date: Wed, 21 Oct 2026 00:39:39 +0200
+Subject: [PATCH] rrdcached: zero-initialise listen_fds entry for systemd
+ sockets
+
+open_listen_sockets_systemd() left addr and other fields of the realloc()ed entry uninitialised, so listen_thread_main() called strdup() on a garbage pointer on the first connection. Fixes #1387.
+---
+ CHANGES | 4 ++++
+ src/rrd_daemon.c | 5 ++---
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
+index c1ee1f04e..0f48d686b 100644
+--- a/src/rrd_daemon.c
++++ b/src/rrd_daemon.c
+@@ -4254,9 +4254,8 @@ static int open_listen_sockets_systemd(
+ return i;
+ }
+
+- listen_fds[listen_fds_num].wbuf_data = NULL;
+- listen_fds[listen_fds_num].wbuf_size = 0;
+- listen_fds[listen_fds_num].wbuf_capacity = 0;
++ /* realloc() memory is uninitialized; addr must be NULL, not garbage */
++ memset(&listen_fds[listen_fds_num], 0, sizeof(listen_fds[0]));
+ listen_fds[listen_fds_num].fd = sd_fd;
+ listen_fds[listen_fds_num].family = sa.sun_family;
+ /* Add permissions to the socket */
diff --git a/rrdtool-build.patch b/rrdtool-build.patch
deleted file mode 100644
index dc8d808..0000000
--- a/rrdtool-build.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur rrdtool-1.7.2.org/doc/Makefile.am rrdtool-1.7.2/doc/Makefile.am
---- rrdtool-1.7.2.org/doc/Makefile.am 2019-02-04 14:54:27.000000000 +0100
-+++ rrdtool-1.7.2/doc/Makefile.am 2019-09-26 12:54:12.423554850 +0200
-@@ -62,7 +62,7 @@
- $(AM_V_GEN)@POD2MAN@ --release=$(VERSION) --center=rrdtool --section=3 $< > $@
-
- .1.txt .3.txt:
-- $(AM_V_GEN)GROFF_NO_SGR=1 @NROFF@ -man -Tlp -Wbreak $< > $@
-+ $(AM_V_GEN)GROFF_NO_SGR=1 @NROFF@ -man -Tlp $< > $@
-
- .1.pdf .3.pdf:
- $(AM_V_GEN)@TROFF@ -man $< | ps2pdf - $@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rrdtool.git/commitdiff/f806c9baae9ab7a2d748fa12ec6afaff11770dd4
More information about the pld-cvs-commit
mailing list