[Slackbuilds-users] conky compile error

Luiz Carlos Ramos lramos.prof at yahoo.com.br
Sun Feb 26 14:24:45 UTC 2023


Hi,

I could do a trick here to make it build in machines where lua 5.3 is
installed alongside lua 5.1. It is done simply adding these two lines in
the cmake invocation:

    -DLUA_LIBRARIES=/usr/lib64/liblua5.3.so \
    -DLUA_INCLUDE_DIR=/usr/include/lua5.3 \

Don't know exactly how it works in the inner bits, but the intention is
to instruct CMake to find the correct version of Lua.

Hope it helps,

Luiz Carlos Ramos
São Paulo - Brazil
lramos.prof at yahoo.com.br



On Sat, Feb 25, 2023 at 10:39:56AM -0600, Konrad J Hambrick wrote:
> All --
> 
> I looked at the cmake file in /tmp/SBo/conky-1.18.0/ and I didn't find an
> obvious way to choose lua53-5.3.4-x86_64-1_SBo instead of
> lua-5.1.5-x86_64-1_SBo
> 
> I took the easy way out and ran `removepkg lua-5.1.5-x86_64-1_SBo` ( thanks
> Matteo ! )
> 
> The conky-1.18.0-x86_64-1_SBo.tgz Package built, installed and runs fine.
> 
> Then I restored lua-5.1.5-x86_64-1_SBo
> 
> And conky still runs fine.
> 
> -- kjh
> 
> 
> On Sat, Feb 25, 2023 at 9:48 AM Matteo Bernardini <
> matteo.bernardini at gmail.com> wrote:
> 
> > Il giorno sab 25 feb 2023 alle ore 15:17 marav <marav8 at free.fr> ha
> > scritto:
> >
> >> You should look on how Corrado builds lua, lua51 etc ....
> >> He adds this line, foro lua53 for example:
> >>
> >> # Fix lua 5.3
> >> sed -r -e "/^LUA_(SO|A|T)=/ s/lua/lua$MAINVERSION/" -e "/^LUAC_T=/
> >> s/luac/luac$MAINVERSION/" -i src/Makefile
> >>
> >>
> >> I have:
> >>
> >> # ls -lhC1 /var/lib/pkgtools/packages/ | grep lua
> >> lua51-5.1.5-x86_64-7cf
> >> lua53-5.3.6-x86_64-1cf
> >> lua54-5.4.4-x86_64-1_tdm
> >>
> >> And conly builds fine:
> >>
> >> usr/share/vim/vimfiles/ftdetect/conkyrc.vim
> >> usr/share/vim/vimfiles/syntax/
> >> usr/share/vim/vimfiles/syntax/conkyrc.vim
> >>
> >> Slackware package /tmp/conky-1.18.1-x86_64-1_SBo.tgz created.
> >>
> >
> > unfortunately while that could be ok for conky I doubt it will work with
> > the other stuff that needs lua{,52,53} on SBo...
> > if someone has patches ready they are welcome!
> >
> > Matteo
> > _______________________________________________
> > SlackBuilds-users mailing list
> > SlackBuilds-users at slackbuilds.org
> > https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> > Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> > FAQ - https://slackbuilds.org/faq/
> >
> >

> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
> 



More information about the SlackBuilds-users mailing list