All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Perez de Castro <aperez@igalia.com>
To: James Hilliard <james.hilliard1@gmail.com>
Cc: James Hilliard <james.hilliard1@gmail.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/wpewebkit: add option to enable media-stream
Date: Fri, 1 Oct 2021 13:58:41 +0300	[thread overview]
Message-ID: <20211001135841.GB1082333@momiji> (raw)
In-Reply-To: <20210924105340.3514180-1-james.hilliard1@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2583 bytes --]

Hi James, all,

On Fri, 24 Sep 2021 04:53:40 -0600 James Hilliard <james.hilliard1@gmail.com> wrote:
> This has a compile time dependency on gst1-plugins-bad due to
> the codecparsers dependency.
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
>  package/wpewebkit/Config.in    | 6 ++++++
>  package/wpewebkit/wpewebkit.mk | 7 +++++++
>  2 files changed, 13 insertions(+)
> 
> diff --git a/package/wpewebkit/Config.in b/package/wpewebkit/Config.in
> index 04b2bf3beb..df1c900d9f 100644
> --- a/package/wpewebkit/Config.in
> +++ b/package/wpewebkit/Config.in
> @@ -105,6 +105,12 @@ config BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA
>  	  This option pulls in all of the required dependencies
>  	  to enable multimedia (video/audio) support.
>  
> +config BR2_PACKAGE_WPEWEBKIT_MEDIA_STREAM
> +	bool "media-stream support"
> +	depends on BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA
> +	help
> +	  This option enables media-stream support.
> +
>  if BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA
>  
>  config BR2_PACKAGE_WPEWEBKIT_USE_GSTREAMER_GL
> diff --git a/package/wpewebkit/wpewebkit.mk b/package/wpewebkit/wpewebkit.mk
> index 5c5e6625f8..9ad569a472 100644
> --- a/package/wpewebkit/wpewebkit.mk
> +++ b/package/wpewebkit/wpewebkit.mk
> @@ -46,6 +46,13 @@ WPEWEBKIT_CONF_OPTS += \
>  	-DENABLE_WEB_AUDIO=OFF
>  endif
>  
> +ifeq ($(BR2_PACKAGE_WPEWEBKIT_MEDIA_STREAM),y)
> +WPEWEBKIT_CONF_OPTS += -DENABLE_MEDIA_STREAM=ON
> +WPEWEBKIT_DEPENDENCIES += gst1-plugins-bad
> +else
> +WPEWEBKIT_CONF_OPTS += -DENABLE_MEDIA_STREAM=OFF

The problem I see here is that we are forcing to disable a feature which
wildly popular web sites (e.g. YouTube) use more and more and being able
to disable it is likely to do more harm than good. Sites will break and
people will wrongly blame WPE WebKit :-\

The right approach here would be to break the circular dependency is doing
two passes on the gst1-plugins-bad build: one basic build which has the
things that WebKit needs (i.e. codecparsers), then use that to build WebKit,
then rebuild with all the options enabled. This second gst1-plugins-bad
build would be the one to install to the target image.

Unfortunately, I think the “good” solution it is not trivial to achieve
with Buildroot. What comes to mind is having a new gst1-plugins-bad-minimal
package which is used only as a throwaway dependency to build wpewebkit.
If somebody has a better suggestion, I would love to know :)

> +endif
> +
>  ifeq ($(BR2_PACKAGE_WPEWEBKIT_USE_GSTREAMER_GL),y)
>  WPEWEBKIT_CONF_OPTS += -DUSE_GSTREAMER_GL=ON
>  else
> -- 
> 2.25.1
> 

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

  reply	other threads:[~2021-10-01 10:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24 10:53 [Buildroot] [PATCH 1/1] package/wpewebkit: add option to enable media-stream James Hilliard
2021-10-01 10:58 ` Adrian Perez de Castro [this message]
2021-10-01 11:30   ` James Hilliard
2021-10-06 19:12 ` Arnout Vandecappelle
2021-10-09 11:27   ` Peter Korsgaard
2021-10-10 11:22   ` Adrian Perez de Castro

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=20211001135841.GB1082333@momiji \
    --to=aperez@igalia.com \
    --cc=buildroot@buildroot.org \
    --cc=james.hilliard1@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.