[asterisk-bugs] [JIRA] (ASTERISK-27904) [patch] testsuite: Enable asttest in (Red Hat) Fedora.

Alexander Traud (JIRA) noreply at issues.asterisk.org
Thu Jun 7 11:23:54 CDT 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Traud updated ASTERISK-27904:
---------------------------------------

    Attachment: fedora_lua_asttest.patch
                fedora_lua_asterisk.patch

> [patch] testsuite: Enable asttest in (Red Hat) Fedora.
> ------------------------------------------------------
>
>                 Key: ASTERISK-27904
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27904
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Tests/testsuite
>    Affects Versions: GIT
>         Environment: Fedora 20 (and newer)
>            Reporter: Alexander Traud
>            Severity: Minor
>              Labels: patch
>         Attachments: fedora_lua_asterisk.patch, fedora_lua_asttest.patch
>
>
> asttest of the Asterisk Test Suite was introduced while Lua was in version 5.1. asttest was never updated. It still requires Lua 5.1 today. For best test results, Asterisk itself should be built not with Lua 5.3 but Lua 5.1 as well. Since Fedora 20 (Bug [815263|https://bugzilla.redhat.com/show_bug.cgi?id=815263]), the shared libraries for for Lua are called
> * {{liblua.so}} which is Lua 5.2; since Fedora 22: Lua 5.3
> * {{liblua-5.1.so}} (package {{compat-lua-devel}})
> The header file {{lua.h}} is in
> * {{/usr/unclude/lua.h}} which is Lua 5.2; since Fedora 22: Lua 5.3
> * {{/usr/unclude/lua-5.1/lua.h}} (package {{compat-lua-devel}})
> This is in contrast to Debian/Ubuntu which has
> * {{liblua5.3.so}}
> * {{liblua5.1.so}}
> The header file {{lua.h}} is in
> * {{/usr/include/lua5.3/lua.h}}
> * {{/usr/include/lua5.1/lua.h}}
> Because of that hyphen-minus, Lua 5.1 is not detected by the script {{./configure}} automatically in Fedora. Thanks to the changes in Commit [66f13ed|https://github.com/asterisk/asterisk/commit/66f13ed69471c819f0e4e5068aef9ca74aabac5f#diff-67e997bcfdac55191033d57a16d1408a] the attached one-line patch for Asterisk was possible. However, again that is just a workaround and the approach of ASTERISK-27638 should be taken. Furthermore, that patch would precedence Lua 5.1 over 5.3. Although this is fine for the Asterisk Test Suite, it is not for the general audience.
> Furthermore, the tool asttest searches for 'lua5.1' while compiling. Again, the hyphen-minus is missing for Fedora. Therefore, the other attached patch changes asttest to look for 'lua-5.1' and use the Lua Compiler in version 5.1 (package {{compat-lua}}).
> All this is a workaround. And because of ASTERISK-23293, this issue here gets a Won't Fix. However, those two patches help those who are interested to use the Asterisk Test Suite in Fedora. Instead, if you want a out-of-the-box experience, consider Debian/Ubuntu for the Asterisk Test Suite. For such, installation steps can be found in ASTERISK-27897.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list