Commit graph

10 commits

Author SHA1 Message Date
Sebastian Kemper
411b6fb1d7 asterisk-chan-dongle: bump to latest git
Closes: #837

The extra patch was submitted upstream for inclusion, see [1].

[1] https://github.com/wdoekes/asterisk-chan-dongle/pull/173

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-12-26 14:22:02 +01:00
Sebastian Kemper
4e30b64604 asterisk-chan-dongle: adapt BUILD_NLS handling
openwrt recently stopped using libiconv-stub in the BUILD_NLS=n case.
Instead the libc's iconv has to be used.

This commit changes the iconv include path passed to
asterisk-chan-dongle for the BUILD_NLS=n case to
$(TOOLCHAIN_DIR)/include. That's where musl and glibc store iconv.h.

Also, the patch 200-fix-iconv-detection.patch gets replaced with a sed
script that only runs in the BUILD_NLS=y case.

And finally, $(AUTORELEASE) is added.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-07-16 20:34:25 +02:00
Sebastian Kemper
829c1cf031 asterisk-chan-dongle: add postinst note
Provide quick hint to users to sort out possible/likely permission
issue.

Also refreshes some patches.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-23 18:28:56 +02:00
Sebastian Kemper
edbeb1b9a3 asterisk-chan-dongle: fix iconv lib detection
A small but important oversight crept into the last asterisk-chan-dongle
update. The iconv library detection was changed to look for iconv()
instead of libiconv().

Reminder: the autoconf macros for finding libraries do _not_ include any
extra headers when testing the compile. So the redefinitions done in
iconv.h provided by any libiconv (stub or regular) aren't visible during
the test the macros execute.

This means that when testing for iconv() the only iconv that can be
detected is the one from libc. Moreover, if the libc doesn't provide
iconv, the check will fail. Below example is with uclibc:

checking for iconv in -liconv... no
configure: error: iconv library missing
Makefile:87: recipe for target '/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_uClibc/asterisk-chan-dongle-asterisk16/asterisk-chan-dongle-2020-05-28-328b2b7d/.configured_a17fb5ef857664f03cd0ce37cc5ea591' failed

So, this changes the patch to look for libiconv(), again.

Also, instead of using AC_CHECK_LIB this uses AC_SEARCH_LIBS, like
upstream does. There apparently was a problem with that in the past, but
now it works fine.

checking for rm... rm
checking for library containing libiconv... -liconv
checking for sqlite3_open in -lsqlite3... yes

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-06-11 19:27:51 +02:00
Sebastian Kemper
9b0e13700a asterisk-chan-dongle: bump + cleanup
Bump dongle plugin to latest git revision. PKG_SOURCE_SUBDIR and
PKG_BUILD_DIR are removed because defaults are fine. PKG_VERSION is
replaced by PKG_SOURCE_DATE, which is in line with OpenWrt
recommendation.

Soft deps are removed as per request in issue #536.

iconv handling is updated. Upstream now lets us specify the include
directory, so that makes the patch simpler. The iconv lib detection is
also updated so that it never picks the libc iconv. This way we get the
same iconv handling independent of the libc in use. Now it'll be always
iconv-stub or iconv-full.

libsqlite3 dep is made explicit. There was always a dep on it, but it
was implicit via asterisk. When the dep is made explicit, the dongle
package picks up on the sqlite3 ABI_VERSION, which is nice.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-06-09 18:46:39 +02:00
Sebastian Kemper
d5f36f5394 asterisk-chan-dongle: remove iconv hack
Remove the hack for iconv on uclibc. Instead include nls.mk which will
sort out the iconv depends.

This changes the iconv patch. AC_SEARCH_LIB doesn't work properly for
openwrt/lede. Instead use AC_CHECK_LIB.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-18 22:07:50 +02:00
Sebastian Kemper
7beff532c5 asterisk-chan-dongle: add patch to force OpenWrt CFLAGS
Prevent ./configure from adding '-O6' to CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 14:49:20 +01:00
Sebastian Kemper
b55daa66c9 asterisk-chan-dongle: sync up with master, fix endian issue
- Sync module to master.
- Drop big endian patch as it was included upstream.
- This fixes endian issue reported at
  https://github.com/wdoekes/asterisk-chan-dongle/issues/44.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-09-14 20:58:38 +02:00
Sebastian Kemper
0835ad378b asterisk-chan-dongle: fix uclibc build
uclibc doesn't include iconv, so we need to use libiconv-full. This
fixes the ARC builds as they still default to uclibc.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-09-02 00:28:19 +02:00
Sebastian Kemper
fbda98058b asterisk-chan-dongle: overhaul
- Make the Makefile use BUILD_VARIANT so the package can be built for
  different Asterisk versions. This is also the reason why the folder is
  renamed from asterisk-11.x-chan-dongle to asterisk-chan-dongle.
- Change source URI from upstream to the fork of wdoekes. Upstream
  doesn't update the repo anymore, wdoekes does.
- Remove dep on libiconv-full, make the package use toolchain's iconv
  (compile-tested with musl).
- Drop patches that are already upstream.
- Update flags.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-28 19:57:41 +02:00