diff options
| author | micmac1 <sebastian_ml@gmx.net> | 2022-04-21 19:11:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-21 19:11:22 +0200 |
| commit | f2dc3c087823eb05374a96257c2d1bb99424d5dc (patch) | |
| tree | ce842e99f077e413f9d322d8f8aaff208b1ff29c /net/asterisk-16.x/patches | |
| parent | c6bff940c0d3e73eac0d8ec62bf1e86f1c3cbefe (diff) | |
| parent | 445b5e5ff1f5a0d4ec1ed7a5c51271beae1684d4 (diff) | |
Merge pull request #762 from micmac1/19.07-AST-2022-01-02-03openwrt-19.07
[19.07] asterish-16.x: bump to 16.25.2
Diffstat (limited to 'net/asterisk-16.x/patches')
6 files changed, 91 insertions, 14 deletions
diff --git a/net/asterisk-16.x/patches/001-disable-semaphores-on-uclibc-otherwise-allow.patch b/net/asterisk-16.x/patches/001-disable-semaphores-on-uclibc-otherwise-allow.patch index c295cc6..72a9f61 100644 --- a/net/asterisk-16.x/patches/001-disable-semaphores-on-uclibc-otherwise-allow.patch +++ b/net/asterisk-16.x/patches/001-disable-semaphores-on-uclibc-otherwise-allow.patch @@ -1,6 +1,6 @@ --- a/configure.ac +++ b/configure.ac -@@ -1033,15 +1033,18 @@ AC_LINK_IFELSE( +@@ -1088,15 +1088,18 @@ AC_LINK_IFELSE( # Some platforms define sem_init(), but only support sem_open(). joyous. AC_MSG_CHECKING(for working unnamed semaphores) diff --git a/net/asterisk-16.x/patches/002-configure-fix-detection-of-re-entrant-resolver-funct.patch b/net/asterisk-16.x/patches/002-configure-fix-detection-of-re-entrant-resolver-funct.patch index c7b91e7..7b3c9ae 100644 --- a/net/asterisk-16.x/patches/002-configure-fix-detection-of-re-entrant-resolver-funct.patch +++ b/net/asterisk-16.x/patches/002-configure-fix-detection-of-re-entrant-resolver-funct.patch @@ -18,7 +18,7 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> --- a/configure.ac +++ b/configure.ac -@@ -1427,7 +1427,11 @@ AC_LINK_IFELSE( +@@ -1482,7 +1482,11 @@ AC_LINK_IFELSE( #include <arpa/nameser.h> #endif #include <resolv.h>], diff --git a/net/asterisk-16.x/patches/100-build-reproducibly.patch b/net/asterisk-16.x/patches/100-build-reproducibly.patch index b4f017c..f16421b 100644 --- a/net/asterisk-16.x/patches/100-build-reproducibly.patch +++ b/net/asterisk-16.x/patches/100-build-reproducibly.patch @@ -15,14 +15,14 @@ cat << END /* * build.h ---- a/Makefile -+++ b/Makefile -@@ -489,7 +489,7 @@ doc/core-en_US.xml: makeopts .lastclean - @echo "<docs xmlns:xi=\"http://www.w3.org/2001/XInclude\">" >> $@ - @for x in $(MOD_SUBDIRS); do \ - printf "$$x " ; \ -- for i in `find $$x -name '*.c'`; do \ -+ for i in `find $$x -name '*.c' | LC_ALL=C sort`; do \ - MODULEINFO=$$($(AWK) -f build_tools/get_moduleinfo $$i) ; \ - if [ -n "$$MODULEINFO" ] ; \ - then \ +--- a/build_tools/make_xml_documentation ++++ b/build_tools/make_xml_documentation +@@ -187,7 +187,7 @@ printf "Building Documentation For: " + for subdir in ${mod_subdirs} ; do + printf "%s " "${subdir}" + subdir_path="${source_tree}/${subdir}" +- for i in $(${FIND} "${subdir_path}" -name '*.c' -or -name '*.cc'); do ++ for i in $(${FIND} "${subdir_path}" -name '*.c' -or -name '*.cc' | LC_ALL=C sort); do + if [ "${with_moduleinfo}" -eq "1" ] ; then + MODULEINFO=$(${AWK} -f "${source_tree}/build_tools/get_moduleinfo" "${i}") + if [ "${MODULEINFO}" != "" ] ; then diff --git a/net/asterisk-16.x/patches/130-eventfd.patch b/net/asterisk-16.x/patches/130-eventfd.patch index de4441b..c5530e3 100644 --- a/net/asterisk-16.x/patches/130-eventfd.patch +++ b/net/asterisk-16.x/patches/130-eventfd.patch @@ -1,6 +1,6 @@ --- a/configure.ac +++ b/configure.ac -@@ -1206,7 +1206,7 @@ if test "${ac_cv_have_variable_fdset}x" +@@ -1261,7 +1261,7 @@ if test "${ac_cv_have_variable_fdset}x" fi AC_MSG_CHECKING([if we have usable eventfd support]) diff --git a/net/asterisk-16.x/patches/160-AST_EXT_TOOL_CHECK.patch b/net/asterisk-16.x/patches/160-AST_EXT_TOOL_CHECK.patch new file mode 100644 index 0000000..97c9d35 --- /dev/null +++ b/net/asterisk-16.x/patches/160-AST_EXT_TOOL_CHECK.patch @@ -0,0 +1,22 @@ +--- a/autoconf/ast_ext_tool_check.m4 ++++ b/autoconf/ast_ext_tool_check.m4 +@@ -8,13 +8,16 @@ AC_DEFUN([AST_EXT_TOOL_CHECK], + AC_REQUIRE([AST_PROG_SED])dnl + if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then + PBX_$1=0 +- AC_PATH_TOOL(CONFIG_$1, $2, No, [${$1_DIR}/bin:$PATH]) ++ if test "x${$1_DIR}" != "x"; then ++ AC_PATH_TOOL(CONFIG_$1, $2, No, [${$1_DIR}/bin:$PATH]) ++ else ++ AC_PATH_TOOL(CONFIG_$1, $2, No, [$PATH]) ++ fi + if test ! "x${CONFIG_$1}" = xNo; then + $1_INCLUDE=$(${CONFIG_$1} m4_default([$3],[--cflags])) +- $1_INCLUDE=$(echo ${$1_INCLUDE} | $SED -e "s|-I|-I${$1_DIR}|g" -e "s|-std=c99||g") ++ $1_INCLUDE=$(echo ${$1_INCLUDE} | $SED -e "s|-std=c99||g") + + $1_LIB=$(${CONFIG_$1} m4_default([$4],[--libs])) +- $1_LIB=$(echo ${$1_LIB} | $SED -e "s|-L|-L${$1_DIR}|g") + + m4_ifval([$5], [ + saved_cppflags="${CPPFLAGS}" diff --git a/net/asterisk-16.x/patches/180_build-fix-bininstall-launchd-issue-on-cross-platfrom.patch b/net/asterisk-16.x/patches/180_build-fix-bininstall-launchd-issue-on-cross-platfrom.patch new file mode 100644 index 0000000..cebaee6 --- /dev/null +++ b/net/asterisk-16.x/patches/180_build-fix-bininstall-launchd-issue-on-cross-platfrom.patch @@ -0,0 +1,55 @@ +From: https://issues.asterisk.org/jira/browse/ASTERISK-29905 + +From d27d75ad8058f6ed35197737b949bac57202dd54 Mon Sep 17 00:00:00 2001 +From: "Sergey V. Lobanov" <sergey@lobanov.in> +Date: Wed, 9 Feb 2022 01:29:46 +0300 +Subject: [PATCH] build: fix bininstall launchd issue on cross-platfrom build + +configure script detects /sbin/launchd, but the result of this +check is not used in Makefile (bininstall). Makefile also detects +/sbin/launchd file to decide if it is required to install +safe_asterisk. + +configure script correctly detects cross compile build and sets +PBX_LAUNCHD=0 + +In case of building asterisk on MacOS host for Linux target using +external toolchain (e.g. OpenWrt toolchain), bininstall does not +install safe_asterisk (due to /sbin/launchd detection in Makefile), +but it is required on target (Linux). + +This patch adds HAVE_SBIN_LAUNCHD=@PBX_LAUNCHD@ to makeopts.in to +use the result of /sbin/launchd detection from configure script in +Makefile. +Also this patch uses HAVE_SBIN_LAUNCHD in Makefile (bininstall) to +decide if it is required to install safe_asterisk. + +Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> +--- + Makefile | 6 +++--- + makeopts.in | 2 ++ + 2 files changed, 5 insertions(+), 3 deletions(-) + +--- a/Makefile ++++ b/Makefile +@@ -558,9 +558,9 @@ bininstall: _all installdirs $(SUBDIRS_I + $(INSTALL) -m 755 contrib/scripts/astversion "$(DESTDIR)$(ASTSBINDIR)/" + $(INSTALL) -m 755 contrib/scripts/astgenkey "$(DESTDIR)$(ASTSBINDIR)/" + $(INSTALL) -m 755 contrib/scripts/autosupport "$(DESTDIR)$(ASTSBINDIR)/" +- if [ ! -f /sbin/launchd ]; then \ +- ./build_tools/install_subst contrib/scripts/safe_asterisk "$(DESTDIR)$(ASTSBINDIR)/safe_asterisk"; \ +- fi ++ifneq ($(HAVE_SBIN_LAUNCHD),1) ++ ./build_tools/install_subst contrib/scripts/safe_asterisk "$(DESTDIR)$(ASTSBINDIR)/safe_asterisk"; ++endif + + ifneq ($(DISABLE_XMLDOC),yes) + $(INSTALL) -m 644 doc/core-*.xml "$(DESTDIR)$(ASTDATADIR)/documentation" +--- a/makeopts.in ++++ b/makeopts.in +@@ -373,3 +373,5 @@ SNDFILE_LIB=@SNDFILE_LIB@ + + BEANSTALK_INCLUDE=@BEANSTALK_INCLUDE@ + BEANSTALK_LIB=@BEANSTALK_LIB@ ++ ++HAVE_SBIN_LAUNCHD=@PBX_LAUNCHD@ |
