[packages/kannel] - rel 7, fix time types
baggins
baggins at pld-linux.org
Sun Sep 7 23:49:13 CEST 2025
commit 008ae0883537a0831af52cf094d76541c56bbb86
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Sep 8 01:49:02 2025 +0200
- rel 7, fix time types
kannel.spec | 4 +++-
time_t.patch | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+), 1 deletion(-)
---
diff --git a/kannel.spec b/kannel.spec
index 45cb939..104c4fe 100644
--- a/kannel.spec
+++ b/kannel.spec
@@ -10,7 +10,7 @@ Summary: SMS/WAP gateway
Summary(pl.UTF-8): Bramka WAP oraz SMS
Name: kannel
Version: 1.4.5
-Release: 6
+Release: 7
License: BSD-like (see COPYING)
Group: Networking/Daemons
Source0: http://www.kannel.org/download/%{version}/gateway-%{version}.tar.gz
@@ -25,6 +25,7 @@ Patch3: gcc10.patch
Patch4: 37_define_DEFAULT_SOURCE.patch
Patch5: fix-build-with-autoconf-2.7.patch
Patch6: 80_implicit_func.patch
+Patch7: time_t.patch
URL: http://www.kannel.org/
BuildRequires: ImageMagick
BuildRequires: autoconf
@@ -96,6 +97,7 @@ Statyczna biblioteka %{name}.
%patch -P4 -p1
%patch -P5 -p1
%patch -P6 -p1
+%patch -P7 -p1
%build
cp -f /usr/share/automake/config.sub .
diff --git a/time_t.patch b/time_t.patch
new file mode 100644
index 0000000..308c8cf
--- /dev/null
+++ b/time_t.patch
@@ -0,0 +1,52 @@
+diff -ur gateway-1.4.5.orig/gw/msg-decl.h gateway-1.4.5/gw/msg-decl.h
+--- gateway-1.4.5.orig/gw/msg-decl.h 2018-01-17 10:24:38.000000000 +0100
++++ gateway-1.4.5/gw/msg-decl.h 2025-09-08 01:44:29.026662402 +0200
+@@ -83,7 +83,7 @@
+ OCTSTR(receiver)
+ OCTSTR(udhdata)
+ OCTSTR(msgdata)
+- INTEGER(time)
++ TIME_T(time)
+ OCTSTR(smsc_id)
+ OCTSTR(smsc_number)
+ OCTSTR(foreign_id)
+@@ -109,14 +109,14 @@
+ VOID(split_parts)
+ INTEGER(priority)
+ INTEGER(resend_try)
+- INTEGER(resend_time)
++ TIME_T(resend_time)
+ OCTSTR(meta_data)
+ })
+
+ MSG(ack,
+ {
+ INTEGER(nack)
+- INTEGER(time)
++ TIME_T(time)
+ UUID(id)
+ })
+
+diff -ur gateway-1.4.5.orig/gw/msg.h gateway-1.4.5/gw/msg.h
+--- gateway-1.4.5.orig/gw/msg.h 2018-01-17 10:24:38.000000000 +0100
++++ gateway-1.4.5/gw/msg.h 2025-09-08 01:43:43.523329070 +0200
+@@ -79,6 +79,7 @@
+ typedef struct {
+ enum msg_type type;
+
++ #define TIME_T(name) time_t name;
+ #define INTEGER(name) long name;
+ #define OCTSTR(name) Octstr *name;
+ #define UUID(name) uuid_t name;
+diff -ur gateway-1.4.5.orig/gw/smsc/smsc_smpp.c gateway-1.4.5/gw/smsc/smsc_smpp.c
+--- gateway-1.4.5.orig/gw/smsc/smsc_smpp.c 2018-03-08 12:26:39.000000000 +0100
++++ gateway-1.4.5/gw/smsc/smsc_smpp.c 2025-09-08 01:46:36.423329073 +0200
+@@ -1170,7 +1170,7 @@
+ }
+
+
+-static int send_enquire_link(SMPP *smpp, Connection *conn, long *last_sent)
++static int send_enquire_link(SMPP *smpp, Connection *conn, time_t *last_sent)
+ {
+ SMPP_PDU *pdu;
+ Octstr *os;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kannel.git/commitdiff/008ae0883537a0831af52cf094d76541c56bbb86
More information about the pld-cvs-commit
mailing list