From: Adrian Perez de Castro <aperez@igalia.com>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Samuel Martin <s.martin49@gmail.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 3/4] package/wpewebkit: do not depend on wpebackend-fdo
Date: Mon, 2 Sep 2024 23:15:51 +0300 [thread overview]
Message-ID: <20240902231551.GF1449890@igalia.com> (raw)
In-Reply-To: <20240802230832.27edaf28@windsurf>
[-- Attachment #1.1: Type: text/plain, Size: 2870 bytes --]
Hi,
On Fri, 02 Aug 2024 23:08:32 +0200 Thomas Petazzoni via buildroot <buildroot@buildroot.org> wrote:
> On Thu, 27 Jun 2024 22:33:31 +0300
> Adrian Perez de Castro <aperez@igalia.com> wrote:
>
> > Remove the wpewebkit package dependency on wpebackend-fdo, as it is not
> > needed at all during the build. What is needed is a WPE backend at run
> > time, which may be provided by wpebackend-fdo or wpebackend-rdk. To
> > reflect this, we make wpewebkit depend on either being selected.
> >
> > Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
> > ---
> > package/wpewebkit/Config.in | 9 ++++-----
> > package/wpewebkit/wpewebkit.mk | 2 +-
> > 2 files changed, 5 insertions(+), 6 deletions(-)
> >
> > ---
> > v1 -> v2:
> > - Remove openjpeg dependency, which has been dropped in 2.44.x
> >
> > diff --git a/package/wpewebkit/Config.in b/package/wpewebkit/Config.in
> > index e4b0320e1da..c55b827e2b8 100644
> > --- a/package/wpewebkit/Config.in
> > +++ b/package/wpewebkit/Config.in
> > @@ -24,11 +24,11 @@ comment "wpewebkit needs a toolchain w/ C++, wchar, threads, dynamic library, gc
> > || !BR2_TOOLCHAIN_GCC_AT_LEAST_10 \
> > || !BR2_HOST_GCC_AT_LEAST_4_9
> >
> > -comment "wpewebkit needs an OpenGL ES w/ EGL-capable Wayland backend"
> > +comment "wpewebkit needs an OpenGL ES w/ EGL-capable implementation and an WPE backend"
> > depends on BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
> > depends on !BR2_BINFMT_FLAT
> > - depends on !BR2_PACKAGE_HAS_LIBGLES || !BR2_PACKAGE_HAS_LIBEGL \
> > - || !BR2_PACKAGE_HAS_LIBEGL_WAYLAND
> > + depends on !BR2_PACKAGE_HAS_LIBGLES || !BR2_PACKAGE_HAS_LIBEGL
> > + depends on !BR2_PACKAGE_WPEBACKEND_FDO && !BR2_PACKAGE_WPEBACKEND_RDK
>
> I think we will want to select one, see below.
Indeed, I didn't come up myself with a good way of making sure at least
one is picked...
> > config BR2_PACKAGE_WPEWEBKIT
> > bool "wpewebkit"
> > @@ -41,8 +41,8 @@ config BR2_PACKAGE_WPEWEBKIT
> > depends on BR2_USE_WCHAR # icu, libsoup3
> > depends on BR2_PACKAGE_HAS_LIBGLES # libepoxy
> > depends on BR2_PACKAGE_HAS_LIBEGL # libepoxy
> > - depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # wpebackend-fdo
> > depends on BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
> > + depends on BR2_PACKAGE_WPEBACKEND_FDO || BR2_PACKAGE_WPEBACKEND_RDK
>
> Please use instead:
>
> select BR2_PACKAGE_WPEBACKEND_FDO if !BR2_PACKAGE_WPEBACKEND_RDK # runtime
>
> this will ensure that at least one is selected, taking by default
> wpebackend-fdo, but allowing the user to enable wpebackend-rdk (and
> disable wpebackend-fdo).
...and no idea why this didn't cross my mind. Thanks for the suggestion,
this is the right thing to do.
> Also the "# runtime" comment is important, because it explains why an
> option is selected, but not added to the build dependencies of the
> package.
TIL, thanks.
Cheers,
—Adrián
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-09-02 20:15 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-08 9:55 [Buildroot] [PATCH 0/3] Add support for the WPE WebKit RDK backend Adrian Perez de Castro
2024-02-08 9:55 ` [Buildroot] [PATCH 1/3] package/wpebackend-rdk: new package Adrian Perez de Castro
2024-02-08 9:55 ` [Buildroot] [PATCH 2/3] package/cog: depend on wpebackend-fdo only if needed Adrian Perez de Castro
2024-02-08 9:55 ` [Buildroot] [PATCH 3/3] package/wpewebkit: do not depend on wpebackend-fdo Adrian Perez de Castro
2024-02-08 10:29 ` [Buildroot] [PATCH 0/3] Add support for the WPE WebKit RDK backend Thomas Petazzoni via buildroot
2024-06-14 23:45 ` Adrian Perez de Castro
2024-06-15 6:54 ` Giulio Benetti
2024-06-18 6:53 ` Thomas Petazzoni via buildroot
2024-06-27 19:33 ` [Buildroot] [PATCH v2 0/4] " Adrian Perez de Castro
2024-06-27 19:33 ` [Buildroot] [PATCH v2 1/4] package/wpebackend-rdk: new package Adrian Perez de Castro
2024-08-02 21:00 ` Thomas Petazzoni via buildroot
2024-09-02 20:12 ` Adrian Perez de Castro
2024-06-27 19:33 ` [Buildroot] [PATCH v2 2/4] package/cog: depend on wpebackend-fdo only if needed Adrian Perez de Castro
2024-08-02 21:06 ` Thomas Petazzoni via buildroot
2024-09-02 20:21 ` Adrian Perez de Castro
2024-06-27 19:33 ` [Buildroot] [PATCH v2 3/4] package/wpewebkit: do not depend on wpebackend-fdo Adrian Perez de Castro
2024-08-02 21:08 ` Thomas Petazzoni via buildroot
2024-09-02 20:15 ` Adrian Perez de Castro [this message]
2024-06-27 19:33 ` [Buildroot] [PATCH v2 4/4] package/wpewebkit: disable libdrm usage when not available Adrian Perez de Castro
2024-08-02 21:15 ` Thomas Petazzoni via buildroot
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=20240902231551.GF1449890@igalia.com \
--to=aperez@igalia.com \
--cc=buildroot@buildroot.org \
--cc=s.martin49@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/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