summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-12-20 15:44:51 +0000
committerMarek Szuba <marecki@gentoo.org>2020-12-20 15:47:20 +0000
commit7e01288cd94aa05281f71226c679da470175f3af (patch)
tree3ea614d72e86d2c8d6bdfabb964d22fb8ae3f3a8 /net-misc/asterisk/files
parentnet-misc/dropbox: 112.4.321 stable (diff)
downloadgentoo-7e01288cd94aa05281f71226c679da470175f3af.tar.gz
gentoo-7e01288cd94aa05281f71226c679da470175f3af.tar.bz2
gentoo-7e01288cd94aa05281f71226c679da470175f3af.zip
net-misc/asterisk: migrate to lua-single.eclass
Upstream build scripts don't use pkgconfig to find Lua so it wasn't merely a matter of pointing them to the wrapper, that said it was still simple enough to make it use the ebuild-specified version. LUA_COMPAT set as per the aforementioned scripts. Closes: https://bugs.gentoo.org/752822 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'net-misc/asterisk/files')
-rw-r--r--net-misc/asterisk/files/asterisk-16.14.0-autoconf-lua-version.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/net-misc/asterisk/files/asterisk-16.14.0-autoconf-lua-version.patch b/net-misc/asterisk/files/asterisk-16.14.0-autoconf-lua-version.patch
new file mode 100644
index 000000000000..6e4c8237e667
--- /dev/null
+++ b/net-misc/asterisk/files/asterisk-16.14.0-autoconf-lua-version.patch
@@ -0,0 +1,31 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -2553,20 +2553,15 @@
+ fi
+ AST_EXT_LIB_CHECK([OPUSFILE], [opusfile], [op_open_callbacks], [opus/opusfile.h], [], [$__opus_include])
+
+-for ver in 5.3 5.2 5.1; do
+- AST_EXT_LIB_CHECK([LUA], lua${ver}, [luaL_newstate], lua${ver}/lua.h, [-lm])
+- if test "x${PBX_LUA}" = "x1" ; then
+- if test x"${LUA_DIR}" = x; then
+- LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua${ver}"
+- else
+- LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua${ver}"
+- fi
+- break;
++AST_EXT_LIB_CHECK([LUA], ${LUA_IMPL}, [luaL_newstate], ${LUA_IMPL}/lua.h, [-lm])
++if test "x${PBX_LUA}" = "x1" ; then
++ if test x"${LUA_DIR}" = x; then
++ LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/${LUA_IMPL}"
++ else
++ LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/${LUA_IMPL}"
+ fi
+-done
+-
+-# Some distributions (like openSUSE and NetBSD) remove the 5.x suffix.
+-AST_EXT_LIB_CHECK([LUA], [lua], [luaL_newstate], [lua.h], [-lm])
++ break;
++fi
+
+ # Accept either RADIUS client library, their APIs are fully compatible,
+ # just different header filenames and different SONAMEs