Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445049 - dev-lua/lgi: excessive dependencies
Summary: dev-lua/lgi: excessive dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-28 08:38 UTC by Nikolaj Šujskij
Modified: 2013-02-08 15:47 UTC (History)
5 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 Nikolaj Šujskij 2012-11-28 08:38:48 UTC
As of now, dev-lua/lgi depends on x11-libs/gtk+[introspection]. This results, for example, in x11-wm/awesome-3.5 pulling in GTK3, which is kind of weird, because I've managed to run it after
 # USE="introspection" emerge --oneshot --nodeps lgi pango awesome

(USE="-introspection" is set globally)

I'd suggest the following:

 * dev-lua/lgi depends on dev-libs/gobject-introspection (it seems to be enough, according to README);
 * packages, depending on lgi, should require specific package (like pango and possibly cairo for x11-wm/awesome) to be built with USE="introspection".
Comment 1 Nikolaj Šujskij 2012-11-28 08:44:25 UTC
I've taken liberty to CC people who discussed lgi ebuild request (https://bugs.gentoo.org/show_bug.cgi?id=422023)
Sorry if that disturbed you, but I would like to hear your suggestions.
Comment 2 Nikolaj Šujskij 2012-11-28 19:58:42 UTC
According to https://awesome.naquadah.org/wiki/Awesome_3.4_to_3.5#New_runtime-only_dependency, here's how to test whether everything required is present:

  $ lua -e 'lgi = require("lgi") print(lgi.cairo, lgi.Pango, lgi.PangoCairo)'
   table: 0xe74160	table: 0xf40830	table: 0xf168e0
Comment 3 Arvydas Sidorenko 2012-11-28 20:48:14 UTC
Agree, it doesn't make sense to put whole GTK+ as a dependency - lgi doesn't need that.
Comment 4 Sergey Popov gentoo-dev 2012-12-05 11:43:01 UTC
CCing awesome maintainers

@awesome guys: What do you think about changing '>=x11-libs/pango-1.19.3' dependency to '>=x11-libs/pango-1.19.3[introspection]'? Correct me, if i am wrong, but after that we can easily change lgi dependency to be more accurate then they are now.
Comment 5 Maxim Koltsov (RETIRED) gentoo-dev 2013-02-08 15:47:19 UTC
I fixed the deps, enjoy.