[packages/rrdtool] - rel 5, use proper type for time
baggins
baggins at pld-linux.org
Sun Mar 23 14:53:10 CET 2025
commit 10a0534a8ef5c359bee4d574d31efa2d4f9a27ed
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 23 15:08:55 2025 +0100
- rel 5, use proper type for time
rrdtool.spec | 4 +++-
time_t.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/rrdtool.spec b/rrdtool.spec
index e3e19e9..1b8dac0 100644
--- a/rrdtool.spec
+++ b/rrdtool.spec
@@ -24,7 +24,7 @@ Summary(ru.UTF-8): RRDtool - база данных с "циклическим о
Summary(uk.UTF-8): RRDtool - це система зберігання та показу серійних даних
Name: rrdtool
Version: 1.8.0
-Release: 4
+Release: 5
License: GPL v2+ + FLOSS exception
Group: Applications/Databases
Source0: https://github.com/oetiker/rrdtool-1.x/releases/download/v%{version}/%{name}-%{version}.tar.gz
@@ -32,6 +32,7 @@ Source0: https://github.com/oetiker/rrdtool-1.x/releases/download/v%{version}/%{
Patch0: %{name}-tcl-path.patch
Patch1: %{name}-build.patch
Patch2: gcc14.patch
+Patch3: time_t.patch
URL: http://oss.oetiker.ch/rrdtool/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
@@ -311,6 +312,7 @@ Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl.
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
+%patch -P 3 -p1
%{__sed} -i -e 's#\$TCL_PACKAGE_PATH#%{_prefix}/lib#g' configure.ac
%{__sed} -i -e 's#/lib/lua/#/%{_lib}/lua/#g' configure.ac
diff --git a/time_t.patch b/time_t.patch
new file mode 100644
index 0000000..2218ab4
--- /dev/null
+++ b/time_t.patch
@@ -0,0 +1,11 @@
+--- rrdtool-1.8.0/src/rrd_fetch_libdbi.c~ 2022-03-14 15:30:12.000000000 +0100
++++ rrdtool-1.8.0/src/rrd_fetch_libdbi.c 2025-03-23 15:07:12.926649274 +0100
+@@ -410,7 +410,7 @@
+ int isunixtime=1;
+ long gmt_offset=0;
+ /* the result-set */
+- long r_timestamp,l_timestamp,d_timestamp;
++ time_t r_timestamp,l_timestamp,d_timestamp;
+ double r_value,l_value,d_value;
+ int r_status;
+ int rows;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rrdtool.git/commitdiff/10a0534a8ef5c359bee4d574d31efa2d4f9a27ed
More information about the pld-cvs-commit
mailing list