From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC PATCH v4 4/9] libgtk3: remove patch to disable atk-bridge support
Date: Thu, 21 Jun 2018 10:48:45 +0200 [thread overview]
Message-ID: <20180621104845.4bcc2c68@windsurf> (raw)
In-Reply-To: <CAMWSM7jSxBUZWWayCT_GcxP23P7PBw_PrfD8MnVDfERT_EqK3w@mail.gmail.com>
Hello,
On Wed, 20 Jun 2018 11:05:03 -0700, Joseph Kogut wrote:
> > Could we instead keep them optional, by improving this patch ? We
> > really try to keep dependencies to a reasonable level in Buildroot, so
> > it would be nice if we could avoid making those mandatory dependencies
> > of libgtk3.
> >
>
> That's a great point, and it's something I hadn't thought of. Would
> you recommend selectively applying the patch to disable the dependency
> on atk-bridge, or some other approach?
>
> Are there any examples of selectively applying patches that I can use
> as a reference?
We don't want to apply patches conditionally. Instead the patch
*itself* should be smarter, and only use atk if available.
> > > ---- a/configure.ac
> > > -+++ b/configure.ac
> > > -@@ -1349,11 +1349,7 @@
> > > - # Check for Accessibility Toolkit flags
> > > - ########################################
> > > -
> > > --if test x$enable_x11_backend = xyes; then
> > > -- ATK_PACKAGES="atk atk-bridge-2.0"
> > > --else
> > > -- ATK_PACKAGES="atk"
> > > --fi
> > > -+ATK_PACKAGES="atk"
> > > -
> > > - PKG_CHECK_MODULES(ATK, $ATK_PACKAGES)
A rough idea is something like this:
PKG_CHECK_MODULES(ATK, atk)
if test x$enable_x11_backend = xyes; then
PKG_CHECK_MODULES(ATK_BRIDGE, atk-bridge-2.0,
AC_DEFINE([HAVE_ATK_BRIDGE], [1]); ATK_BRIDGE_PACKAGE=atk-bridge-2.0)
fi
In configure.ac, add $ATK_BRIDGE_PACKAGE in:
GTK_PRIVATE_PACKAGES="$ATK_PACKAGES $WAYLAND_PACKAGES $MIR_PACKAGES epoxy >= epoxy_required_version"
And in gtkaccessibility.c, use #ifdef HAVE_ATK_BRIDGE instead of #ifdef
GDK_WINDOWING_X11 to guard the include of <atk-bridge.h> and the call
to atk_bridge_adaptor_init().
Of course, those are rough guidelines, you will probably need to adjust
stuff to actually make it work :-)
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-06-21 8:48 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-08 22:59 [Buildroot] [RFC PATCH 0/8] chromium: new package Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 1/8] atk: bump to version 2.25.2 Joseph Kogut
2018-06-09 17:36 ` Thomas Petazzoni
2018-06-09 18:19 ` Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 2/8] at-spi2-core: new package Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 3/8] at-spi2-atk: " Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 4/8] libgtk3: remove patch to disable atk-bridge support Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 5/8] llvm: add config to build backend for host arch Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 6/8] llvm: bump to version 6.0.0 Joseph Kogut
2018-06-12 14:34 ` Valentin Korenblit
2018-06-12 17:07 ` Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 7/8] clang: " Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 8/8] chromium: new package Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 0/9] " Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 1/9] atk: bump to version 2.25.2 Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 1/9] atk: bump to version 2.28.1 Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 2/9] at-spi2-core: new package Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 3/9] at-spi2-atk: " Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 4/9] libgtk3: remove patch to disable atk-bridge support Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 5/9] llvm: add config to build backend for host arch Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 6/9] llvm: bump to version 6.0.0 Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 7/9] clang: " Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 8/9] lld: new package Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 9/9] chromium: " Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v2 0/9] " Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 1/9] atk: bump to version 2.28.1 Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 2/9] at-spi2-core: new package Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 3/9] at-spi2-atk: " Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 4/9] libgtk3: remove patch to disable atk-bridge support Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 5/9] llvm: add config to build backend for host arch Joseph Kogut
2018-06-11 9:06 ` Valentin Korenblit
2018-06-11 16:24 ` Joseph Kogut
2018-06-11 17:54 ` Joseph Kogut
2018-06-12 13:46 ` Valentin Korenblit
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 6/9] llvm: bump to version 6.0.0 Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 7/9] clang: " Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 8/9] lld: new package Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 9/9] chromium: " Joseph Kogut
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 0/9] " Joseph Kogut
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 1/9] atk: bump to version 2.28.1 Joseph Kogut
2018-06-15 19:38 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 2/9] at-spi2-core: new package Joseph Kogut
2018-06-15 19:45 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 3/9] at-spi2-atk: " Joseph Kogut
2018-06-15 19:47 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 4/9] libgtk3: remove patch to disable atk-bridge support Joseph Kogut
2018-06-15 19:53 ` Thomas Petazzoni
2018-06-20 18:05 ` Joseph Kogut
2018-06-21 8:48 ` Thomas Petazzoni [this message]
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 5/9] llvm: add config to build backend for host arch Joseph Kogut
2018-06-15 20:10 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 6/9] llvm: bump to version 6.0.0 Joseph Kogut
2018-06-15 20:20 ` Thomas Petazzoni
2018-06-15 20:44 ` Joseph Kogut
2018-06-15 20:51 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 7/9] clang: " Joseph Kogut
2018-06-15 20:51 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 8/9] lld: new package Joseph Kogut
2018-06-15 21:01 ` Thomas Petazzoni
2018-06-20 19:14 ` Joseph Kogut
2018-06-21 12:45 ` Thomas Petazzoni
2018-06-21 23:32 ` Joseph Kogut
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 9/9] chromium: " Joseph Kogut
2018-06-20 20:57 ` Matthew Weber
2018-06-20 23:07 ` Joseph Kogut
2018-06-21 2:29 ` Matthew Weber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180621104845.4bcc2c68@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox