Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434216 - dev-util/cmake-2.8.9: FindLua51.cmake finds dev-lang/lua-5.2.1
Summary: dev-util/cmake-2.8.9: FindLua51.cmake finds dev-lang/lua-5.2.1
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: http://www.cmake.org/Bug/view.php?id=...
Whiteboard: tracking upstream
Keywords: PATCH
Depends on: 190606
Blocks: lua-5.2
  Show dependency tree
 
Reported: 2012-09-07 11:09 UTC by Dennis Schridde
Modified: 2015-02-23 21:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2012-09-07 11:09:01 UTC
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  
[…]
Comment 1 Dennis Schridde 2012-09-07 11:10:28 UTC
$ q file -v /usr/lib64/liblua.so
dev-lang/lua-5.2.1 (/usr/lib64/liblua.so)
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2012-09-07 15:25:12 UTC
Please report this upstream and link here back. We (gentoo) don't modify the shipped module.
Comment 3 Dennis Schridde 2012-09-07 16:47:44 UTC
(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).
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2013-07-05 19:41:05 UTC
@Rolf as i know you are very active in cmake upstream, how about to pick up this issue?
Comment 5 Johannes Huber (RETIRED) gentoo-dev 2015-01-16 21:16:55 UTC
Could someone please attached patch in upstream bug and report back here?
Comment 6 Johannes Huber (RETIRED) gentoo-dev 2015-01-16 21:17:21 UTC
(In reply to Johannes Huber from comment #5)
> Could someone please attached patch in upstream bug and report back +here?

+test
Comment 7 Johannes Huber (RETIRED) gentoo-dev 2015-02-23 21:22:05 UTC
(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