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

Bug 645008

Summary: x11-libs/gtk+:2 pulls x11-libs/gtk+:3
Product: Gentoo Linux Reporter: Hadrien Lacour <hadrien.lacour>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge -t output show dependancy on gtk+3 and DBus

Description Hadrien Lacour 2018-01-19 07:54:23 UTC
equery d adwaita-icon-theme
...
x11-libs/gtk+-2.24.31-r1 (>=x11-themes/adwaita-icon-theme-3.14)

equery g adwaita-icon-theme
...
x11-libs/gtk+-3.22.19


I masked the new adwaita-icon-theme for now, but is there a cleaner way to get this?
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2018-01-19 08:24:28 UTC
It is only needed at build time. The problem is that gtk+:3 ships gtk-encode-symbolic-svg which is required to build adwaita-icon-theme (and possibly other themes). The clean solution would be to split the tool off of gtk+ like gtk-update-icon-cache but this requires some maintenance effort on the package itself and then walking the tree to find all packages actually needing this to avoid breakage.
Comment 2 Hadrien Lacour 2018-01-19 08:37:09 UTC
Maybe make gtk2 depend on the last adwaita version without this issue? This is definitely not clean, though.
Comment 3 Mart Raudsepp gentoo-dev 2018-01-19 10:20:52 UTC
(In reply to Gilles Dartiguelongue from comment #1)
> It is only needed at build time. The problem is that gtk+:3 ships
> gtk-encode-symbolic-svg which is required to build adwaita-icon-theme (and
> possibly other themes). The clean solution would be to split the tool off of
> gtk+ like gtk-update-icon-cache but this requires some maintenance effort on
> the package itself and then walking the tree to find all packages actually
> needing this to avoid breakage.

It links to libgdk for gdk_rgba_to_string. To split it out, we'd have to replace that usage (perhaps with an open-coded one) and remove linking to gdk too.
Comment 4 Mart Raudsepp gentoo-dev 2018-01-19 10:21:27 UTC
(In reply to Hadrien Lacour from comment #2)
> Maybe make gtk2 depend on the last adwaita version without this issue? This
> is definitely not clean, though.

depending on gtk3 isn't exactly that dirty, either. It just bother people who has some obsession with avoiding gtk3 being installed.
Comment 5 Hadrien Lacour 2018-01-19 17:49:36 UTC
Well, sure, it's a bit of autism. But a package depending on a later version of itself does sound strange.
Comment 6 Thomas Groman 2019-01-01 22:35:25 UTC
Created attachment 559422 [details]
emerge -t output show dependancy on gtk+3 and DBus
Comment 7 Thomas Groman 2019-01-01 22:39:16 UTC
As an temporary workaround you could add 

x11-themes/adwaita-icon-theme-3.24.0
x11-themes/gtk-engines-adwaita

to /etc/portage/profile/package.provided to trick the system into thinking those packages are already installed. This may break other things though.
Comment 8 Hadrien Lacour 2019-01-01 23:19:22 UTC
That's indeed what I ended doing, with an ebuild for an older (and better) gtk/icon theme: bluecurve.