miconda left a comment (kamailio/kamailio#4578)

@henningw: probably the same question can be also `why Debian/Ubuntu ships many 
Lua versions?`

This issue was more to discuss and see if an easy/flexible solution can be 
found based on cmake. Otherwise, I said in my first comment/issue description: 
`..., if we cannot find a flexible and easy enough solution, we should probably 
just go with linking against latest stable liblua.`

Now, to be more specific to your question, in my case: I tried to migrate a 
(rather old) source-compiled Kamailio installation to newer system with 
deb-based installation. The source-compiled instance was with liblua5.2 and I 
discovered that the same lua script was throwing errors on Debian 13 Trixie, 
because the deb package was linked with liblua5.1, and there were some 
incompatibilities. It wasn't very complex, as the lua script was rather 
minimal, but I guess there can be issues with larger Lua scripts, especially if 
they use native Lua libraries that are designed/tested with a specific lua 
version.

Afaik, lua broke some APIs between 5.x versions, for a while lua 5.4 was not 
even supported by app_lua, and I am not sure how many tested it wit lua 5.4. I 
do not recall exactly, but I think a few years ago I recompiled app_lua with 
lua 5.2, after initially being with lua 5.3, because of some library not being 
compatible (iirc, a http client lua library that was used because http_client 
module was not flexible enough to access headers in the response -- but I am 
not sure anymore, I don't manage that system anymore).

In summary, I think it would be a plus if someone can switch easier between lua 
interpreter versions, when installing from packages. But if not possible in an 
easy manner, then go with the latest version for packages.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4578#issuecomment-3854195376
You are receiving this because you commented.

Message ID: <kamailio/kamailio/issues/4578/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to