I was surprised (specially on a gnome based setup) to see that gdk-pixbuf was default disabled in media-gfx/graphviz. While reading the ebuild I also saw that it doesn't add any extra dependency, hence, I am not sure about why we don't simply build it unconditionally. Thanks
This is one tiny plugin, so it makes sense to reduce amount of configuration load and needless rebuilds, I agree.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d4127b9ff80752a2f7ddc93a1282ac1366d88f5 commit 9d4127b9ff80752a2f7ddc93a1282ac1366d88f5 Author: Mikle Kolyada <zlogene@gentoo.org> AuthorDate: 2020-08-20 19:22:31 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2020-08-20 19:23:04 +0000 media-gfx/graphviz: enable gdk-pixbuf unconditionally Closes: https://bugs.gentoo.org/682520 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> media-gfx/graphviz/graphviz-2.42.3.ebuild | 4 ++-- media-gfx/graphviz/graphviz-2.44.1.ebuild | 4 ++-- media-gfx/graphviz/metadata.xml | 1 - 3 files changed, 4 insertions(+), 5 deletions(-)
Dependency on x11-libs/gdk-pixbuf:2 is still missing. There is actual linking against libgdk_pixbuf library: $ scanelf -qyF "%F: %n" $(qlist media-gfx/graphviz | sort) | grep libgdk_pixbuf /usr/lib64/graphviz/libgvplugin_gdk.so.6.0.0: libgvc.so.6,libgdk-x11-2.0.so.0,libcairo.so.2,libgdk_pixbuf-2.0.so.0,libgobject-2.0.so.0,libc.so.6 /usr/lib64/graphviz/libgvplugin_gtk.so.6.0.0: libgtk-x11-2.0.so.0,libgdk-x11-2.0.so.0,libatk-1.0.so.0,libcairo.so.2,libgdk_pixbuf-2.0.so.0,libgobject-2.0.so.0,libglib-2.0.so.0,libc.so.6
This dependency should be in DEPEND + RDEPEND, but https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39994ea59fb6dc10f3c565bd45de55dc1558ce74 added this dependency mistakenly to BDEPEND.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59cbab4852ff6d2a787101c0add3109170ee9ed4 commit 59cbab4852ff6d2a787101c0add3109170ee9ed4 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2022-04-12 03:56:26 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2022-04-12 17:38:53 +0000 media-gfx/graphviz: Fix automatic dependency on x11-libs/gtk+:2 There was a collection of errors that lead here: - In bug #682520 it was reported that IUSE=gdk-pixbuf didn't add any dependencies, so it should be enabled unconditionally. The maintainer enabled gdk-pixbuf unconditionally (but, see later items) in commit 9d4127b9ff8 ("media-gfx/graphviz: enable gdk-pixbuf unconditionally") rather than recognizing that graphviz was missing a dependency on x11-libs/gdk-pixbuf. - But in that fix, the maintainer replaced the already-wrong $(use_enable gdk-pixbuf) with --enable-gdk-pixbuf, whereas the correct option was --with-gdk-pixbuf. - The maintainer apparently recognized that it needed a dependency on x11-libs/gdk-pixbuf, so he added it in commit 39994ea59fb ("media-gfx/graphviz: add missing x11-libs/gdk-pixbuf dep") but for some reason added it to BDEPEND instead of DEPEND/RDEPEND. This was pointed out in 682520#c3 and 682520#c4 but not acted on. - In bug #828552 it was reported that --enable-gdk-pixbuf was an unknown argument to ./configure. As a result, it was removed in commit 066d7617103 ("media-gfx/graphviz: remove unknown configure arguments"), rather than switching to the correct --with-gdk-pixbuf argument. gdk-pixbuf is used by the libgvplugin_gdk.so plugin. It is used only if both --with-gdk and --with-gdk-pixbuf are used (both are enabled if not specified). The --with-gdk option requires gdk-2.0.pc, which is provided by x11-libs/gtk+:2. The --with-gdk-pixbuf option requires gdk-pixbuf-2.0.pc, which is provided by x11-libs/gdk-pixbuf:2. Since gdk-pixbuf is linked in only if x11-libs/gtk+:2 is enabled, control its usage with the existing IUSE=gtk flag. Bug: https://bugs.gentoo.org/682520 Bug: https://bugs.gentoo.org/828552 Closes: https://bugs.gentoo.org/824054 Closes: https://github.com/gentoo/gentoo/pull/25000 Signed-off-by: Matt Turner <mattst88@gentoo.org> .../{graphviz-2.49.0.ebuild => graphviz-2.49.0-r1.ebuild} | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)