freeswitch: fix compilation with CentOS 7 603/head
authorRosen Penev <rosenp@gmail.com>
Fri, 9 Oct 2020 09:26:49 +0000 (02:26 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 1 Jan 2021 21:58:27 +0000 (13:58 -0800)
Fix patch 230 as it's a patch of a patch with fuzz and wrong offsets.
It seems something on CentOS 7 doesn't like fuzz.

The AC_TRY_RUN section was removed as upstream added a check whether or
not cross compilation is being done, making it no/op.

Refresh other patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/freeswitch/Makefile
net/freeswitch/patches/040-gentls_cert_update_message_digest.patch
net/freeswitch/patches/230-mod_radius_cdr.patch
net/freeswitch/patches/410-mod_rayo_enable-f-no-common-compilation.patch

index 9885df0d8e98e3fc0e91e8520166f2850b2b9963..b21b0348dc84e97ef1e22983301a1f0c834b6d12 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=freeswitch
 PKG_VERSION:=1.10.5
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
 
 PKG_SOURCE:=freeswitch-$(PKG_VERSION).-release.tar.xz
index ff5226dad851be69ce8ceaa1d795d54402769d84..15476e6fba6baa3c6c0b92aa5ced76b57831acad 100644 (file)
@@ -22,8 +22,6 @@ Date:   Wed Nov 13 20:29:50 2019 +0100
     
     Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
 
-diff --git a/scripts/gentls_cert.in b/scripts/gentls_cert.in
-index 43aa8ac605..dd56c9f6dc 100644
 --- a/scripts/gentls_cert.in
 +++ b/scripts/gentls_cert.in
 @@ -89,7 +89,7 @@ setup_ca() {
index 2fa58ee8f07a8e6bcd81ec78df23277de3294526..bde050fa8d762cb0361533abc09d374242df59d9 100644 (file)
  $(RADCLIENT_LA): $(RADCLIENT_BUILDDIR)/Makefile
 --- /dev/null
 +++ b/src/mod/event_handlers/mod_radius_cdr/freeradius-client-1.1.6-configure-in.diff
-@@ -0,0 +1,32 @@
-+diff --git a/configure.in b/configure.in
-+index 4f194bd..647e9b9 100644
+@@ -0,0 +1,21 @@
 +--- a/configure.in
 ++++ b/configure.in
-+@@ -209,7 +209,7 @@ AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf)
-+ if test "$ac_cv_func_uname" = 'yes'
-+ then
-+      AC_MSG_CHECKING([for field domainname in struct utsname])
-+-     AC_TRY_RUN([
-++     AC_COMPILE_IFELSE([
-+      #include <sys/utsname.h>
-+      
-+      main(int argc, char **argv)
-+@@ -224,13 +224,11 @@ then
-+      )
-+ fi
++@@ -234,13 +234,11 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([
++                   enable_getrandom=getentropy],
++                  [AC_MSG_RESULT(no)])
 + 
 +-AC_MSG_CHECKING([for /dev/urandom])
 +-if test -c /dev/urandom
@@ -43,4 +32,4 @@
 ++  AC_DEFINE(HAVE_DEV_URANDOM)
 + fi
 + 
-+ dnl Determine PATH setting
++ AC_ARG_WITH([nettle], [AS_HELP_STRING([--with-nettle],
index 0c4986ee3fa02fc38634fe5df38f2b57c401e2df..2df2a4def79c7cdd8a03c85055ff4c8814a01e03 100644 (file)
@@ -4,8 +4,6 @@ Date:   Tue Sep 1 12:13:28 2020 -0400
 
     [mod_rayo] Enable -fno-common compilation
 
-diff --git a/src/mod/event_handlers/mod_rayo/iks_helpers.h b/src/mod/event_handlers/mod_rayo/iks_helpers.h
-index e221abe390..b98dbf5be6 100644
 --- a/src/mod/event_handlers/mod_rayo/iks_helpers.h
 +++ b/src/mod/event_handlers/mod_rayo/iks_helpers.h
 @@ -51,8 +51,7 @@ struct xmpp_error {