Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645008 - x11-libs/gtk+:2 pulls x11-libs/gtk+:3
Summary: x11-libs/gtk+:2 pulls x11-libs/gtk+:3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-19 07:54 UTC by Hadrien Lacour
Modified: 2021-05-01 02:45 UTC (History)
0 users

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


Attachments
emerge -t output show dependancy on gtk+3 and DBus (deptree.txt,7.71 KB, text/plain)
2019-01-01 22:35 UTC, Thomas Groman
Details

Note You need to log in before you can comment on or make changes to this bug.
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.