All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
@ 2017-02-02 12:17 Jacobo Aragunde Pérez
  2017-02-02 12:30 ` Jacobo Aragunde Pérez
  2017-02-09 18:53 ` Jacobo Aragunde Pérez
  0 siblings, 2 replies; 10+ messages in thread
From: Jacobo Aragunde Pérez @ 2017-02-02 12:17 UTC (permalink / raw)
  To: openembedded-devel; +Cc: otavio

Certain build configurations enable a code path that includes
keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11
environments because of a missing patch that is present upstream.

This commit adds the missing patch from
https://codereview.chromium.org/2239833003

There are two versions of the patch in the code review URL above.
The first version fixes the problem both under the gyp and GN build
systems. That patch was rejected because gyp is considered deprecated
upstream. The second version fixes the problem only on GN and it was
merged upstream. We are picking the first version because our recipes
still use gyp to build.

Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
---
 .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
 .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch

diff --git a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
index a75918b..ef913a7 100644
--- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
+++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
@@ -13,6 +13,7 @@ SRC_URI += "\
         file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch \
         file://chromium-wayland/remove-Werror.patch \
         file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch \
+        file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch \
         ${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'file://component-build.gypi', '', d)} \
         ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '', d)} \
 "
diff --git a/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
new file mode 100644
index 0000000..976ece9
--- /dev/null
+++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
@@ -0,0 +1,51 @@
+From: jbriance <jbriance@cisco.com>
+Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
+
+Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
+use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading
+to the following compilation error in this case:
+
+  In file included from ../../ui/events/keycodes/keyboard_code_conversion_xkb.h:12:0,
+                   from ../../ui/events/keycodes/keyboard_code_conversion_xkb.cc:5:
+  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error: X11/X.h: No such file or directory
+
+BUG=none
+
+Review-Url: https://codereview.chromium.org/2239833003
+--
+
+Index: ui/events/keycodes/BUILD.gn
+diff --git a/ui/events/keycodes/BUILD.gn b/ui/events/keycodes/BUILD.gn
+index 4f2d47c2497d321332c79d0dd4e9007b50c319c7..716c7ed17cc8049ea65b95a5062e7c6e0adc6e48 100644
+--- a/ui/events/keycodes/BUILD.gn
++++ b/ui/events/keycodes/BUILD.gn
+@@ -17,6 +17,10 @@ source_set("xkb") {
+     "//base",
+     "//ui/events:dom_keycode_converter",
+   ]
++
++  if (use_xkbcommon) {
++    defines = [ "USE_XKBCOMMON" ]
++  }
+ }
+ 
+ if (use_x11 || ozone_platform_x11) {
+Index: ui/events/keycodes/events_keycodes.gyp
+diff --git a/ui/events/keycodes/events_keycodes.gyp b/ui/events/keycodes/events_keycodes.gyp
+index b0796b4e2ead8bffe88fb01ed136814be505d967..248e961bad2ad3996ca99624b6c489c7835f6241 100644
+--- a/ui/events/keycodes/events_keycodes.gyp
++++ b/ui/events/keycodes/events_keycodes.gyp
+@@ -21,6 +21,13 @@
+         'scoped_xkb.h',
+         'xkb_keysym.h',
+       ],
++      'conditions': [
++        ['use_xkbcommon==1', {
++          'defines': [
++            'USE_XKBCOMMON',
++          ],
++        }],
++      ],
+     },
+   ],
+   'conditions': [
-- 
2.7.4



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

* Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
  2017-02-02 12:17 [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds Jacobo Aragunde Pérez
@ 2017-02-02 12:30 ` Jacobo Aragunde Pérez
  2017-02-02 12:46   ` Herve Jourdain
  2017-02-02 12:48   ` Herve Jourdain
  2017-02-09 18:53 ` Jacobo Aragunde Pérez
  1 sibling, 2 replies; 10+ messages in thread
From: Jacobo Aragunde Pérez @ 2017-02-02 12:30 UTC (permalink / raw)
  To: openembedded-devel; +Cc: otavio

Thank you all for your reviews. This should be the last patch, it
addresses Herve's problem when building on a Raspberry Pi.

Unfortunately, I haven't been able to reproduce his problem myself, but
this patch is actually a backport of an upstream patch, so it makes no
harm in my opinion.

Another question, are you using krogoth in you rpi build? I found
problems with the declared architecture in releases newer than jethro,
it is called "armv7ve" and chromium doesn't build because it expects
"armv7a". We could use a patch if you have worked around this problem :)

Thanks again,
-- 
Jacobo Aragunde
Software Engineer at Igalia


On 02/02/17 13:17, Jacobo Aragunde Pérez wrote:
> Certain build configurations enable a code path that includes
> keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11
> environments because of a missing patch that is present upstream.
> 
> This commit adds the missing patch from
> https://codereview.chromium.org/2239833003
> 
> There are two versions of the patch in the code review URL above.
> The first version fixes the problem both under the gyp and GN build
> systems. That patch was rejected because gyp is considered deprecated
> upstream. The second version fixes the problem only on GN and it was
> merged upstream. We are picking the first version because our recipes
> still use gyp to build.
> 
> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
> ---
>  .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
>  .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51 ++++++++++++++++++++++
>  2 files changed, 52 insertions(+)
>  create mode 100644 recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> 
> diff --git a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> index a75918b..ef913a7 100644
> --- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> +++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> @@ -13,6 +13,7 @@ SRC_URI += "\
>          file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch \
>          file://chromium-wayland/remove-Werror.patch \
>          file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch \
> +        file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch \
>          ${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'file://component-build.gypi', '', d)} \
>          ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '', d)} \
>  "
> diff --git a/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> new file mode 100644
> index 0000000..976ece9
> --- /dev/null
> +++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> @@ -0,0 +1,51 @@
> +From: jbriance <jbriance@cisco.com>
> +Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
> +
> +Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
> +use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading
> +to the following compilation error in this case:
> +
> +  In file included from ../../ui/events/keycodes/keyboard_code_conversion_xkb.h:12:0,
> +                   from ../../ui/events/keycodes/keyboard_code_conversion_xkb.cc:5:
> +  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error: X11/X.h: No such file or directory
> +
> +BUG=none
> +
> +Review-Url: https://codereview.chromium.org/2239833003
> +--
> +
> +Index: ui/events/keycodes/BUILD.gn
> +diff --git a/ui/events/keycodes/BUILD.gn b/ui/events/keycodes/BUILD.gn
> +index 4f2d47c2497d321332c79d0dd4e9007b50c319c7..716c7ed17cc8049ea65b95a5062e7c6e0adc6e48 100644
> +--- a/ui/events/keycodes/BUILD.gn
> ++++ b/ui/events/keycodes/BUILD.gn
> +@@ -17,6 +17,10 @@ source_set("xkb") {
> +     "//base",
> +     "//ui/events:dom_keycode_converter",
> +   ]
> ++
> ++  if (use_xkbcommon) {
> ++    defines = [ "USE_XKBCOMMON" ]
> ++  }
> + }
> + 
> + if (use_x11 || ozone_platform_x11) {
> +Index: ui/events/keycodes/events_keycodes.gyp
> +diff --git a/ui/events/keycodes/events_keycodes.gyp b/ui/events/keycodes/events_keycodes.gyp
> +index b0796b4e2ead8bffe88fb01ed136814be505d967..248e961bad2ad3996ca99624b6c489c7835f6241 100644
> +--- a/ui/events/keycodes/events_keycodes.gyp
> ++++ b/ui/events/keycodes/events_keycodes.gyp
> +@@ -21,6 +21,13 @@
> +         'scoped_xkb.h',
> +         'xkb_keysym.h',
> +       ],
> ++      'conditions': [
> ++        ['use_xkbcommon==1', {
> ++          'defines': [
> ++            'USE_XKBCOMMON',
> ++          ],
> ++        }],
> ++      ],
> +     },
> +   ],
> +   'conditions': [
> 




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

* Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
  2017-02-02 12:30 ` Jacobo Aragunde Pérez
@ 2017-02-02 12:46   ` Herve Jourdain
  2017-02-02 13:28     ` Jacobo Aragunde Pérez
  2017-02-02 12:48   ` Herve Jourdain
  1 sibling, 1 reply; 10+ messages in thread
From: Herve Jourdain @ 2017-02-02 12:46 UTC (permalink / raw)
  To: 'Jacobo Aragunde Pérez', openembedded-devel; +Cc: otavio

Hi Jacobo,

I'm using "master", and I do have patches for enabling armv7ve. But since they're needed only for raspberrypi, I planned to submit them only for meta-raspberrypi.
If you think it could be useful in meta-browser, though, I can submit them there.

Cheers,
Herve

-----Original Message-----
From: Jacobo Aragunde Pérez [mailto:jaragunde@igalia.com] 
Sent: jeudi 2 février 2017 13:30
To: openembedded-devel@lists.openembedded.org
Cc: otavio@ossystems.com.br; Herve Jourdain <herve.jourdain@neuf.fr>
Subject: Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds

Thank you all for your reviews. This should be the last patch, it addresses Herve's problem when building on a Raspberry Pi.

Unfortunately, I haven't been able to reproduce his problem myself, but this patch is actually a backport of an upstream patch, so it makes no harm in my opinion.

Another question, are you using krogoth in you rpi build? I found problems with the declared architecture in releases newer than jethro, it is called "armv7ve" and chromium doesn't build because it expects "armv7a". We could use a patch if you have worked around this problem :)

Thanks again,
--
Jacobo Aragunde
Software Engineer at Igalia


On 02/02/17 13:17, Jacobo Aragunde Pérez wrote:
> Certain build configurations enable a code path that includes
> keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11
> environments because of a missing patch that is present upstream.
> 
> This commit adds the missing patch from
> https://codereview.chromium.org/2239833003
> 
> There are two versions of the patch in the code review URL above.
> The first version fixes the problem both under the gyp and GN build
> systems. That patch was rejected because gyp is considered deprecated
> upstream. The second version fixes the problem only on GN and it was
> merged upstream. We are picking the first version because our recipes
> still use gyp to build.
> 
> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
> ---
>  .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
>  .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51 ++++++++++++++++++++++
>  2 files changed, 52 insertions(+)
>  create mode 100644 recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> 
> diff --git a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> index a75918b..ef913a7 100644
> --- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> +++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> @@ -13,6 +13,7 @@ SRC_URI += "\
>          file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch \
>          file://chromium-wayland/remove-Werror.patch \
>          file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch \
> +        file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch \
>          ${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'file://component-build.gypi', '', d)} \
>          ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '', d)} \
>  "
> diff --git a/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> new file mode 100644
> index 0000000..976ece9
> --- /dev/null
> +++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> @@ -0,0 +1,51 @@
> +From: jbriance <jbriance@cisco.com>
> +Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
> +
> +Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
> +use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading
> +to the following compilation error in this case:
> +
> +  In file included from ../../ui/events/keycodes/keyboard_code_conversion_xkb.h:12:0,
> +                   from ../../ui/events/keycodes/keyboard_code_conversion_xkb.cc:5:
> +  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error: X11/X.h: No such file or directory
> +
> +BUG=none
> +
> +Review-Url: https://codereview.chromium.org/2239833003
> +--
> +
> +Index: ui/events/keycodes/BUILD.gn
> +diff --git a/ui/events/keycodes/BUILD.gn b/ui/events/keycodes/BUILD.gn
> +index 4f2d47c2497d321332c79d0dd4e9007b50c319c7..716c7ed17cc8049ea65b95a5062e7c6e0adc6e48 100644
> +--- a/ui/events/keycodes/BUILD.gn
> ++++ b/ui/events/keycodes/BUILD.gn
> +@@ -17,6 +17,10 @@ source_set("xkb") {
> +     "//base",
> +     "//ui/events:dom_keycode_converter",
> +   ]
> ++
> ++  if (use_xkbcommon) {
> ++    defines = [ "USE_XKBCOMMON" ]
> ++  }
> + }
> + 
> + if (use_x11 || ozone_platform_x11) {
> +Index: ui/events/keycodes/events_keycodes.gyp
> +diff --git a/ui/events/keycodes/events_keycodes.gyp b/ui/events/keycodes/events_keycodes.gyp
> +index b0796b4e2ead8bffe88fb01ed136814be505d967..248e961bad2ad3996ca99624b6c489c7835f6241 100644
> +--- a/ui/events/keycodes/events_keycodes.gyp
> ++++ b/ui/events/keycodes/events_keycodes.gyp
> +@@ -21,6 +21,13 @@
> +         'scoped_xkb.h',
> +         'xkb_keysym.h',
> +       ],
> ++      'conditions': [
> ++        ['use_xkbcommon==1', {
> ++          'defines': [
> ++            'USE_XKBCOMMON',
> ++          ],
> ++        }],
> ++      ],
> +     },
> +   ],
> +   'conditions': [
> 



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

* Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
  2017-02-02 12:30 ` Jacobo Aragunde Pérez
  2017-02-02 12:46   ` Herve Jourdain
@ 2017-02-02 12:48   ` Herve Jourdain
  1 sibling, 0 replies; 10+ messages in thread
From: Herve Jourdain @ 2017-02-02 12:48 UTC (permalink / raw)
  To: 'Jacobo Aragunde Pérez', openembedded-devel; +Cc: otavio

And BTW, I'll try to test your patch tomorrow - I'm back now, so I'll have access to my build server.

-----Original Message-----
From: Herve Jourdain [mailto:herve.jourdain@neuf.fr] 
Sent: jeudi 2 février 2017 13:47
To: 'Jacobo Aragunde Pérez' <jaragunde@igalia.com>; 'openembedded-devel@lists.openembedded.org' <openembedded-devel@lists.openembedded.org>
Cc: 'otavio@ossystems.com.br' <otavio@ossystems.com.br>
Subject: RE: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds

Hi Jacobo,

I'm using "master", and I do have patches for enabling armv7ve. But since they're needed only for raspberrypi, I planned to submit them only for meta-raspberrypi.
If you think it could be useful in meta-browser, though, I can submit them there.

Cheers,
Herve

-----Original Message-----
From: Jacobo Aragunde Pérez [mailto:jaragunde@igalia.com]
Sent: jeudi 2 février 2017 13:30
To: openembedded-devel@lists.openembedded.org
Cc: otavio@ossystems.com.br; Herve Jourdain <herve.jourdain@neuf.fr>
Subject: Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds

Thank you all for your reviews. This should be the last patch, it addresses Herve's problem when building on a Raspberry Pi.

Unfortunately, I haven't been able to reproduce his problem myself, but this patch is actually a backport of an upstream patch, so it makes no harm in my opinion.

Another question, are you using krogoth in you rpi build? I found problems with the declared architecture in releases newer than jethro, it is called "armv7ve" and chromium doesn't build because it expects "armv7a". We could use a patch if you have worked around this problem :)

Thanks again,
--
Jacobo Aragunde
Software Engineer at Igalia


On 02/02/17 13:17, Jacobo Aragunde Pérez wrote:
> Certain build configurations enable a code path that includes 
> keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11 
> environments because of a missing patch that is present upstream.
> 
> This commit adds the missing patch from
> https://codereview.chromium.org/2239833003
> 
> There are two versions of the patch in the code review URL above.
> The first version fixes the problem both under the gyp and GN build 
> systems. That patch was rejected because gyp is considered deprecated 
> upstream. The second version fixes the problem only on GN and it was 
> merged upstream. We are picking the first version because our recipes 
> still use gyp to build.
> 
> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
> ---
>  .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
>  .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51 ++++++++++++++++++++++
>  2 files changed, 52 insertions(+)
>  create mode 100644 
> recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-w
> hen-use_xkbcommon-1.patch
> 
> diff --git 
> a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb 
> b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> index a75918b..ef913a7 100644
> --- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> +++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> @@ -13,6 +13,7 @@ SRC_URI += "\
>          file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch \
>          file://chromium-wayland/remove-Werror.patch \
>          
> file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch \
> +        
> + file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch 
> + \
>          ${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'file://component-build.gypi', '', d)} \
>          ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 
> 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '', d)} \  "
> diff --git 
> a/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build
> -when-use_xkbcommon-1.patch 
> b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build
> -when-use_xkbcommon-1.patch
> new file mode 100644
> index 0000000..976ece9
> --- /dev/null
> +++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-b
> +++ uild-when-use_xkbcommon-1.patch
> @@ -0,0 +1,51 @@
> +From: jbriance <jbriance@cisco.com>
> +Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
> +
> +Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
> +use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading 
> +to the following compilation error in this case:
> +
> +  In file included from ../../ui/events/keycodes/keyboard_code_conversion_xkb.h:12:0,
> +                   from ../../ui/events/keycodes/keyboard_code_conversion_xkb.cc:5:
> +  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error: X11/X.h: 
> + No such file or directory
> +
> +BUG=none
> +
> +Review-Url: https://codereview.chromium.org/2239833003
> +--
> +
> +Index: ui/events/keycodes/BUILD.gn
> +diff --git a/ui/events/keycodes/BUILD.gn 
> +b/ui/events/keycodes/BUILD.gn index 
> +4f2d47c2497d321332c79d0dd4e9007b50c319c7..716c7ed17cc8049ea65b95a5062
> +e7c6e0adc6e48 100644
> +--- a/ui/events/keycodes/BUILD.gn
> ++++ b/ui/events/keycodes/BUILD.gn
> +@@ -17,6 +17,10 @@ source_set("xkb") {
> +     "//base",
> +     "//ui/events:dom_keycode_converter",
> +   ]
> ++
> ++  if (use_xkbcommon) {
> ++    defines = [ "USE_XKBCOMMON" ]
> ++  }
> + }
> + 
> + if (use_x11 || ozone_platform_x11) {
> +Index: ui/events/keycodes/events_keycodes.gyp
> +diff --git a/ui/events/keycodes/events_keycodes.gyp 
> +b/ui/events/keycodes/events_keycodes.gyp
> +index 
> +b0796b4e2ead8bffe88fb01ed136814be505d967..248e961bad2ad3996ca99624b6c
> +489c7835f6241 100644
> +--- a/ui/events/keycodes/events_keycodes.gyp
> ++++ b/ui/events/keycodes/events_keycodes.gyp
> +@@ -21,6 +21,13 @@
> +         'scoped_xkb.h',
> +         'xkb_keysym.h',
> +       ],
> ++      'conditions': [
> ++        ['use_xkbcommon==1', {
> ++          'defines': [
> ++            'USE_XKBCOMMON',
> ++          ],
> ++        }],
> ++      ],
> +     },
> +   ],
> +   'conditions': [
> 



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

* Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
  2017-02-02 12:46   ` Herve Jourdain
@ 2017-02-02 13:28     ` Jacobo Aragunde Pérez
  2017-02-02 15:33       ` Herve Jourdain
  0 siblings, 1 reply; 10+ messages in thread
From: Jacobo Aragunde Pérez @ 2017-02-02 13:28 UTC (permalink / raw)
  To: Herve Jourdain, openembedded-devel; +Cc: otavio

On 02/02/17 13:46, Herve Jourdain wrote:
> Hi Jacobo,
> 
> I'm using "master", and I do have patches for enabling armv7ve. But since
> they're needed only for raspberrypi, I planned to submit them only for
> meta-raspberrypi.
> If you think it could be useful in meta-browser, though, I can submit them there.
> 

Oh, I think sending them to meta-rpi would be good enough, thank you!
I'll keep an eye on it.

Best regards,
-- 
Jacobo Aragunde
Software Engineer at Igalia


> -----Original Message-----
> From: Jacobo Aragunde Pérez [mailto:jaragunde@igalia.com] 
> Sent: jeudi 2 février 2017 13:30
> To: openembedded-devel@lists.openembedded.org
> Cc: otavio@ossystems.com.br; Herve Jourdain <herve.jourdain@neuf.fr>
> Subject: Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
> 
> Thank you all for your reviews. This should be the last patch, it addresses Herve's problem when building on a Raspberry Pi.
> 
> Unfortunately, I haven't been able to reproduce his problem myself, but this patch is actually a backport of an upstream patch, so it makes no harm in my opinion.
> 
> Another question, are you using krogoth in you rpi build? I found problems with the declared architecture in releases newer than jethro, it is called "armv7ve" and chromium doesn't build because it expects "armv7a". We could use a patch if you have worked around this problem :)
> 
> Thanks again,
> --
> Jacobo Aragunde
> Software Engineer at Igalia
> 
> 
> On 02/02/17 13:17, Jacobo Aragunde Pérez wrote:
>> Certain build configurations enable a code path that includes
>> keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11
>> environments because of a missing patch that is present upstream.
>>
>> This commit adds the missing patch from
>> https://codereview.chromium.org/2239833003
>>
>> There are two versions of the patch in the code review URL above.
>> The first version fixes the problem both under the gyp and GN build
>> systems. That patch was rejected because gyp is considered deprecated
>> upstream. The second version fixes the problem only on GN and it was
>> merged upstream. We are picking the first version because our recipes
>> still use gyp to build.
>>
>> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
>> ---
>>  .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
>>  .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51 ++++++++++++++++++++++
>>  2 files changed, 52 insertions(+)
>>  create mode 100644 recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>>
>> diff --git a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>> index a75918b..ef913a7 100644
>> --- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>> +++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>> @@ -13,6 +13,7 @@ SRC_URI += "\
>>          file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch \
>>          file://chromium-wayland/remove-Werror.patch \
>>          file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch \
>> +        file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch \
>>          ${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'file://component-build.gypi', '', d)} \
>>          ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '', d)} \
>>  "
>> diff --git a/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>> new file mode 100644
>> index 0000000..976ece9
>> --- /dev/null
>> +++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>> @@ -0,0 +1,51 @@
>> +From: jbriance <jbriance@cisco.com>
>> +Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
>> +
>> +Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
>> +use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading
>> +to the following compilation error in this case:
>> +
>> +  In file included from ../../ui/events/keycodes/keyboard_code_conversion_xkb.h:12:0,
>> +                   from ../../ui/events/keycodes/keyboard_code_conversion_xkb.cc:5:
>> +  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error: X11/X.h: No such file or directory
>> +
>> +BUG=none
>> +
>> +Review-Url: https://codereview.chromium.org/2239833003
>> +--
>> +
>> +Index: ui/events/keycodes/BUILD.gn
>> +diff --git a/ui/events/keycodes/BUILD.gn b/ui/events/keycodes/BUILD.gn
>> +index 4f2d47c2497d321332c79d0dd4e9007b50c319c7..716c7ed17cc8049ea65b95a5062e7c6e0adc6e48 100644
>> +--- a/ui/events/keycodes/BUILD.gn
>> ++++ b/ui/events/keycodes/BUILD.gn
>> +@@ -17,6 +17,10 @@ source_set("xkb") {
>> +     "//base",
>> +     "//ui/events:dom_keycode_converter",
>> +   ]
>> ++
>> ++  if (use_xkbcommon) {
>> ++    defines = [ "USE_XKBCOMMON" ]
>> ++  }
>> + }
>> + 
>> + if (use_x11 || ozone_platform_x11) {
>> +Index: ui/events/keycodes/events_keycodes.gyp
>> +diff --git a/ui/events/keycodes/events_keycodes.gyp b/ui/events/keycodes/events_keycodes.gyp
>> +index b0796b4e2ead8bffe88fb01ed136814be505d967..248e961bad2ad3996ca99624b6c489c7835f6241 100644
>> +--- a/ui/events/keycodes/events_keycodes.gyp
>> ++++ b/ui/events/keycodes/events_keycodes.gyp
>> +@@ -21,6 +21,13 @@
>> +         'scoped_xkb.h',
>> +         'xkb_keysym.h',
>> +       ],
>> ++      'conditions': [
>> ++        ['use_xkbcommon==1', {
>> ++          'defines': [
>> ++            'USE_XKBCOMMON',
>> ++          ],
>> ++        }],
>> ++      ],
>> +     },
>> +   ],
>> +   'conditions': [
>>
> 
> 



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

* Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
  2017-02-02 13:28     ` Jacobo Aragunde Pérez
@ 2017-02-02 15:33       ` Herve Jourdain
  2017-02-15 18:17         ` Jacobo Aragunde Pérez
  0 siblings, 1 reply; 10+ messages in thread
From: Herve Jourdain @ 2017-02-02 15:33 UTC (permalink / raw)
  To: Jacobo Aragunde Pérez; +Cc: openembedded-devel, otavio

Hi Jacobo,

OK, I will send those extra patched to the meta-raspberry list tomorrow then.

Cheers,
Herve

> On 2 Feb 2017, at 21:28, Jacobo Aragunde Pérez <jaragunde@igalia.com> wrote:
> 
>> On 02/02/17 13:46, Herve Jourdain wrote:
>> Hi Jacobo,
>> 
>> I'm using "master", and I do have patches for enabling armv7ve. But since
>> they're needed only for raspberrypi, I planned to submit them only for
>> meta-raspberrypi.
>> If you think it could be useful in meta-browser, though, I can submit them there.
>> 
> 
> Oh, I think sending them to meta-rpi would be good enough, thank you!
> I'll keep an eye on it.
> 
> Best regards,
> -- 
> Jacobo Aragunde
> Software Engineer at Igalia
> 
> 
>> -----Original Message-----
>> From: Jacobo Aragunde Pérez [mailto:jaragunde@igalia.com] 
>> Sent: jeudi 2 février 2017 13:30
>> To: openembedded-devel@lists.openembedded.org
>> Cc: otavio@ossystems.com.br; Herve Jourdain <herve.jourdain@neuf.fr>
>> Subject: Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
>> 
>> Thank you all for your reviews. This should be the last patch, it addresses Herve's problem when building on a Raspberry Pi.
>> 
>> Unfortunately, I haven't been able to reproduce his problem myself, but this patch is actually a backport of an upstream patch, so it makes no harm in my opinion.
>> 
>> Another question, are you using krogoth in you rpi build? I found problems with the declared architecture in releases newer than jethro, it is called "armv7ve" and chromium doesn't build because it expects "armv7a". We could use a patch if you have worked around this problem :)
>> 
>> Thanks again,
>> --
>> Jacobo Aragunde
>> Software Engineer at Igalia
>> 
>> 
>>> On 02/02/17 13:17, Jacobo Aragunde Pérez wrote:
>>> Certain build configurations enable a code path that includes
>>> keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11
>>> environments because of a missing patch that is present upstream.
>>> 
>>> This commit adds the missing patch from
>>> https://codereview.chromium.org/2239833003
>>> 
>>> There are two versions of the patch in the code review URL above.
>>> The first version fixes the problem both under the gyp and GN build
>>> systems. That patch was rejected because gyp is considered deprecated
>>> upstream. The second version fixes the problem only on GN and it was
>>> merged upstream. We are picking the first version because our recipes
>>> still use gyp to build.
>>> 
>>> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
>>> ---
>>> .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
>>> .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51 ++++++++++++++++++++++
>>> 2 files changed, 52 insertions(+)
>>> create mode 100644 recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>>> 
>>> diff --git a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>>> index a75918b..ef913a7 100644
>>> --- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>>> +++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>>> @@ -13,6 +13,7 @@ SRC_URI += "\
>>>         file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch \
>>>         file://chromium-wayland/remove-Werror.patch \
>>>         file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch \
>>> +        file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch \
>>>         ${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'file://component-build.gypi', '', d)} \
>>>         ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '', d)} \
>>> "
>>> diff --git a/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>>> new file mode 100644
>>> index 0000000..976ece9
>>> --- /dev/null
>>> +++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>>> @@ -0,0 +1,51 @@
>>> +From: jbriance <jbriance@cisco.com>
>>> +Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
>>> +
>>> +Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
>>> +use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading
>>> +to the following compilation error in this case:
>>> +
>>> +  In file included from ../../ui/events/keycodes/keyboard_code_conversion_xkb.h:12:0,
>>> +                   from ../../ui/events/keycodes/keyboard_code_conversion_xkb.cc:5:
>>> +  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error: X11/X.h: No such file or directory
>>> +
>>> +BUG=none
>>> +
>>> +Review-Url: https://codereview.chromium.org/2239833003
>>> +--
>>> +
>>> +Index: ui/events/keycodes/BUILD.gn
>>> +diff --git a/ui/events/keycodes/BUILD.gn b/ui/events/keycodes/BUILD.gn
>>> +index 4f2d47c2497d321332c79d0dd4e9007b50c319c7..716c7ed17cc8049ea65b95a5062e7c6e0adc6e48 100644
>>> +--- a/ui/events/keycodes/BUILD.gn
>>> ++++ b/ui/events/keycodes/BUILD.gn
>>> +@@ -17,6 +17,10 @@ source_set("xkb") {
>>> +     "//base",
>>> +     "//ui/events:dom_keycode_converter",
>>> +   ]
>>> ++
>>> ++  if (use_xkbcommon) {
>>> ++    defines = [ "USE_XKBCOMMON" ]
>>> ++  }
>>> + }
>>> + 
>>> + if (use_x11 || ozone_platform_x11) {
>>> +Index: ui/events/keycodes/events_keycodes.gyp
>>> +diff --git a/ui/events/keycodes/events_keycodes.gyp b/ui/events/keycodes/events_keycodes.gyp
>>> +index b0796b4e2ead8bffe88fb01ed136814be505d967..248e961bad2ad3996ca99624b6c489c7835f6241 100644
>>> +--- a/ui/events/keycodes/events_keycodes.gyp
>>> ++++ b/ui/events/keycodes/events_keycodes.gyp
>>> +@@ -21,6 +21,13 @@
>>> +         'scoped_xkb.h',
>>> +         'xkb_keysym.h',
>>> +       ],
>>> ++      'conditions': [
>>> ++        ['use_xkbcommon==1', {
>>> ++          'defines': [
>>> ++            'USE_XKBCOMMON',
>>> ++          ],
>>> ++        }],
>>> ++      ],
>>> +     },
>>> +   ],
>>> +   'conditions': [
>>> 
>> 
>> 



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

* Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
  2017-02-02 12:17 [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds Jacobo Aragunde Pérez
  2017-02-02 12:30 ` Jacobo Aragunde Pérez
@ 2017-02-09 18:53 ` Jacobo Aragunde Pérez
  1 sibling, 0 replies; 10+ messages in thread
From: Jacobo Aragunde Pérez @ 2017-02-09 18:53 UTC (permalink / raw)
  To: openembedded-devel; +Cc: otavio

Hi again!

I've finally been able to reproduce the problem and acknowledge the
patch fixes it.

It should affect any build that doesn't contain X11 libs, in my case it
was the GENIVI platform for a Minnowboard. I don't even know how I
didn't trigger it before.

Best,
-- 
Jacobo Aragunde
Software Engineer at Igalia


On 02/02/17 13:17, Jacobo Aragunde Pérez wrote:
> Certain build configurations enable a code path that includes
> keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11
> environments because of a missing patch that is present upstream.
> 
> This commit adds the missing patch from
> https://codereview.chromium.org/2239833003
> 
> There are two versions of the patch in the code review URL above.
> The first version fixes the problem both under the gyp and GN build
> systems. That patch was rejected because gyp is considered deprecated
> upstream. The second version fixes the problem only on GN and it was
> merged upstream. We are picking the first version because our recipes
> still use gyp to build.
> 
> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
> ---
>  .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
>  .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51 ++++++++++++++++++++++
>  2 files changed, 52 insertions(+)
>  create mode 100644 recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> 
> diff --git a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> index a75918b..ef913a7 100644
> --- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> +++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> @@ -13,6 +13,7 @@ SRC_URI += "\
>          file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch \
>          file://chromium-wayland/remove-Werror.patch \
>          file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch \
> +        file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch \
>          ${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'file://component-build.gypi', '', d)} \
>          ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '', d)} \
>  "
> diff --git a/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> new file mode 100644
> index 0000000..976ece9
> --- /dev/null
> +++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> @@ -0,0 +1,51 @@
> +From: jbriance <jbriance@cisco.com>
> +Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
> +
> +Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
> +use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading
> +to the following compilation error in this case:
> +
> +  In file included from ../../ui/events/keycodes/keyboard_code_conversion_xkb.h:12:0,
> +                   from ../../ui/events/keycodes/keyboard_code_conversion_xkb.cc:5:
> +  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error: X11/X.h: No such file or directory
> +
> +BUG=none
> +
> +Review-Url: https://codereview.chromium.org/2239833003
> +--
> +
> +Index: ui/events/keycodes/BUILD.gn
> +diff --git a/ui/events/keycodes/BUILD.gn b/ui/events/keycodes/BUILD.gn
> +index 4f2d47c2497d321332c79d0dd4e9007b50c319c7..716c7ed17cc8049ea65b95a5062e7c6e0adc6e48 100644
> +--- a/ui/events/keycodes/BUILD.gn
> ++++ b/ui/events/keycodes/BUILD.gn
> +@@ -17,6 +17,10 @@ source_set("xkb") {
> +     "//base",
> +     "//ui/events:dom_keycode_converter",
> +   ]
> ++
> ++  if (use_xkbcommon) {
> ++    defines = [ "USE_XKBCOMMON" ]
> ++  }
> + }
> + 
> + if (use_x11 || ozone_platform_x11) {
> +Index: ui/events/keycodes/events_keycodes.gyp
> +diff --git a/ui/events/keycodes/events_keycodes.gyp b/ui/events/keycodes/events_keycodes.gyp
> +index b0796b4e2ead8bffe88fb01ed136814be505d967..248e961bad2ad3996ca99624b6c489c7835f6241 100644
> +--- a/ui/events/keycodes/events_keycodes.gyp
> ++++ b/ui/events/keycodes/events_keycodes.gyp
> +@@ -21,6 +21,13 @@
> +         'scoped_xkb.h',
> +         'xkb_keysym.h',
> +       ],
> ++      'conditions': [
> ++        ['use_xkbcommon==1', {
> ++          'defines': [
> ++            'USE_XKBCOMMON',
> ++          ],
> ++        }],
> ++      ],
> +     },
> +   ],
> +   'conditions': [
> 



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

* Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
  2017-02-02 15:33       ` Herve Jourdain
@ 2017-02-15 18:17         ` Jacobo Aragunde Pérez
  2017-02-15 18:39           ` Martin Jansa
  0 siblings, 1 reply; 10+ messages in thread
From: Jacobo Aragunde Pérez @ 2017-02-15 18:17 UTC (permalink / raw)
  To: Herve Jourdain; +Cc: openembedded-devel, otavio

Hi everyone!

The patch in this thread has been recently merged. Thanks for your review!

On 02/02/17 16:33, Herve Jourdain wrote:
> Hi Jacobo,
> 
> OK, I will send those extra patched to the meta-raspberry list tomorrow then.
> 

Sorry to ping you again on this, Herve O:-) I haven't found your patches
around in yocto ML and I would like to try them. May I be following the
wrong ML?

Thanks in advance,
-- 
Jacobo Aragunde
Software Engineer at Igalia


>> On 2 Feb 2017, at 21:28, Jacobo Aragunde Pérez <jaragunde@igalia.com> wrote:
>>
>>> On 02/02/17 13:46, Herve Jourdain wrote:
>>> Hi Jacobo,
>>>
>>> I'm using "master", and I do have patches for enabling armv7ve. But since
>>> they're needed only for raspberrypi, I planned to submit them only for
>>> meta-raspberrypi.
>>> If you think it could be useful in meta-browser, though, I can submit them there.
>>>
>>
>> Oh, I think sending them to meta-rpi would be good enough, thank you!
>> I'll keep an eye on it.
>>
>> Best regards,
>> -- 
>> Jacobo Aragunde
>> Software Engineer at Igalia
>>
>>
>>> -----Original Message-----
>>> From: Jacobo Aragunde Pérez [mailto:jaragunde@igalia.com] 
>>> Sent: jeudi 2 février 2017 13:30
>>> To: openembedded-devel@lists.openembedded.org
>>> Cc: otavio@ossystems.com.br; Herve Jourdain <herve.jourdain@neuf.fr>
>>> Subject: Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
>>>
>>> Thank you all for your reviews. This should be the last patch, it addresses Herve's problem when building on a Raspberry Pi.
>>>
>>> Unfortunately, I haven't been able to reproduce his problem myself, but this patch is actually a backport of an upstream patch, so it makes no harm in my opinion.
>>>
>>> Another question, are you using krogoth in you rpi build? I found problems with the declared architecture in releases newer than jethro, it is called "armv7ve" and chromium doesn't build because it expects "armv7a". We could use a patch if you have worked around this problem :)
>>>
>>> Thanks again,
>>> --
>>> Jacobo Aragunde
>>> Software Engineer at Igalia
>>>
>>>
>>>> On 02/02/17 13:17, Jacobo Aragunde Pérez wrote:
>>>> Certain build configurations enable a code path that includes
>>>> keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11
>>>> environments because of a missing patch that is present upstream.
>>>>
>>>> This commit adds the missing patch from
>>>> https://codereview.chromium.org/2239833003
>>>>
>>>> There are two versions of the patch in the code review URL above.
>>>> The first version fixes the problem both under the gyp and GN build
>>>> systems. That patch was rejected because gyp is considered deprecated
>>>> upstream. The second version fixes the problem only on GN and it was
>>>> merged upstream. We are picking the first version because our recipes
>>>> still use gyp to build.
>>>>
>>>> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
>>>> ---
>>>> .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
>>>> .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51 ++++++++++++++++++++++
>>>> 2 files changed, 52 insertions(+)
>>>> create mode 100644 recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>>>>
>>>> diff --git a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>>>> index a75918b..ef913a7 100644
>>>> --- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>>>> +++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>>>> @@ -13,6 +13,7 @@ SRC_URI += "\
>>>>         file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch \
>>>>         file://chromium-wayland/remove-Werror.patch \
>>>>         file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch \
>>>> +        file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch \
>>>>         ${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'file://component-build.gypi', '', d)} \
>>>>         ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '', d)} \
>>>> "
>>>> diff --git a/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>>>> new file mode 100644
>>>> index 0000000..976ece9
>>>> --- /dev/null
>>>> +++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>>>> @@ -0,0 +1,51 @@
>>>> +From: jbriance <jbriance@cisco.com>
>>>> +Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
>>>> +
>>>> +Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
>>>> +use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading
>>>> +to the following compilation error in this case:
>>>> +
>>>> +  In file included from ../../ui/events/keycodes/keyboard_code_conversion_xkb.h:12:0,
>>>> +                   from ../../ui/events/keycodes/keyboard_code_conversion_xkb.cc:5:
>>>> +  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error: X11/X.h: No such file or directory
>>>> +
>>>> +BUG=none
>>>> +
>>>> +Review-Url: https://codereview.chromium.org/2239833003
>>>> +--
>>>> +
>>>> +Index: ui/events/keycodes/BUILD.gn
>>>> +diff --git a/ui/events/keycodes/BUILD.gn b/ui/events/keycodes/BUILD.gn
>>>> +index 4f2d47c2497d321332c79d0dd4e9007b50c319c7..716c7ed17cc8049ea65b95a5062e7c6e0adc6e48 100644
>>>> +--- a/ui/events/keycodes/BUILD.gn
>>>> ++++ b/ui/events/keycodes/BUILD.gn
>>>> +@@ -17,6 +17,10 @@ source_set("xkb") {
>>>> +     "//base",
>>>> +     "//ui/events:dom_keycode_converter",
>>>> +   ]
>>>> ++
>>>> ++  if (use_xkbcommon) {
>>>> ++    defines = [ "USE_XKBCOMMON" ]
>>>> ++  }
>>>> + }
>>>> + 
>>>> + if (use_x11 || ozone_platform_x11) {
>>>> +Index: ui/events/keycodes/events_keycodes.gyp
>>>> +diff --git a/ui/events/keycodes/events_keycodes.gyp b/ui/events/keycodes/events_keycodes.gyp
>>>> +index b0796b4e2ead8bffe88fb01ed136814be505d967..248e961bad2ad3996ca99624b6c489c7835f6241 100644
>>>> +--- a/ui/events/keycodes/events_keycodes.gyp
>>>> ++++ b/ui/events/keycodes/events_keycodes.gyp
>>>> +@@ -21,6 +21,13 @@
>>>> +         'scoped_xkb.h',
>>>> +         'xkb_keysym.h',
>>>> +       ],
>>>> ++      'conditions': [
>>>> ++        ['use_xkbcommon==1', {
>>>> ++          'defines': [
>>>> ++            'USE_XKBCOMMON',
>>>> ++          ],
>>>> ++        }],
>>>> ++      ],
>>>> +     },
>>>> +   ],
>>>> +   'conditions': [
>>>>
>>>
>>>
> 
> 




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

* Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
  2017-02-15 18:17         ` Jacobo Aragunde Pérez
@ 2017-02-15 18:39           ` Martin Jansa
  2017-02-20 16:03             ` Jacobo Aragunde Pérez
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2017-02-15 18:39 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Otavio Salvador

It still fails for qemux86 as reported in:
http://lists.openembedded.org/pipermail/openembedded-devel/2017-February/111221.html

can someone please look into it?

On Wed, Feb 15, 2017 at 7:17 PM, Jacobo Aragunde Pérez <jaragunde@igalia.com
> wrote:

> Hi everyone!
>
> The patch in this thread has been recently merged. Thanks for your review!
>
> On 02/02/17 16:33, Herve Jourdain wrote:
> > Hi Jacobo,
> >
> > OK, I will send those extra patched to the meta-raspberry list tomorrow
> then.
> >
>
> Sorry to ping you again on this, Herve O:-) I haven't found your patches
> around in yocto ML and I would like to try them. May I be following the
> wrong ML?
>
> Thanks in advance,
> --
> Jacobo Aragunde
> Software Engineer at Igalia
>
>
> >> On 2 Feb 2017, at 21:28, Jacobo Aragunde Pérez <jaragunde@igalia.com>
> wrote:
> >>
> >>> On 02/02/17 13:46, Herve Jourdain wrote:
> >>> Hi Jacobo,
> >>>
> >>> I'm using "master", and I do have patches for enabling armv7ve. But
> since
> >>> they're needed only for raspberrypi, I planned to submit them only for
> >>> meta-raspberrypi.
> >>> If you think it could be useful in meta-browser, though, I can submit
> them there.
> >>>
> >>
> >> Oh, I think sending them to meta-rpi would be good enough, thank you!
> >> I'll keep an eye on it.
> >>
> >> Best regards,
> >> --
> >> Jacobo Aragunde
> >> Software Engineer at Igalia
> >>
> >>
> >>> -----Original Message-----
> >>> From: Jacobo Aragunde Pérez [mailto:jaragunde@igalia.com]
> >>> Sent: jeudi 2 février 2017 13:30
> >>> To: openembedded-devel@lists.openembedded.org
> >>> Cc: otavio@ossystems.com.br; Herve Jourdain <herve.jourdain@neuf.fr>
> >>> Subject: Re: [meta-browser][PATCH] chromium-wayland: fix compilation
> problem on non-X11 builds
> >>>
> >>> Thank you all for your reviews. This should be the last patch, it
> addresses Herve's problem when building on a Raspberry Pi.
> >>>
> >>> Unfortunately, I haven't been able to reproduce his problem myself,
> but this patch is actually a backport of an upstream patch, so it makes no
> harm in my opinion.
> >>>
> >>> Another question, are you using krogoth in you rpi build? I found
> problems with the declared architecture in releases newer than jethro, it
> is called "armv7ve" and chromium doesn't build because it expects "armv7a".
> We could use a patch if you have worked around this problem :)
> >>>
> >>> Thanks again,
> >>> --
> >>> Jacobo Aragunde
> >>> Software Engineer at Igalia
> >>>
> >>>
> >>>> On 02/02/17 13:17, Jacobo Aragunde Pérez wrote:
> >>>> Certain build configurations enable a code path that includes
> >>>> keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11
> >>>> environments because of a missing patch that is present upstream.
> >>>>
> >>>> This commit adds the missing patch from
> >>>> https://codereview.chromium.org/2239833003
> >>>>
> >>>> There are two versions of the patch in the code review URL above.
> >>>> The first version fixes the problem both under the gyp and GN build
> >>>> systems. That patch was rejected because gyp is considered deprecated
> >>>> upstream. The second version fixes the problem only on GN and it was
> >>>> merged upstream. We are picking the first version because our recipes
> >>>> still use gyp to build.
> >>>>
> >>>> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
> >>>> ---
> >>>> .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
> >>>> .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51
> ++++++++++++++++++++++
> >>>> 2 files changed, 52 insertions(+)
> >>>> create mode 100644 recipes-browser/chromium/
> chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> >>>>
> >>>> diff --git a/recipes-browser/chromium/chr
> omium-wayland_53.0.2785.143.bb b/recipes-browser/chromium/chr
> omium-wayland_53.0.2785.143.bb
> >>>> index a75918b..ef913a7 100644
> >>>> --- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> >>>> +++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
> >>>> @@ -13,6 +13,7 @@ SRC_URI += "\
> >>>>         file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch
> \
> >>>>         file://chromium-wayland/remove-Werror.patch \
> >>>>         file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch
> \
> >>>> +        file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> \
> >>>>         ${@bb.utils.contains('PACKAGECONFIG', 'component-build',
> 'file://component-build.gypi', '', d)} \
> >>>>         ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context',
> 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '',
> d)} \
> >>>> "
> >>>> diff --git a/recipes-browser/chromium/chromium/chromium-wayland/fix-
> non-x11-build-when-use_xkbcommon-1.patch b/recipes-browser/chromium/
> chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
> >>>> new file mode 100644
> >>>> index 0000000..976ece9
> >>>> --- /dev/null
> >>>> +++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-
> non-x11-build-when-use_xkbcommon-1.patch
> >>>> @@ -0,0 +1,51 @@
> >>>> +From: jbriance <jbriance@cisco.com>
> >>>> +Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
> >>>> +
> >>>> +Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
> >>>> +use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading
> >>>> +to the following compilation error in this case:
> >>>> +
> >>>> +  In file included from ../../ui/events/keycodes/
> keyboard_code_conversion_xkb.h:12:0,
> >>>> +                   from ../../ui/events/keycodes/
> keyboard_code_conversion_xkb.cc:5:
> >>>> +  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error:
> X11/X.h: No such file or directory
> >>>> +
> >>>> +BUG=none
> >>>> +
> >>>> +Review-Url: https://codereview.chromium.org/2239833003
> >>>> +--
> >>>> +
> >>>> +Index: ui/events/keycodes/BUILD.gn
> >>>> +diff --git a/ui/events/keycodes/BUILD.gn
> b/ui/events/keycodes/BUILD.gn
> >>>> +index 4f2d47c2497d321332c79d0dd4e9007b50c319c7..
> 716c7ed17cc8049ea65b95a5062e7c6e0adc6e48 100644
> >>>> +--- a/ui/events/keycodes/BUILD.gn
> >>>> ++++ b/ui/events/keycodes/BUILD.gn
> >>>> +@@ -17,6 +17,10 @@ source_set("xkb") {
> >>>> +     "//base",
> >>>> +     "//ui/events:dom_keycode_converter",
> >>>> +   ]
> >>>> ++
> >>>> ++  if (use_xkbcommon) {
> >>>> ++    defines = [ "USE_XKBCOMMON" ]
> >>>> ++  }
> >>>> + }
> >>>> +
> >>>> + if (use_x11 || ozone_platform_x11) {
> >>>> +Index: ui/events/keycodes/events_keycodes.gyp
> >>>> +diff --git a/ui/events/keycodes/events_keycodes.gyp
> b/ui/events/keycodes/events_keycodes.gyp
> >>>> +index b0796b4e2ead8bffe88fb01ed136814be505d967..
> 248e961bad2ad3996ca99624b6c489c7835f6241 100644
> >>>> +--- a/ui/events/keycodes/events_keycodes.gyp
> >>>> ++++ b/ui/events/keycodes/events_keycodes.gyp
> >>>> +@@ -21,6 +21,13 @@
> >>>> +         'scoped_xkb.h',
> >>>> +         'xkb_keysym.h',
> >>>> +       ],
> >>>> ++      'conditions': [
> >>>> ++        ['use_xkbcommon==1', {
> >>>> ++          'defines': [
> >>>> ++            'USE_XKBCOMMON',
> >>>> ++          ],
> >>>> ++        }],
> >>>> ++      ],
> >>>> +     },
> >>>> +   ],
> >>>> +   'conditions': [
> >>>>
> >>>
> >>>
> >
> >
>
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


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

* Re: [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds
  2017-02-15 18:39           ` Martin Jansa
@ 2017-02-20 16:03             ` Jacobo Aragunde Pérez
  0 siblings, 0 replies; 10+ messages in thread
From: Jacobo Aragunde Pérez @ 2017-02-20 16:03 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Otavio Salvador

Hi Martin,

On 15/02/17 19:39, Martin Jansa wrote:
> It still fails for qemux86 as reported in:
> http://lists.openembedded.org/pipermail/openembedded-devel/2017-February/111221.html
> 
> can someone please look into it?

Let me take a look along this week. Thanks for the heads-up.

Best,
-- 
Jacobo Aragunde
Software Engineer at Igalia


> On Wed, Feb 15, 2017 at 7:17 PM, Jacobo Aragunde Pérez <jaragunde@igalia.com
>> wrote:
> 
>> Hi everyone!
>>
>> The patch in this thread has been recently merged. Thanks for your review!
>>
>> On 02/02/17 16:33, Herve Jourdain wrote:
>>> Hi Jacobo,
>>>
>>> OK, I will send those extra patched to the meta-raspberry list tomorrow
>> then.
>>>
>>
>> Sorry to ping you again on this, Herve O:-) I haven't found your patches
>> around in yocto ML and I would like to try them. May I be following the
>> wrong ML?
>>
>> Thanks in advance,
>> --
>> Jacobo Aragunde
>> Software Engineer at Igalia
>>
>>
>>>> On 2 Feb 2017, at 21:28, Jacobo Aragunde Pérez <jaragunde@igalia.com>
>> wrote:
>>>>
>>>>> On 02/02/17 13:46, Herve Jourdain wrote:
>>>>> Hi Jacobo,
>>>>>
>>>>> I'm using "master", and I do have patches for enabling armv7ve. But
>> since
>>>>> they're needed only for raspberrypi, I planned to submit them only for
>>>>> meta-raspberrypi.
>>>>> If you think it could be useful in meta-browser, though, I can submit
>> them there.
>>>>>
>>>>
>>>> Oh, I think sending them to meta-rpi would be good enough, thank you!
>>>> I'll keep an eye on it.
>>>>
>>>> Best regards,
>>>> --
>>>> Jacobo Aragunde
>>>> Software Engineer at Igalia
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: Jacobo Aragunde Pérez [mailto:jaragunde@igalia.com]
>>>>> Sent: jeudi 2 février 2017 13:30
>>>>> To: openembedded-devel@lists.openembedded.org
>>>>> Cc: otavio@ossystems.com.br; Herve Jourdain <herve.jourdain@neuf.fr>
>>>>> Subject: Re: [meta-browser][PATCH] chromium-wayland: fix compilation
>> problem on non-X11 builds
>>>>>
>>>>> Thank you all for your reviews. This should be the last patch, it
>> addresses Herve's problem when building on a Raspberry Pi.
>>>>>
>>>>> Unfortunately, I haven't been able to reproduce his problem myself,
>> but this patch is actually a backport of an upstream patch, so it makes no
>> harm in my opinion.
>>>>>
>>>>> Another question, are you using krogoth in you rpi build? I found
>> problems with the declared architecture in releases newer than jethro, it
>> is called "armv7ve" and chromium doesn't build because it expects "armv7a".
>> We could use a patch if you have worked around this problem :)
>>>>>
>>>>> Thanks again,
>>>>> --
>>>>> Jacobo Aragunde
>>>>> Software Engineer at Igalia
>>>>>
>>>>>
>>>>>> On 02/02/17 13:17, Jacobo Aragunde Pérez wrote:
>>>>>> Certain build configurations enable a code path that includes
>>>>>> keyboard_code_conversion_xkb.cc, but it eventually fails in non-X11
>>>>>> environments because of a missing patch that is present upstream.
>>>>>>
>>>>>> This commit adds the missing patch from
>>>>>> https://codereview.chromium.org/2239833003
>>>>>>
>>>>>> There are two versions of the patch in the code review URL above.
>>>>>> The first version fixes the problem both under the gyp and GN build
>>>>>> systems. That patch was rejected because gyp is considered deprecated
>>>>>> upstream. The second version fixes the problem only on GN and it was
>>>>>> merged upstream. We are picking the first version because our recipes
>>>>>> still use gyp to build.
>>>>>>
>>>>>> Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
>>>>>> ---
>>>>>> .../chromium/chromium-wayland_53.0.2785.143.bb     |  1 +
>>>>>> .../fix-non-x11-build-when-use_xkbcommon-1.patch   | 51
>> ++++++++++++++++++++++
>>>>>> 2 files changed, 52 insertions(+)
>>>>>> create mode 100644 recipes-browser/chromium/
>> chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>>>>>>
>>>>>> diff --git a/recipes-browser/chromium/chr
>> omium-wayland_53.0.2785.143.bb b/recipes-browser/chromium/chr
>> omium-wayland_53.0.2785.143.bb
>>>>>> index a75918b..ef913a7 100644
>>>>>> --- a/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>>>>>> +++ b/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
>>>>>> @@ -13,6 +13,7 @@ SRC_URI += "\
>>>>>>         file://chromium-wayland/0011-Replace-readdir_r-with-readdir.patch
>> \
>>>>>>         file://chromium-wayland/remove-Werror.patch \
>>>>>>         file://chromium-wayland/guard-x11_desktop_handler-inclusion.patch
>> \
>>>>>> +        file://chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>> \
>>>>>>         ${@bb.utils.contains('PACKAGECONFIG', 'component-build',
>> 'file://component-build.gypi', '', d)} \
>>>>>>         ${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context',
>> 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '',
>> d)} \
>>>>>> "
>>>>>> diff --git a/recipes-browser/chromium/chromium/chromium-wayland/fix-
>> non-x11-build-when-use_xkbcommon-1.patch b/recipes-browser/chromium/
>> chromium/chromium-wayland/fix-non-x11-build-when-use_xkbcommon-1.patch
>>>>>> new file mode 100644
>>>>>> index 0000000..976ece9
>>>>>> --- /dev/null
>>>>>> +++ b/recipes-browser/chromium/chromium/chromium-wayland/fix-
>> non-x11-build-when-use_xkbcommon-1.patch
>>>>>> @@ -0,0 +1,51 @@
>>>>>> +From: jbriance <jbriance@cisco.com>
>>>>>> +Subject: keycodes: Fix non-X11 build when use_xkbcommon=1
>>>>>> +
>>>>>> +Since M51, ui/events/keycodes/xkb_keysym.h follows X11 path, even if
>>>>>> +use_xkbcommon=1 is set because USE_XKBCOMMON is not defined, leading
>>>>>> +to the following compilation error in this case:
>>>>>> +
>>>>>> +  In file included from ../../ui/events/keycodes/
>> keyboard_code_conversion_xkb.h:12:0,
>>>>>> +                   from ../../ui/events/keycodes/
>> keyboard_code_conversion_xkb.cc:5:
>>>>>> +  ../../ui/events/keycodes/xkb_keysym.h:19:19: fatal error:
>> X11/X.h: No such file or directory
>>>>>> +
>>>>>> +BUG=none
>>>>>> +
>>>>>> +Review-Url: https://codereview.chromium.org/2239833003
>>>>>> +--
>>>>>> +
>>>>>> +Index: ui/events/keycodes/BUILD.gn
>>>>>> +diff --git a/ui/events/keycodes/BUILD.gn
>> b/ui/events/keycodes/BUILD.gn
>>>>>> +index 4f2d47c2497d321332c79d0dd4e9007b50c319c7..
>> 716c7ed17cc8049ea65b95a5062e7c6e0adc6e48 100644
>>>>>> +--- a/ui/events/keycodes/BUILD.gn
>>>>>> ++++ b/ui/events/keycodes/BUILD.gn
>>>>>> +@@ -17,6 +17,10 @@ source_set("xkb") {
>>>>>> +     "//base",
>>>>>> +     "//ui/events:dom_keycode_converter",
>>>>>> +   ]
>>>>>> ++
>>>>>> ++  if (use_xkbcommon) {
>>>>>> ++    defines = [ "USE_XKBCOMMON" ]
>>>>>> ++  }
>>>>>> + }
>>>>>> +
>>>>>> + if (use_x11 || ozone_platform_x11) {
>>>>>> +Index: ui/events/keycodes/events_keycodes.gyp
>>>>>> +diff --git a/ui/events/keycodes/events_keycodes.gyp
>> b/ui/events/keycodes/events_keycodes.gyp
>>>>>> +index b0796b4e2ead8bffe88fb01ed136814be505d967..
>> 248e961bad2ad3996ca99624b6c489c7835f6241 100644
>>>>>> +--- a/ui/events/keycodes/events_keycodes.gyp
>>>>>> ++++ b/ui/events/keycodes/events_keycodes.gyp
>>>>>> +@@ -21,6 +21,13 @@
>>>>>> +         'scoped_xkb.h',
>>>>>> +         'xkb_keysym.h',
>>>>>> +       ],
>>>>>> ++      'conditions': [
>>>>>> ++        ['use_xkbcommon==1', {
>>>>>> ++          'defines': [
>>>>>> ++            'USE_XKBCOMMON',
>>>>>> ++          ],
>>>>>> ++        }],
>>>>>> ++      ],
>>>>>> +     },
>>>>>> +   ],
>>>>>> +   'conditions': [
>>>>>>
>>>>>
>>>>>
>>>
>>>
>>
>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>




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

end of thread, other threads:[~2017-02-20 16:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-02 12:17 [meta-browser][PATCH] chromium-wayland: fix compilation problem on non-X11 builds Jacobo Aragunde Pérez
2017-02-02 12:30 ` Jacobo Aragunde Pérez
2017-02-02 12:46   ` Herve Jourdain
2017-02-02 13:28     ` Jacobo Aragunde Pérez
2017-02-02 15:33       ` Herve Jourdain
2017-02-15 18:17         ` Jacobo Aragunde Pérez
2017-02-15 18:39           ` Martin Jansa
2017-02-20 16:03             ` Jacobo Aragunde Pérez
2017-02-02 12:48   ` Herve Jourdain
2017-02-09 18:53 ` 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.