[Home]

Summary:ASTERISK-27638: BuildSystem: Enable Lua in FreeBSD.
Reporter:Alexander Traud (traud)Labels:patch
Date Opened:2018-01-30 02:40:41.000-0600Date Closed:
Priority:MinorRegression?
Status:Open/NewComponents:PBX/pbx_lua
Versions:13.19.0 Frequency of
Occurrence
Related
Issues:
Environment:DragonFly BSD 5.2 FreeBSD 11.1Attachments:( 0) FreeBSD_enable_lua.patch
Description:{{./configure}} does not detect the external package Lua on FreeBSD, because the shared library and the path of the header files is different, compared to Debian/Ubuntu and RHEL/CentOS/Fedora. Lua is required for the module _pbx_lua_ which was added in November 2007 with ASTERISK-10667.

Attached is a fix for those using FreeBSD and do not use the Asterisk port but built Asterisk themselves:{code}fetch --no-verify-peer https://issues.asterisk.org/jira/secure/attachment/57045/FreeBSD_enable_lua.patch
patch -p0 <./FreeBSD_enable_lua.patch
./bootstrap.sh
./configure{code}It is a specific fix for FreeBSD, which cannot be added to Asterisk in general. An alternative approach would be to use [ax_lua...|https://www.gnu.org/s/autoconf-archive/ax_lua.html]

That approach should have been used in ASTERISK-23011 and ASTERISK-27592 already. Hopefully someone actually using Lua, shares his time to do this change here.
Comments: