Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 766908

Summary: lua-single.eclass: LUA_REQ_USE="deprecated" breaks with luajit
Product: Gentoo Linux Reporter: Joonas Niilola <juippis>
Component: EclassesAssignee: William Hubbs <williamh>
Status: RESOLVED WORKSFORME    
Severity: normal CC: conikost, marecki
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joonas Niilola gentoo-dev 2021-01-24 18:05:42 UTC
From the eclass documentation you get an impression that 
  LUA_REQ_USE="deprecated(+)"

would always be used, but this doesn't seem to be the case.
  emerge: there are no ebuilds built with USE flags to satisfy "dev-lang/luajit:=[deprecated]".

You can get past this error by specifying 
  LUA_REQ_USE="deprecated(+)"
in your ebuild, as instructed by conikost, but I have a feeling this should work from eclass's side. It may be better fixed early before all ebuilds need local hacks.
Comment 1 Marek Szuba (RETIRED) archtester gentoo-dev 2021-01-25 17:14:07 UTC
(In reply to Joonas Niilola from comment #0)

> From the eclass documentation you get an impression that 
>   LUA_REQ_USE="deprecated(+)"
> 
> would always be used

I don't think I agree with this. The documentation says LUA_REQ_USE specifies (emphasis mine) "USE flags *required* to be enabled on the chosen Lua implementations", and defaulting to (+) would IMHO go against the above.

What you want here is lua_gen_impl_dep().
Comment 2 Conrad Kostecki gentoo-dev 2021-02-08 09:50:39 UTC
(In reply to Marek Szuba from comment #1)
> What you want here is lua_gen_impl_dep().

https://devmanual.gentoo.org/eclass-reference/lua-single.eclass/index.html
I see, there is a nice example, so I guess, we can close here?

Btbh, LUA_REQ_USE="deprecated(+)" looks somehow better for me :-)
Comment 3 Joonas Niilola gentoo-dev 2021-02-08 14:56:38 UTC
Sure sure, it doesn't seem like anyone else is hitting this problem.