Given the `gtk` USE flag for libcanberra enables GTK-2 support, while the `gtk3` USE flag enables GTK-3 support, it would be useful to at least have the `gtk` USE flag disabled by default given GTK-2 has entered EOL and Gentoo is working on gtk2-removal.
This is not going to do much, given that desktop profile is always enabling IUSE=gtk by default anyway. I suspect the current configuration will remain until the last revdep depending on gtk2 impl (claws-mail) is gone.
We could rename the flags: "gtk" -> "gtk2" and "gtk3" -> "gtk". Would help somewhat.
It should still be default enabled or introduces a default REQUIRED_USE conflict for claws-mail users, so does not achieve what the bug reporter wants. And that's a lot of useless churn in revdeps when cleanup is in its foreseeable future anyway, see bug 769464.
What I was looking for was libcanberra not to pull in gtk 2 if it's not necessary. If `gtk` is enabled by the desktop profile, rearranging the USE flags as proposed would work right? As for claws-mail, we can make it depend on libcanberra[gtk2] instead of libcanberra[gtk].
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=045488f09d792adcd03ddb91e391c94ae2c6d225 commit 045488f09d792adcd03ddb91e391c94ae2c6d225 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2022-04-12 03:10:52 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2022-04-12 03:15:44 +0000 media-libs/libcanberra: Change IUSE=+gtk to IUSE=gtk2 Bug: https://bugs.gentoo.org/769464 Bug: https://bugs.gentoo.org/834685 Closes: https://bugs.gentoo.org/811531 Signed-off-by: Matt Turner <mattst88@gentoo.org> .../{libcanberra-0.30-r5.ebuild => libcanberra-0.30-r6.ebuild} | 8 ++++---- media-libs/libcanberra/metadata.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65b51a8d7cc4ee7d3aa238e968c17eca331133c0 commit 65b51a8d7cc4ee7d3aa238e968c17eca331133c0 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2022-04-12 03:08:54 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2022-04-12 03:15:44 +0000 mail-client/claws-mail: Update for libcanberra USE=gtk2 Bug: https://bugs.gentoo.org/774918 Bug: https://bugs.gentoo.org/811531 Signed-off-by: Matt Turner <mattst88@gentoo.org> .../{claws-mail-3.18.0-r2.ebuild => claws-mail-3.18.0-r3.ebuild} | 2 +- .../{claws-mail-3.19.0.ebuild => claws-mail-3.19.0-r1.ebuild} | 2 +- mail-client/claws-mail/claws-mail-9999.ebuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)