Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 766908 - lua-single.eclass: LUA_REQ_USE="deprecated" breaks with luajit
Summary: lua-single.eclass: LUA_REQ_USE="deprecated" breaks with luajit
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-24 18:05 UTC by Joonas Niilola
Modified: 2021-02-08 14:56 UTC (History)
2 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 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.