The packages app-admin/conky of all versions depend on >=dev-lang/lua-5.1.4-r8:0, i.e., on lua:0, which explicitly excludes lua:5.1, lua:5.2 and lua:5.3. I would suggest to remove the ":0" from the dependency due to the following rationale: (1) If a user does not use the hard-masked lua:5.x packages then it makes no difference. So for the standard case it does no harm. (2) If a user does use lua:5.x packages, e.g., because lua-5.3 is required for some software, then the current lua:0 dependency makes it impossible to merge conky, as lua:0 blocks lua:5.3 and vice versa. As a workaround I have put the conky ebuilds in a local overlay and simply removed the ":0"; on my system conky builds fine against lua-5.3. To sum up: Removing ":0" does no harm on a standard system (with lua:0 installed) but enables conky on non-standard systems (e.g., with lua:5.3 installed).
(In reply to Stefan Huber from comment #0) As a side note, I have fixed the pkg-config files installed by lua-5.x as described in bug #602476.
A quick grep shows there are around 65 other apps in the tree depending on slot 0 for lua. What about them? As I see it lua is unmaintained in Gentoo for a few years now. So it first needs a proper maintainer who should make the slotted version work or if it does already lift the mask. Then we can think about shifting the depending packages from slot 0 to 5.x.
(In reply to Daniel Pielmeier from comment #2) > A quick grep shows there are around 65 other apps in the tree depending on > slot 0 for lua. What about them? > > As I see it lua is unmaintained in Gentoo for a few years now. So it first > needs a proper maintainer who should make the slotted version work or if it > does already lift the mask. Then we can think about shifting the depending > packages from slot 0 to 5.x. I see. So there is no point in improving a particular package without addressing the lua maintenance situation. Too bad, but understandable.
I investigated more time here and found that the versions of conky currently in the tree do not work with lua-5.2 and 5.3 if the flags lua-cairo, lua-imlib or lua-rsvg are enabled. In this case toluapp is required which only works with lua-5.1 thus the configure script falls back to using lua-5.1. I guess you don't have this flags enabled or you also have lua:5.1 installed? Newer versions of conky work with lua-5.2 or 5.3 but they also start to bundle toluapp. toluapp seems unmaintained so the developer of conky adapted it to work with newer versions of lua. This is also the reason for this versions not being in the tree as I am a bit unsure about the bundling. Long story short I do not think it makes sense to remove the slot. One possible solution would be to pin it to either slot 0 or 5.1. So it could work with normal lua and slotted lua.
For conky-1.10.8-r6 I pinned the slot to 0 or 5.1. I think this should work for you as well.
Fixed, indeed. Thank you.