]> git.pld-linux.org Git - packages/kannel.git/commitdiff
- fix linking with gcc 10+, rebuild with openssl 3.0.0, rel 4 master auto/th/kannel-1.4.5-4
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 17 Oct 2021 20:13:04 +0000 (22:13 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 17 Oct 2021 20:13:04 +0000 (22:13 +0200)
gcc10.patch [new file with mode: 0644]
kannel.spec

diff --git a/gcc10.patch b/gcc10.patch
new file mode 100644 (file)
index 0000000..ce8092a
--- /dev/null
@@ -0,0 +1,26 @@
+diff -ur gateway-1.4.5/gw/wap_push_ota.c gateway-1.4.5-gcc10/gw/wap_push_ota.c
+--- gateway-1.4.5/gw/wap_push_ota.c    2018-01-17 10:24:38.000000000 +0100
++++ gateway-1.4.5-gcc10/gw/wap_push_ota.c      2021-10-17 22:08:54.582360839 +0200
+@@ -113,7 +113,7 @@
+ static List *ota_queue = NULL;
+-wap_dispatch_func_t *dispatch_to_wsp;
++extern wap_dispatch_func_t *dispatch_to_wsp;
+ wap_dispatch_func_t *dispatch_to_wsp_unit;
+ /**************************************************************************
+diff -ur gateway-1.4.5/wap/wtp_init.c gateway-1.4.5-gcc10/wap/wtp_init.c
+--- gateway-1.4.5/wap/wtp_init.c       2018-01-17 10:24:38.000000000 +0100
++++ gateway-1.4.5-gcc10/wap/wtp_init.c 2021-10-17 22:08:13.404881915 +0200
+@@ -100,8 +100,8 @@
+  */
+ static enum { limbo, running, terminating } initiator_run_status = limbo;
+-static wap_dispatch_func_t *dispatch_to_wdp;
+-static wap_dispatch_func_t *dispatch_to_wsp;
++extern wap_dispatch_func_t *dispatch_to_wdp;
++extern wap_dispatch_func_t *dispatch_to_wsp;
+ /*
+  * This is a timer 'tick'. All timer values multiplies of this value.
index 4f574c4b287311e57c342fe8f6e0c427b4f73205..59ad3d28d20f0bdcc5f0e2ca384e869d5d6d4ad0 100644 (file)
@@ -10,7 +10,7 @@ Summary:      SMS/WAP gateway
 Summary(pl.UTF-8):     Bramka WAP oraz SMS
 Name:          kannel
 Version:       1.4.5
-Release:       3
+Release:       4
 License:       BSD-like (see COPYING)
 Group:         Networking/Daemons
 Source0:       http://www.kannel.org/download/%{version}/gateway-%{version}.tar.gz
@@ -21,6 +21,7 @@ Source3:      %{name}.conf
 Patch0:                %{name}-bison.patch
 Patch1:                %{name}-openssl-1.1.0.patch
 Patch2:                %{name}-parallel-build.patch
+Patch3:                gcc10.patch
 URL:           http://www.kannel.org/
 BuildRequires: ImageMagick
 BuildRequires: autoconf
@@ -88,6 +89,7 @@ Statyczna biblioteka %{name}.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 cp -f /usr/share/automake/config.sub .
This page took 0.071976 seconds and 4 git commands to generate.