In a CMakeLists.txt, find_package(Lua51) is supposed to find an instance of Lua 5.1. On Gentoo it also finds Lua 5.2, because the package is not slotted. $ eix -ce lua [I] dev-lang/lua (5.2.1@07/09/12) […] $ ll /usr/lib/liblua.so lrwxrwxrwx 1 root root 15 Sep 7 13:03 /usr/lib/liblua.so -> liblua.so.5.2.0 $ cmake .. […] -- Found Lua51: /usr/lib64/liblua.so;/usr/lib64/libm.so […]
$ q file -v /usr/lib64/liblua.so dev-lang/lua-5.2.1 (/usr/lib64/liblua.so)
Please report this upstream and link here back. We (gentoo) don't modify the shipped module.
(In reply to comment #2) > Please report this upstream and link here back. We (gentoo) don't modify the > shipped module. The idea was more to get Lua into a shape were FindLua51.cmake would actually bring up something different than FindLua50.cmake. I might be using "legacy" applications/code, which uses an older version of Lua, and have no influence on it being updated (except with custom patches, diverging me from my upstream).
@Rolf as i know you are very active in cmake upstream, how about to pick up this issue?
Could someone please attached patch in upstream bug and report back here?
(In reply to Johannes Huber from comment #5) > Could someone please attached patch in upstream bug and report back +here? +test
(In reply to Johannes Huber from comment #6) > (In reply to Johannes Huber from comment #5) > > Could someone please attached patch in upstream bug and report back +here? > > +test