conky fails to link with lua-5.2.0: llua.c:(.text+0x633): undefined reference to `lua_open' Reproducible: Always
Created attachment 304383 [details] conky-build.log
http://git.omp.am/?p=conky.git;a=commit;h=83bf5e3f853918583e519fbba455a79242be9c7c
@Brenden. Wow that was quick. From reading the code of lua-5.1 and 5.2 this patch should be backward compatible. lua_open was a compatibility function which called luaL_newstate which had been removed in lua-5.2.
@Brenden. Shouldn't this be fixed in master as well?
(In reply to comment #4) > @Brenden. Shouldn't this be fixed in master as well? Nope, the code in master uses the new API. See: http://git.omp.am/?p=conky.git;a=blob;f=src/luamm.cc;h=ffc68b03f9c422f1ab29f315cf3ebc2d49e68a68;hb=HEAD#l217
IC but there is a reference to lua_open in src/llua.cc [1]. Don't know if this matters. [1] http://git.omp.am/?p=conky.git&a=search&h=HEAD&st=grep&s=lua_open
(In reply to comment #6) > IC but there is a reference to lua_open in src/llua.cc [1]. Don't know if > this matters. > > [1] http://git.omp.am/?p=conky.git&a=search&h=HEAD&st=grep&s=lua_open You're right, my bad. Cherry picked: http://git.omp.am/?p=conky.git;a=commit;h=19fc6e1a75ad9cb2c2f61e411a975e5beb89e88b
+ 10 Mar 2012; Daniel Pielmeier <billie@gentoo.org> conky-1.8.1-r6.ebuild, + +files/conky-1.8.1-lua-5.2.patch: + Fix building against lua-5.2 (bug #407089). Thanks to Amadeusz Żołnowski + for the report and Brenden Matthews for the fix.