sergey-safarov left a comment (kamailio/kamailio#4578)
> I wouldn't go for auto-detection of all installed liblua packages, but a way
> to specify something like: now I want to compile with liblua5.2 and the name
> of the output module to be app_lua52. Maybe the above comment is more
> suggestive.
Generally it works also.
But I think module name should be generated using module version supplied from
build command. And do not introduce more params.
If `${USE_LUA_VERSION}` is not provided then use `app_lua.so` module name.
if param provided then generate module name using version param value and do
not required add second param.
In packaging script I can use construction like in the example to detect how
many version of devel packages installed.
Example for CentOS 10 where installed multiple `clang` packages.
```sh
installed_clan_versions=$(rpm -qa | grep -oP "clang.+-devel")
count_clan_versions=$(echo "${installed_clan_versions}" | wc -l)
if [ ${count_clan_versions} -gt 1 ]; then
for i in ${installed_clan_versions}; do
echo "Compiling using ${i}"
done
else
echo "Compiling using default clan version"
fi
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4578#issuecomment-3849932682
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!