This is a manual cherry-pick of commit
aa3bc352e7 as well as commit
b71770db41. The latter is currently in a
pull request to update asterisk to 18.15.1 in the openwrt-22.03 branch.
- add new modules
- res-geolocation depends on asterisk being built with libxlt support,
but to make libxslt a general dependency is probably not a good idea
for small devices, so this adds a config option
ASTERISK_LIBXSLT_SUPPORT that is off by default except on x86_64
builds
- refresh patches
- 180_build-fix-bininstall-launchd-issue-on-cross-platfrom.patch removed
as included in upstream release
- added 170-menuselect-force-use-of-xml2-config.patch as upstream
switched to use pkg-config for libxml2 detection, which would be fine,
except OpenWrt's host libxml2 is static and Asterisk can't handle that
- the bump to 18.15.1 contains fixes for AST-2022-007, AST-2022-008 and
AST-2022-009
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
asterisk: update AST_EXT_TOOL_CHECK for OpenWrt
Issue #672 shows that the current macro has some pitfalls, at least when
running within OpenWrt's buildroot.
The macro is used to detect these tools:
1. xml2-config
2. mysql_config
3. neon-config
4. net-snmp-config
5. sdl-config (we're not using SDL)
The macro also adds configure arguments that allow to specify a path
like so:
--with-mysqlclient=PATH
Macro problems:
1. If no PATH is specified, it adds "/bin" to the search path.
Obviously this is a bad thing when cross-compiling.
2. If a PATH is specified, it adds it to the start of every include
and library path it encounters. These paths are then broken.
This commit makes problem 1 go away by making the addition of
"${$1_DIR}/bin" to the PATH dependent on there being a PATH handed to
the macro. An alternative would be to remove the PATH addition
altogether, but then the macro wouldn't behave as expected.
It also removes the path filtering of the include and lib dirs to
address problem 2.
Closes#672
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 79a0acfe56)
asterisk: bump to 18.7.1
The removed patch has been applied upstream and is part of this release.
Signed-off-by: Andre Heider <a.heider@gmail.com>
(cherry picked from commit 0399a3dc73)
asterisk: add missing modules + dependency
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 04b6b267f1)
asterisk: fix build on macos
This commit adds a patch to fix /sbin/launchd detection on macos
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
(cherry picked from commit 4209a36afe)
asterisk: bump to version 18.11.2
- add two new modules (app_sf and func_json)
- update 100-build-reproducibly.patch as upstream refactored some of the
code
- refresh patches
This bump includes fixes for the following security issues:
https://downloads.asterisk.org/pub/security/AST-2022-001.htmlhttps://downloads.asterisk.org/pub/security/AST-2022-002.htmlhttps://downloads.asterisk.org/pub/security/AST-2022-003.html
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 958401fa8f)
asterisk: add --without-libxslt to configure
Since upstream commit b40c4d59b1dd803cad79060fb5b5a48d249ba578
"--disable-xmldoc" does no longer prevent the linking to libxslt, if
available. If that's the case one is greeted with the following error:
Package asterisk is missing dependencies for the following libraries:
libxslt.so.1
This commit explicitly disables the use of libxslt, to avoid the
dependency.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 64a1d2faef)
- Bump to new LTS release.
- Move to folder asterisk and remove AST_MAJOR_VERSION variable, as we
only have one version anyway.
- Add new modules.
- Rename voicemail to app-voicemail.
- Remove deps of voicemail on res-adsi and res-smdi as they are
optional.
- Use INSTALL_DATA for headers.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>