All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-browser][PATCH 1/3] Set CHROMIUM_ENABLE_WAYLAND flag in chromium-wayland recipe
@ 2016-11-18 17:06 Jacobo Aragunde Pérez
  2016-11-18 17:06 ` [meta-browser][PATCH 2/3] Disable CHROMIUM_ENABLE_WAYLAND in the x11 recipe Jacobo Aragunde Pérez
  2016-11-18 17:06 ` [meta-browser][PATCH 3/3] Remove conditional detection of CHROMIUM_ENABLE_WAYLAND Jacobo Aragunde Pérez
  0 siblings, 2 replies; 5+ messages in thread
From: Jacobo Aragunde Pérez @ 2016-11-18 17:06 UTC (permalink / raw)
  To: openembedded-devel; +Cc: otavio, eric

It makes no sense to trigger a build of chromium-wayland and not
enable CHROMIUM_ENABLE_WAYLAND, so we are doing it directly in the
recipe now.

Now we know the value of the flag beforehand, we are allowed to
remove some conditionals. Additionally, we check if Wayland is
available before building.

Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
---
 recipes-browser/chromium/chromium-wayland_48.0.2548.0.bb | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bb b/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bb
index bbba147..0db8f7d 100644
--- a/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bb
+++ b/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bb
@@ -1,3 +1,5 @@
+CHROMIUM_ENABLE_WAYLAND = "1"
+
 include chromium-browser.inc
 
 DEPENDS += "wayland libxkbcommon"
@@ -21,15 +23,14 @@ SRC_URI[sha256sum] = "4ca4e2adb340b3fb4d502266ad7d6bda45fa3519906dbf63cce11a63f6
 OZONE_WAYLAND_GIT_BRANCH = "Milestone-SouthSister"
 OZONE_WAYLAND_GIT_SRCREV = "c605505044af3345a276abbd7c29fd53db1dea40"
 
-SRC_URI += "${@base_conditional('CHROMIUM_ENABLE_WAYLAND', '1', 'git://github.com/01org/ozone-wayland.git;destsuffix=${OZONE_WAYLAND_GIT_DESTSUFFIX};branch=${OZONE_WAYLAND_GIT_BRANCH};rev=${OZONE_WAYLAND_GIT_SRCREV} file://chromium-wayland/0006-Remove-GBM-support-from-wayland.gyp.patch', '', d)}"
+SRC_URI += "git://github.com/01org/ozone-wayland.git;destsuffix=${OZONE_WAYLAND_GIT_DESTSUFFIX};branch=${OZONE_WAYLAND_GIT_BRANCH};rev=${OZONE_WAYLAND_GIT_SRCREV} file://chromium-wayland/0006-Remove-GBM-support-from-wayland.gyp.patch"
 
 # Component build is unsupported in ozone-wayland for Chromium 48
 python() {
-    if (d.getVar('CHROMIUM_ENABLE_WAYLAND', True) == '1'):
-        if bb.utils.contains('PACKAGECONFIG', 'component-build', True, False, d):
-            bb.fatal("Chromium 48 Wayland version cannot be built in component-mode")
-    else:
-        raise bb.parse.SkipPackage("CHROMIUM_ENABLE_WAYLAND isn't enabled")
+    if not bb.utils.contains('DISTRO_FEATURES', 'wayland', True, False, d):
+        raise bb.parse.SkipPackage("Wayland is not available")
+    if bb.utils.contains('PACKAGECONFIG', 'component-build', True, False, d):
+        bb.fatal("Chromium 48 Wayland version cannot be built in component-mode")
 }
 
 CHROMIUM_WAYLAND_GYP_DEFINES = "use_ash=1 use_aura=1 chromeos=0 use_ozone=1 use_xkbcommon=1"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [meta-browser][PATCH 2/3] Disable CHROMIUM_ENABLE_WAYLAND in the x11 recipe
  2016-11-18 17:06 [meta-browser][PATCH 1/3] Set CHROMIUM_ENABLE_WAYLAND flag in chromium-wayland recipe Jacobo Aragunde Pérez
@ 2016-11-18 17:06 ` Jacobo Aragunde Pérez
  2016-11-18 17:51   ` Fabio Berton
  2016-11-18 17:06 ` [meta-browser][PATCH 3/3] Remove conditional detection of CHROMIUM_ENABLE_WAYLAND Jacobo Aragunde Pérez
  1 sibling, 1 reply; 5+ messages in thread
From: Jacobo Aragunde Pérez @ 2016-11-18 17:06 UTC (permalink / raw)
  To: openembedded-devel; +Cc: otavio, eric

The chromium x11 recipe crashed when run with CHROMIUM_ENABLE_WAYLAND
enabled, because it missed some steps that are performed in the
chromium-wayland recipe. Doing this change, we eliminate one possible
failure point.

Running the chromium_*.bb recipe with CHROMIUM_ENABLE_WAYLAND on
was crashing because it missed some steps that are performed in the
chromium-wayland recipe. We remove one possible failure point.

Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
---
 recipes-browser/chromium/chromium_52.0.2743.76.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-browser/chromium/chromium_52.0.2743.76.bb b/recipes-browser/chromium/chromium_52.0.2743.76.bb
index 14b519c..ea23a6b 100644
--- a/recipes-browser/chromium/chromium_52.0.2743.76.bb
+++ b/recipes-browser/chromium/chromium_52.0.2743.76.bb
@@ -1,3 +1,5 @@
+CHROMIUM_ENABLE_WAYLAND = "0"
+
 include chromium-browser.inc
 
 DEPENDS += "xextproto gtk+ libxi libxss"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [meta-browser][PATCH 3/3] Remove conditional detection of CHROMIUM_ENABLE_WAYLAND
  2016-11-18 17:06 [meta-browser][PATCH 1/3] Set CHROMIUM_ENABLE_WAYLAND flag in chromium-wayland recipe Jacobo Aragunde Pérez
  2016-11-18 17:06 ` [meta-browser][PATCH 2/3] Disable CHROMIUM_ENABLE_WAYLAND in the x11 recipe Jacobo Aragunde Pérez
@ 2016-11-18 17:06 ` Jacobo Aragunde Pérez
  1 sibling, 0 replies; 5+ messages in thread
From: Jacobo Aragunde Pérez @ 2016-11-18 17:06 UTC (permalink / raw)
  To: openembedded-devel; +Cc: otavio, eric

It can be a source of problems, because you must have chosen the
correct recipe to build the wayland or x11 version of chromium.

Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
---
 recipes-browser/chromium/chromium-browser.inc | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/recipes-browser/chromium/chromium-browser.inc b/recipes-browser/chromium/chromium-browser.inc
index 4fb47fd..8c73207 100644
--- a/recipes-browser/chromium/chromium-browser.inc
+++ b/recipes-browser/chromium/chromium-browser.inc
@@ -102,12 +102,6 @@ PACKAGECONFIG[kiosk-mode] = ""
 PACKAGECONFIG[proprietary-codecs] = ""
 
 
-# Conditionally add ozone-wayland and its patches to the Chromium sources
-# You can override this by setting CHROMIUM_ENABLE_WAYLAND=1 or CHROMIUM_ENABLE_WAYLAND=0 in local.conf
-CHROMIUM_ENABLE_WAYLAND ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '0', \
-                     bb.utils.contains('DISTRO_FEATURES', 'wayland', '1', \
-                     '0', d),d)}"
-
 # ozone-wayland will be cloned into a directory with this name
 OZONE_WAYLAND_GIT_DESTSUFFIX ?= "ozone-wayland-git"
 # Use glob to filter out the patches that shall be applied against ozone-wayland.
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [meta-browser][PATCH 2/3] Disable CHROMIUM_ENABLE_WAYLAND in the x11 recipe
  2016-11-18 17:06 ` [meta-browser][PATCH 2/3] Disable CHROMIUM_ENABLE_WAYLAND in the x11 recipe Jacobo Aragunde Pérez
@ 2016-11-18 17:51   ` Fabio Berton
  0 siblings, 0 replies; 5+ messages in thread
From: Fabio Berton @ 2016-11-18 17:51 UTC (permalink / raw)
  To: openembedded-devel; +Cc: eric, Otavio Salvador

​Hi Jacobo,
​
You need to skip package if x11 is not in DISTRO_FEATURES, like in your
chromium-wayland patch.

Thanks!

On Fri, Nov 18, 2016 at 3:06 PM, Jacobo Aragunde Pérez <jaragunde@igalia.com
> wrote:

> The chromium x11 recipe crashed when run with CHROMIUM_ENABLE_WAYLAND
> enabled, because it missed some steps that are performed in the
> chromium-wayland recipe. Doing this change, we eliminate one possible
> failure point.
>
> Running the chromium_*.bb recipe with CHROMIUM_ENABLE_WAYLAND on
> was crashing because it missed some steps that are performed in the
> chromium-wayland recipe. We remove one possible failure point.
>
> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
> ---
>  recipes-browser/chromium/chromium_52.0.2743.76.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/recipes-browser/chromium/chromium_52.0.2743.76.bb
> b/recipes-browser/chromium/chromium_52.0.2743.76.bb
> index 14b519c..ea23a6b 100644
> --- a/recipes-browser/chromium/chromium_52.0.2743.76.bb
> +++ b/recipes-browser/chromium/chromium_52.0.2743.76.bb
> @@ -1,3 +1,5 @@
> +CHROMIUM_ENABLE_WAYLAND = "0"
> +
>  include chromium-browser.inc
>
>  DEPENDS += "xextproto gtk+ libxi libxss"
> --
> 2.1.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [meta-browser][PATCH 2/3] Disable CHROMIUM_ENABLE_WAYLAND in the x11 recipe
  2016-11-17 17:34 [meta-browser][PATCH 1/3] Set CHROMIUM_ENABLE_WAYLAND flag in chromium-wayland recipe Jacobo Aragunde Pérez
@ 2016-11-17 17:34 ` Jacobo Aragunde Pérez
  0 siblings, 0 replies; 5+ messages in thread
From: Jacobo Aragunde Pérez @ 2016-11-17 17:34 UTC (permalink / raw)
  To: openembedded-devel; +Cc: denis, otavio, eric

Running the chromium_*.bb recipe with CHROMIUM_ENABLE_WAYLAND on
was crashing because it missed some steps that are performed in the
chromium-wayland recipe. We remove one possible failure point.

Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
---
 recipes-browser/chromium/chromium_52.0.2743.76.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-browser/chromium/chromium_52.0.2743.76.bb b/recipes-browser/chromium/chromium_52.0.2743.76.bb
index 14b519c..ea23a6b 100644
--- a/recipes-browser/chromium/chromium_52.0.2743.76.bb
+++ b/recipes-browser/chromium/chromium_52.0.2743.76.bb
@@ -1,3 +1,5 @@
+CHROMIUM_ENABLE_WAYLAND = "0"
+
 include chromium-browser.inc
 
 DEPENDS += "xextproto gtk+ libxi libxss"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-18 17:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-18 17:06 [meta-browser][PATCH 1/3] Set CHROMIUM_ENABLE_WAYLAND flag in chromium-wayland recipe Jacobo Aragunde Pérez
2016-11-18 17:06 ` [meta-browser][PATCH 2/3] Disable CHROMIUM_ENABLE_WAYLAND in the x11 recipe Jacobo Aragunde Pérez
2016-11-18 17:51   ` Fabio Berton
2016-11-18 17:06 ` [meta-browser][PATCH 3/3] Remove conditional detection of CHROMIUM_ENABLE_WAYLAND Jacobo Aragunde Pérez
  -- strict thread matches above, loose matches on Subject: below --
2016-11-17 17:34 [meta-browser][PATCH 1/3] Set CHROMIUM_ENABLE_WAYLAND flag in chromium-wayland recipe Jacobo Aragunde Pérez
2016-11-17 17:34 ` [meta-browser][PATCH 2/3] Disable CHROMIUM_ENABLE_WAYLAND in the x11 recipe Jacobo Aragunde Pérez

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.