Re: [OE-core] [RFC, v5] mesa: Convert recipe to use meson build system

2019-04-28 Thread richard . purdie
On Sat, 2019-04-27 at 11:32 +0200, Alexander Kanavin wrote:
> This one is not about Mesa but rather failure to build recently
> updated vte-native due to host gcc being too ancient?

Yes, the mesa+musl problem is a valid issue, I hadn't realised the
virtgl-gtk issue was actually vte-native so that one has a fix
elsewhere. Sorry for the confusion, this is the challenge with bulk
testing patches...

Cheers,

Richard



-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [RFC, v5] mesa: Convert recipe to use meson build system

2019-04-27 Thread Alexander Kanavin
This one is not about Mesa but rather failure to build recently updated 
vte-native due to host gcc being too ancient?

Alex

> On 26 Apr 2019, at 15.56, Richard Purdie  
> wrote:
> 
>> On Fri, 2019-04-26 at 14:55 +0100, Richard Purdie wrote:
>>> On Thu, 2019-04-25 at 10:55 -0300, Fabio Berton wrote:
>>>  - Remove all non related meson patches
>>>  - Change radeon driver to r100
>>>  - Add python3-mako-native gettext-native to DEPENDS
>>> 
>>> Based on https://patchwork.openembedded.org/patch/158748/
>>> 
>>> Signed-off-by: Fabio Berton 
>> 
>> I think this breaks musl at runtime:
>> 
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/538/steps/7/logs/step1c
>> 
>> Specifically:
>> 
>> [ 5.224] (EE) Failed to load
>> /usr/lib/xorg/modules/extensions/libglx.so: Error relocating
>> /usr/lib/libGL.so.1: alphasort: initial-exec TLS resolves to dynamic
>> definition in /usr/lib/libGL.so.1
> 
> and also:
> 
> https://autobuilder.yoctoproject.org/typhoon/api/v2/logs/457856/raw
> 
> oe-selftest -r runtime_test.TestImage.test_testimage_virgl_gtk 
> 
> Cheers,
> 
> Richard
> 
> -- 
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [RFC, v5] mesa: Convert recipe to use meson build system

2019-04-26 Thread Richard Purdie
On Fri, 2019-04-26 at 14:55 +0100, Richard Purdie wrote:
> On Thu, 2019-04-25 at 10:55 -0300, Fabio Berton wrote:
> >   - Remove all non related meson patches
> >   - Change radeon driver to r100
> >   - Add python3-mako-native gettext-native to DEPENDS
> > 
> > Based on https://patchwork.openembedded.org/patch/158748/
> > 
> > Signed-off-by: Fabio Berton 
> 
> I think this breaks musl at runtime:
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/538/steps/7/logs/step1c
> 
> Specifically:
> 
> [ 5.224] (EE) Failed to load
> /usr/lib/xorg/modules/extensions/libglx.so: Error relocating
> /usr/lib/libGL.so.1: alphasort: initial-exec TLS resolves to dynamic
> definition in /usr/lib/libGL.so.1

and also:

https://autobuilder.yoctoproject.org/typhoon/api/v2/logs/457856/raw

oe-selftest -r runtime_test.TestImage.test_testimage_virgl_gtk 

Cheers,

Richard

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [RFC, v5] mesa: Convert recipe to use meson build system

2019-04-26 Thread Richard Purdie
On Thu, 2019-04-25 at 10:55 -0300, Fabio Berton wrote:
>   - Remove all non related meson patches
>   - Change radeon driver to r100
>   - Add python3-mako-native gettext-native to DEPENDS
> 
> Based on https://patchwork.openembedded.org/patch/158748/
> 
> Signed-off-by: Fabio Berton 

I think this breaks musl at runtime:

https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/538/steps/7/logs/step1c

Specifically:

[ 5.224] (EE) Failed to load /usr/lib/xorg/modules/extensions/libglx.so: 
Error relocating /usr/lib/libGL.so.1: alphasort: initial-exec TLS resolves to 
dynamic definition in /usr/lib/libGL.so.1

Cheers,

Richard

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [RFC,v5] mesa: Convert recipe to use meson build system

2019-04-25 Thread Fabio Berton
  - Remove all non related meson patches
  - Change radeon driver to r100
  - Add python3-mako-native gettext-native to DEPENDS

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 44 --
 ...k-for-all-linux-host_os-combinations.patch | 51 
 ...-winsys-svga-drm-Include-sys-types.h.patch | 35 ---
 ...M-version-when-using-LLVM-Git-releas.patch | 45 --
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 38 
 meta/recipes-graphics/mesa/mesa.inc   | 60 +--
 meta/recipes-graphics/mesa/mesa_19.0.3.bb |  5 +-
 7 files changed, 79 insertions(+), 199 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
deleted file mode 100644
index d065e2285c..00
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From e53837ad7b01364f34a533b95f4817c1795789de Mon Sep 17 00:00:00 2001
-From: Fabio Berton 
-Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/4] Simplify wayland-scanner lookup
-Organization: O.S. Systems Software LTDA.
-
-Don't use pkg-config to lookup the path of a binary that's in the path.
-
-Alternatively we'd have to prefix the path returned by pkg-config with
-PKG_CONFIG_SYSROOT_DIR.
-
-Upstream-Status: Pending
-Signed-off-by: Jussi Kukkonen 
-Signed-off-by: Otavio Salvador 
-Signed-off-by: Fabio Berton 

- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 1ef68fe68e6..1816a4cd475 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -1854,16 +1854,11 @@ for plat in $platforms; do
- fi
- WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
- 
--PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
--  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
--  WAYLAND_SCANNER='')
- PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
-   AC_SUBST(SCANNER_ARG, 'private-code'),
-   AC_SUBST(SCANNER_ARG, 'code'))
- 
--if test "x$WAYLAND_SCANNER" = x; then
--AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
--fi
-+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
- 
- if test "x$WAYLAND_SCANNER" = "x:"; then
- AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
--- 
-2.21.0
-
diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
new file mode 100644
index 00..61e24c6e9f
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -0,0 +1,51 @@
+From 498f230c9446fc7a1b4dc77ff6b84ee1a3b53bf4 Mon Sep 17 00:00:00 2001
+From: Fabio Berton 
+Date: Wed, 24 Apr 2019 17:01:24 -0300
+Subject: [PATCH] meson.build: check for all linux host_os combinations
+Organization: O.S. Systems Software LTDA.
+
+Make sure that we are also looking for our host_os combinations like
+linux-musl etc. when assuming support for DRM/KMS.
+
+Also delete a duplicate line.
+
+Signed-off-by: Anuj Mittal 
+Signed-off-by: Fabio Berton 
+---
+ meson.build | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 53d02e31097..c41f6b4e402 100644
+--- a/meson.build
 b/meson.build
+@@ -34,6 +34,8 @@ cpp = meson.get_compiler('cpp')
+ 
+ null_dep = dependency('', required : false)
+ 
++system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
++
+ # Arguments for the preprocessor, put these in a separate array from the C and
+ # C++ (cpp in meson terminology) arguments since they need to be added to the
+ # default arguments for both C and C++.
+@@ -89,8 +91,6 @@ if (with_gles1 or with_gles2) and not with_opengl
+   error('building OpenGL ES without OpenGL is not supported.')
+ endif
+ 
+-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd',