Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664318 - www-client/firefox: Move gtk+:2 from RDEPEND to DEPEND
Summary: www-client/firefox: Move gtk+:2 from RDEPEND to DEPEND
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Mozilla Gentoo Team
Depends on:
Reported: 2018-08-22 22:11 UTC by Alex Xu (Hello71)
Modified: 2018-09-23 15:36 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Alex Xu (Hello71) 2018-08-22 22:11:17 UTC
Comment 1 Ian Stakenvicius gentoo-dev 2018-09-03 14:38:43 UTC
My builds still link against gtk+:2 via , I'm not convinced that dropping the dep is a good idea since that'll just convert it to a magic-dep...  I'll try to run this down for the v61 release and see if it can be mitigated or skipped.
Comment 2 Alex Xu (Hello71) 2018-09-03 17:47:17 UTC
it is dlopened when flash is loaded
Comment 3 Alex Xu (Hello71) 2018-09-06 08:26:42 UTC
also automagic dependencies generally refer to the case where a program requires different packages at runtime depending on what was installed at compile time, and this is not controlled by USE flags. this is not an automagic dependency, it is an optional dependency.

with modern firefox, you literally just need to move the dependency from the one variable to the other (and ensure that flash depends on gtk2).
Comment 4 Thomas Deutschmann gentoo-dev Security 2018-09-23 01:28:27 UTC
I agree with Ian: Latest Firefox (62.0.2) still builds and installs


which links against

> $ equery belongs /usr/lib64/
> * Searching for /usr/lib64/ ...
> x11-libs/gtk+-2.24.32-r1 (/usr/lib64/
> x11-libs/gtk+-2.24.32-r1 (/usr/lib64/ ->

So we will need it in DEPEND and RDEPEND. It is currently in CDEPEND helper variable which is in DEPEND and RDEPEND so I see nothing left we can do here.

I also see no option to disable mozgtk2.

I tend to close this as invalid.
Comment 5 Alex Xu (Hello71) 2018-09-23 02:50:43 UTC
well, then you might as well throw out the whole idea of "plugins" and "optional dependencies" if you don't believe in dlopen
Comment 6 Thomas Deutschmann gentoo-dev Security 2018-09-23 13:40:00 UTC
I am not sure if you understand the problem:

The problem is that firefox will pick up and link against library, at least when available, during build (I haven't tested if firefox will fail to build at all when this library is absent).

I am not aware of any parameter in firefox's build system to control the usage ob libgtk-x11-2.

If this library isn't really used (and maybe not even listed in upstream's own requirement list -- haven't check that), it would be a 'automagic dependency', see

As long as firefox will link against libgtk-x11-2 during build when this library is available, we must keep that library in DEPEND.

Feel free to provide a patch which will fix firefox build system so that firefox won't link against that library anymore even when available.
Comment 7 Alex Xu (Hello71) 2018-09-23 15:36:07 UTC
then I guess you should make pulseaudio a forced dependency, because dlopen doesn't exist.