diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2022-07-09 19:33:58 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-07-11 22:46:17 +0100 |
commit | ac0b8518293748a0b68d6df6dba0909fa0682245 (patch) | |
tree | 9b968c4f8b4339c2a8c1efc0453c45cb103b1299 | |
parent | 2fc303563134bb539c1bcc13f0ba2e9e9f36872e (diff) | |
download | meta-openembedded-contrib-ac0b8518293748a0b68d6df6dba0909fa0682245.tar.gz |
glmark2: Build with meson
Building with waf fails here with:
| /bin/sh: line 1: /usr/bin/wayland-scanner: No such file or directory
|
| /bin/sh: line 1: /usr/bin/wayland-scanner: No such file or directory
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-benchmark/glmark2/files/0001-waflib-fix-compatibility-with-python-3.11.patch | 76 | ||||
-rw-r--r-- | meta-oe/recipes-benchmark/glmark2/glmark2_git.bb | 5 |
2 files changed, 2 insertions, 79 deletions
diff --git a/meta-oe/recipes-benchmark/glmark2/files/0001-waflib-fix-compatibility-with-python-3.11.patch b/meta-oe/recipes-benchmark/glmark2/files/0001-waflib-fix-compatibility-with-python-3.11.patch deleted file mode 100644 index c56fa64e58..0000000000 --- a/meta-oe/recipes-benchmark/glmark2/files/0001-waflib-fix-compatibility-with-python-3.11.patch +++ /dev/null @@ -1,76 +0,0 @@ -From b85ba8c3ff3fb9ae708576ccef03434d2ef73054 Mon Sep 17 00:00:00 2001 -From: Martin Jansa <Martin.Jansa@gmail.com> -Date: Tue, 14 Jun 2022 09:54:18 +0000 -Subject: [PATCH] waflib: fix compatibility with python-3.11 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -* https://docs.python.org/3.11/whatsnew/3.11.html#changes-in-the-python-api - - open(), io.open(), codecs.open() and fileinput.FileInput no longer - accept 'U' (“universal newline”) in the file mode. This flag was - deprecated since Python 3.3. In Python 3, the “universal newline” is - used by default when a file is open in text mode. The newline parameter - of open() controls how universal newlines works. (Contributed by Victor - Stinner in bpo-37330.) - -* fixes: -Waf: The wscript in '/OE/build/luneos-langdale/webos-ports/tmp-glibc/work/core2-64-webos-linux/glmark2/2021.12-r0/git' is unreadable -Traceback (most recent call last): - File "/OE/build/luneos-langdale/webos-ports/tmp-glibc/work/core2-64-webos-linux/glmark2/2021.12-r0/git/waflib/Scripting.py", line 104, in waf_entry_point - set_main_module(os.path.normpath(os.path.join(Context.run_dir,Context.WSCRIPT_FILE))) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/OE/build/luneos-langdale/webos-ports/tmp-glibc/work/core2-64-webos-linux/glmark2/2021.12-r0/git/waflib/Scripting.py", line 135, in set_main_module - Context.g_module=Context.load_module(file_path) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/OE/build/luneos-langdale/webos-ports/tmp-glibc/work/core2-64-webos-linux/glmark2/2021.12-r0/git/waflib/Context.py", line 343, in load_module - code=Utils.readf(path,m='rU',encoding=encoding) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/OE/build/luneos-langdale/webos-ports/tmp-glibc/work/core2-64-webos-linux/glmark2/2021.12-r0/git/waflib/Utils.py", line 117, in readf - f=open(fname,m) - ^^^^^^^^^^^^^ -ValueError: invalid mode: 'rUb' - -Upstream-Status: Submitted [https://github.com/glmark2/glmark2/pull/178] -Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> ---- - waflib/ConfigSet.py | 2 +- - waflib/Context.py | 4 ++-- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/waflib/ConfigSet.py b/waflib/ConfigSet.py -index 16142a2..87de4ad 100644 ---- a/waflib/ConfigSet.py -+++ b/waflib/ConfigSet.py -@@ -140,7 +140,7 @@ class ConfigSet(object): - Utils.writef(filename,''.join(buf)) - def load(self,filename): - tbl=self.table -- code=Utils.readf(filename,m='rU') -+ code=Utils.readf(filename,m='r') - for m in re_imp.finditer(code): - g=m.group - tbl[g(2)]=eval(g(3)) -diff --git a/waflib/Context.py b/waflib/Context.py -index 8f2cbfb..f3e35ae 100644 ---- a/waflib/Context.py -+++ b/waflib/Context.py -@@ -109,7 +109,7 @@ class Context(ctx): - cache[node]=True - self.pre_recurse(node) - try: -- function_code=node.read('rU',encoding) -+ function_code=node.read('r',encoding) - exec(compile(function_code,node.abspath(),'exec'),self.exec_dict) - finally: - self.post_recurse(node) -@@ -340,7 +340,7 @@ def load_module(path,encoding=None): - pass - module=imp.new_module(WSCRIPT_FILE) - try: -- code=Utils.readf(path,m='rU',encoding=encoding) -+ code=Utils.readf(path,encoding=encoding) - except EnvironmentError: - raise Errors.WafError('Could not read the file %r'%path) - module_dir=os.path.dirname(path) diff --git a/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb b/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb index 188d4e5bdf..2a3e74f025 100644 --- a/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb +++ b/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb @@ -18,13 +18,12 @@ SRC_URI = " \ file://0001-fix-dispmanx-build.patch \ file://0002-run-dispmanx-fullscreen.patch \ file://0001-libmatrix-Include-missing-utility-header.patch \ - file://0001-waflib-fix-compatibility-with-python-3.11.patch \ " SRCREV = "0858b450cd88c84a15b99dda9698d44e7f7e8c70" S = "${WORKDIR}/git" -inherit waf pkgconfig features_check +inherit meson pkgconfig features_check ANY_OF_DISTRO_FEATURES = "opengl dispmanx" @@ -60,6 +59,6 @@ python __anonymous() { if "dispmanx" in packageconfig: flavors = ["dispmanx-glesv2"] if flavors: - d.appendVar("EXTRA_OECONF", " --with-flavors=%s" % ",".join(flavors)) + d.appendVar("EXTRA_OEMESON", " -Dflavors=%s" % ",".join(flavors)) } |