Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789471 - dev-libs/efl-1.25.1-r11: automagic lua support detection
Summary: dev-libs/efl-1.25.1-r11: automagic lua support detection
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Joonas Niilola
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-11 16:09 UTC by MT
Modified: 2022-01-08 13:46 UTC (History)
2 users (show)

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


Attachments
build.log + emerge --info.txt (build.log-emerge-info.txt,16.70 KB, text/plain)
2021-05-12 04:15 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2021-05-11 16:09:41 UTC
Compilation fails with the following error:

> Run-time dependency lua found: NO (tried pkgconfig and cmake)
> Run-time dependency lua51 found: NO (tried pkgconfig and cmake)
> Run-time dependency lua-5.1 found: NO (tried pkgconfig and cmake)
> Run-time dependency lua5.1 found: NO (tried pkgconfig and cmake)
> Run-time dependency lua52 found: NO (tried pkgconfig and cmake)
> Run-time dependency lua-5.2 found: NO (tried pkgconfig and cmake)
> Run-time dependency lua5.2 found: NO (tried pkgconfig and cmake)
> 
> meson.build:287:4: ERROR: Problem encountered: Lua not found

Which is an expected behaviour, because dev-libs/efl-1.25.1 supports dev-lang/lua up to v5.2 only, but the ebuild erroneously allows the user to enable USE flag 'lua_single_target_lua5-3' (which will never satisfies EFL's meson macros).

----

emerge -qpvO dev-libs/efl
[ebuild   R   ] dev-libs/efl-1.25.1-r11  USE="X eet fontconfig glib harfbuzz ibus physics pulseaudio scim sound ssl svg system-lz4 systemd unwind xim -avif -bmp -connman -dds -debug -doc -drm (-efl-one) -elogind -examples -fbcon -fribidi -gif -gles2-only -gnutls -gstreamer -hyphen -ico -jpeg2k -json (-mono) -nls -opengl -pdf -pmaps -postscript -psd -raw -sdl -tga -tgv -tiff -tslib -v4l -vnc -wayland -webp -xcf -xpm -xpresent -zeroconf" LUA_SINGLE_TARGET="lua5-3* -lua5-1 -lua5-2* -luajit"
Comment 1 Bernd 2021-05-11 20:32:14 UTC
Thanks for the report.
To correctly process the issue, we need additional data.
Please attach the following information:
  * complete build log
  * emerge --info output

Feel free to re-open the bug, when you provide these files.
Comment 2 Ionen Wolkens gentoo-dev 2021-05-12 04:15:02 UTC
Created attachment 707235 [details]
build.log + emerge --info.txt

I'm running into this as well so I'll provide my own logs.
Comment 3 Larry the Git Cow gentoo-dev 2021-05-12 05:55:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa661d4f06a4172f5dd664ee994c53510660feef

commit aa661d4f06a4172f5dd664ee994c53510660feef
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2021-05-12 05:54:49 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-05-12 05:54:49 +0000

    dev-libs/efl: drop lua-5.3 support
    
    Closes: https://bugs.gentoo.org/789471
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-libs/efl/efl-1.25.1-r11.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Joonas Niilola gentoo-dev 2021-05-12 05:57:26 UTC
Thanks! Two things bother me here: I'm sure I tested all available lua implementations before adding them, but I acknowledge the lua thing was a mess and lots has changed even in the efl ebuild after the initial support was added.

Secondly, how have I never ran into this with my own tests even as accidentally...
Comment 5 Ionen Wolkens gentoo-dev 2021-05-12 06:21:33 UTC
(In reply to Joonas Niilola from comment #4)
> Thanks! Two things bother me here: I'm sure I tested all available lua
> implementations before adding them, but I acknowledge the lua thing was a
> mess and lots has changed even in the efl ebuild after the initial support
> was added.
> 
> Secondly, how have I never ran into this with my own tests even as
> accidentally...
I'll re-open because I think there's more to this, I suspect you had multiple lua slots installed.

Didn't look in depth but what bothers me is the first check:
    Run-time dependency lua found: NO (tried pkgconfig and cmake)

There should be a lua.pc provided by the eclass based on chosen target.

But here, after I `emerge lua:5.1`, and LUA_SINGLE_TARGET=lua5-3:
    Run-time dependency lua found: NO (tried pkgconfig and cmake)
    Run-time dependency lua51 found: NO (tried pkgconfig and cmake)
    Run-time dependency lua-5.1 found: NO (tried pkgconfig and cmake)
    Run-time dependency lua5.1 found: YES 5.1.5
Comment 6 Ionen Wolkens gentoo-dev 2021-05-12 06:23:58 UTC
(In reply to Ionen Wolkens from comment #5)
> But here, after I `emerge lua:5.1`, and LUA_SINGLE_TARGET=lua5-3:
Same applies if 5-2, essentially it's not respecting the chosen slot and using what it finds first.
Comment 7 Joonas Niilola gentoo-dev 2021-05-12 06:33:27 UTC
That'd indeed explain my worries.
Comment 8 Joonas Niilola gentoo-dev 2022-01-08 13:46:13 UTC
1.26.1 still doesn't support lua-5.3, 
https://git.enlightenment.org/core/efl.git/tree/meson.build?h=v1.26.1#n264

and lua-5.2 is removed from ::gentoo for whatever reason. 

Was looking to sed the 'lua_pc_name = l[0]' part based on USE flag choice, but it doesn't look like there's much for me to do here anymore. Need to keep an eye out for this automagic behaviour though.