Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618104 - media-gfx/darktable Add lua support (via use flag) once dev-lang/lua-5.2 is unmasked
Summary: media-gfx/darktable Add lua support (via use flag) once dev-lang/lua-5.2 is u...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 2 votes (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on: lua-5.2
Blocks:
  Show dependency tree
 
Reported: 2017-05-10 12:09 UTC by schmittlauch
Modified: 2020-06-18 16:55 UTC (History)
4 users (show)

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


Attachments
darktable 2.2.5 ebuild with lua enabled (darktable-2.2.5.ebuild,3.81 KB, text/plain)
2017-06-10 19:26 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schmittlauch 2017-05-10 12:09:28 UTC
This is already a TODO in the ebuild, but I think it's good having a bug to subscribe to.
Comment 1 schmittlauch 2017-05-11 21:15:12 UTC
There's also the possibility of bundling lua-5.2 until it's unmasked as a system package.
Comment 2 urcindalo 2017-05-17 10:54:46 UTC
(In reply to t.schmittlauch+gentoo from comment #1)
> There's also the possibility of bundling lua-5.2 until it's unmasked as a
> system package.

Yes, it would be great to enjoy lua support in darktable.
Comment 3 Nick 2017-06-07 19:42:13 UTC
I managed to get lua working with darktable using a slotted lua and a dirty hack in ebuild, as I failed to do it properly ( see this discussion https://redmine.darktable.org/issues/11641 )
I've unmasked and installed lua 5.2, eselected it, then dt compiled and lua seems to work, at least few scripts I tested yet.

If somebody is able to improve my hack to make cmake to correctly pass the -isystem parameter, we'll have a decent solution...
Comment 4 Nick 2017-06-10 19:26:18 UTC
Created attachment 475936 [details]
darktable 2.2.5 ebuild with lua enabled
Comment 5 Nick 2017-06-10 19:26:37 UTC
UPDATE to my comment #3
The issue appeared to reside in lua5.2.pc file (see link to the discussion in my previous post).
It reads Cflags: -I${includedir} instead of
         Cflags: -I${includedir}/${lib_name_include}
So far I fixed it manually, but I ought to file a bug about it. 
So here comes the working ebuild.
Comment 6 Nick 2017-06-10 19:36:43 UTC
Apparently there is a bug about this already for about a year... Ohh...
https://bugs.gentoo.org/show_bug.cgi?id=592052
Comment 7 Marek Szuba gentoo-dev 2020-06-18 13:01:37 UTC
Still waiting for lua-5.2.