$ cat /tmp/gtk+-3.22.19.atk-bridge.patch $NetBSD: patch-configure.ac,v 1.2 2014/09/08 12:06:48 wiz Exp $ Make gtk3-atk-bridge an option to avoid unwanted dbus dependency. --- 1/configure.ac +++ 2/configure.ac @@ -1370,8 +1370,13 @@ AC_SUBST(GDK_DEP_CFLAGS) # Check for Accessibility Toolkit flags ######################################## -if test x$enable_x11_backend = xyes; then +AC_ARG_WITH(atk-bridge, + AS_HELP_STRING([--without-atk-bridge], [Do not use atk-bridge-2.0]), + :, with_atk_bridge=yes) + +if test x$enable_x11_backend = xyes -a x$with_atk_bridge = xyes; then ATK_PACKAGES="atk atk-bridge-2.0" + AC_DEFINE([HAVE_ATK_BRIDGE], [1], [Define if we're using atk-bridge-2.0]) else ATK_PACKAGES="atk" fi $NetBSD: patch-config.h.in,v 1.2 2014/09/08 12:06:48 wiz Exp $ Make gtk3-atk-bridge an option to avoid unwanted dbus dependency. --- 1/config.h.in +++ 1/config.h.in @@ -10,6 +10,9 @@ /* Disable deprecation warnings from glib */ #undef GLIB_DISABLE_DEPRECATION_WARNINGS +/* Define if we're using atk-bridge-2.0 */ +#undef HAVE_ATK_BRIDGE + /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET Make gtk3-atk-bridge an option to avoid unwanted dbus dependency. --- 1/gtk/a11y/gtkaccessibility.c +++ 1/gtk/a11y/gtkaccessibility.c @@ -38,8 +38,10 @@ #include #ifdef GDK_WINDOWING_X11 +#ifdef HAVE_ATK_BRIDGE #include #endif +#endif static gboolean gail_focus_watcher (GSignalInvocationHint *ihint, guint n_param_values, @@ -989,8 +991,10 @@ _gtk_accessibility_init (void) do_window_event_initialization (); #ifdef GDK_WINDOWING_X11 +#ifdef HAVE_ATK_BRIDGE atk_bridge_adaptor_init (NULL, NULL); #endif +#endif atk_misc_instance = g_object_new (GTK_TYPE_MISC_IMPL, NULL); } $ cat /tmp/gtk+-3.22.19.ebuild.patch --- /usr/portage/x11-libs/gtk+/gtk+-3.22.19.ebuild 2018-05-21 20:39:19.000000000 -0500 +++ /usr/local/portage/x11-libs/gtk+/gtk+-3.22.19.ebuild 2018-07-19 17:49:00.890779434 -0500 @@ -11,7 +11,7 @@ LICENSE="LGPL-2+" SLOT="3" -IUSE="aqua broadway cloudprint colord cups examples +introspection test vim-syntax wayland +X xinerama" +IUSE="aqua atk-bridge broadway cloudprint colord cups examples +introspection test vim-syntax wayland +X xinerama" REQUIRED_USE=" || ( aqua wayland X ) xinerama? ( X ) @@ -48,7 +48,7 @@ >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}] ) X? ( - >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}] + atk-bridge? ( >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}] ) x11-libs/libX11[${MULTILIB_USEDEP}] >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}] x11-libs/libXext[${MULTILIB_USEDEP}] @@ -120,6 +120,9 @@ # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache eapply "${FILESDIR}"/${PN}-3.22.2-update-icon-cache.patch + # get rid of gtk3-atk-bridge crap + eapply "${FILESDIR}"/${PN}-3.22.19.atk-bridge.patch + eautoreconf gnome2_src_prepare } @@ -143,6 +146,7 @@ $(use_enable X xkb) \ $(use_enable X xrandr) \ $(use_enable xinerama) \ + $(use_with atk-bridge) \ --disable-papi \ --disable-mir-backend \ --enable-man \