[packages/kannel] Rel 6; few patches from debian
arekm
arekm at pld-linux.org
Sun Aug 24 22:11:40 CEST 2025
commit 1a2ad784bfb67bc5b6de2bc60e9761106ae145d7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Aug 24 22:11:36 2025 +0200
Rel 6; few patches from debian
37_define_DEFAULT_SOURCE.patch | 51 +++++++++++++++++++++++++++++++++++++++
80_implicit_func.patch | 23 ++++++++++++++++++
fix-build-with-autoconf-2.7.patch | 22 +++++++++++++++++
kannel.spec | 8 +++++-
4 files changed, 103 insertions(+), 1 deletion(-)
---
diff --git a/kannel.spec b/kannel.spec
index 8857632..45cb939 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: 5
+Release: 6
License: BSD-like (see COPYING)
Group: Networking/Daemons
Source0: http://www.kannel.org/download/%{version}/gateway-%{version}.tar.gz
@@ -22,6 +22,9 @@ Patch0: %{name}-bison.patch
Patch1: %{name}-openssl-1.1.0.patch
Patch2: %{name}-parallel-build.patch
Patch3: gcc10.patch
+Patch4: 37_define_DEFAULT_SOURCE.patch
+Patch5: fix-build-with-autoconf-2.7.patch
+Patch6: 80_implicit_func.patch
URL: http://www.kannel.org/
BuildRequires: ImageMagick
BuildRequires: autoconf
@@ -90,6 +93,9 @@ Statyczna biblioteka %{name}.
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
+%patch -P4 -p1
+%patch -P5 -p1
+%patch -P6 -p1
%build
cp -f /usr/share/automake/config.sub .
diff --git a/37_define_DEFAULT_SOURCE.patch b/37_define_DEFAULT_SOURCE.patch
new file mode 100644
index 0000000..0f808f3
--- /dev/null
+++ b/37_define_DEFAULT_SOURCE.patch
@@ -0,0 +1,51 @@
+From: Jonas Smedegaard <dr at jones.dk>
+Date: Fri, 27 Sep 2024 23:19:10 +0200
+Subject: Define _DEFAULT_SOURCE (not _VSD_SOURCE or _SVID_SOURCE)
+
+---
+ addons/opensmppbox/configure.in | 2 +-
+ addons/sqlbox/configure.in | 2 +-
+ gwlib/gw_uuid.c | 4 ++--
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/addons/opensmppbox/configure.in b/addons/opensmppbox/configure.in
+index f73b57e..08cd25f 100644
+--- a/addons/opensmppbox/configure.in
++++ b/addons/opensmppbox/configure.in
+@@ -138,7 +138,7 @@ case "$host" in
+ LIBS="$LIBS -L/opt/local/lib"
+ ;;
+ *-linux-*)
+- CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
++ CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE"
+ LDFLAGS="$LDFLAGS -rdynamic"
+ ;;
+ *-*-openbsd* | *-*-freebsd*)
+diff --git a/addons/sqlbox/configure.in b/addons/sqlbox/configure.in
+index 575db0d..f2e140e 100644
+--- a/addons/sqlbox/configure.in
++++ b/addons/sqlbox/configure.in
+@@ -162,7 +162,7 @@ case "$host" in
+ LIBTOOL="libtool -static -o"
+ ;;
+ *-linux-*)
+- CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
++ CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE"
+ LDFLAGS="$LDFLAGS -rdynamic"
+ ;;
+ *-*-openbsd* | *-*-freebsd*)
+diff --git a/gwlib/gw_uuid.c b/gwlib/gw_uuid.c
+index 102cb50..b1b48b5 100644
+--- a/gwlib/gw_uuid.c
++++ b/gwlib/gw_uuid.c
+@@ -13,8 +13,8 @@
+ * Force inclusion of SVID stuff since we need it if we're compiling in
+ * gcc-wall wall mode
+ */
+-#ifndef _SVID_SOURCE
+-#define _SVID_SOURCE
++#ifndef _DEFAULT_SOURCE
++#define _DEFAULT_SOURCE
+ #endif
+
+ #include "gw-config.h"
diff --git a/80_implicit_func.patch b/80_implicit_func.patch
new file mode 100644
index 0000000..04270db
--- /dev/null
+++ b/80_implicit_func.patch
@@ -0,0 +1,23 @@
+From: Guillem Jover <gjover at sipwise.com>
+Date: Fri, 27 Sep 2024 23:19:10 +0200
+Subject: Add missing includes in configure check for OpenSSL
+
+With the new -Werror=implicit-function-declaration build flag set by
+dpkg-buildflags the configure check for OpenSSL fails due to a missing
+include for exit(3).
+---
+ configure.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configure.in b/configure.in
+index 990ddf5..16b7db0 100644
+--- a/configure.in
++++ b/configure.in
+@@ -965,6 +965,7 @@ if test "x$ssllib" != "x" && test "x$sslinc" != "x"; then
+ openssl/hmac.h)
+ AC_MSG_CHECKING(whether the OpenSSL library is multithread-enabled)
+ AC_TRY_RUN([
++ #include <stdlib.h>
+ #define OPENSSL_THREAD_DEFINES
+ #include <openssl/opensslconf.h>
+ int main(void) {
diff --git a/fix-build-with-autoconf-2.7.patch b/fix-build-with-autoconf-2.7.patch
new file mode 100644
index 0000000..df462e4
--- /dev/null
+++ b/fix-build-with-autoconf-2.7.patch
@@ -0,0 +1,22 @@
+From: Santiago Vila <sanvila at debian.org>
+Date: Mon, 9 Sep 2024 19:52:06 +0200
+Subject: fix build with autoconf-2.7
+
+Bug-Debian: https://bugs.debian.org/1080146
+---
+ configure.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.in b/configure.in
+index 16b7db0..a06c77e 100644
+--- a/configure.in
++++ b/configure.in
+@@ -206,7 +206,7 @@ AC_C_INLINE
+ dnl Check for how to do large files
+
+ AC_SYS_LARGEFILE(CFLAGS)
+-if test "${ac_cv_sys_file_offset_bits}" != no ; then
++if test "${ac_cv_sys_file_offset_bits}" != no && test -n "${ac_cv_sys_file_offset_bits}" ; then
+ CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}"
+ fi
+ if test "${ac_cv_sys_large_files}" != no ; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kannel.git/commitdiff/1a2ad784bfb67bc5b6de2bc60e9761106ae145d7
More information about the pld-cvs-commit
mailing list