summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs/mozjs-128
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2026-01-22 16:49:56 +0100
committerKhem Raj <raj.khem@gmail.com>2026-01-27 11:58:26 -0800
commit834988cae3050c3c4fd5ecf7812a923945419df3 (patch)
tree645c72088ae5a040740d82bae4eb315d0ddf5705 /meta-oe/recipes-extended/mozjs/mozjs-128
parent33f450b6273761c5b6ff7696eb083f7264d34601 (diff)
downloadmeta-openembedded-834988cae3050c3c4fd5ecf7812a923945419df3.tar.gz
mozjs-128: update 128.5.2 -> 128.14.0
- add a patch to fix build with python 3.14 Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs-128')
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs-128/D261512.1755672843.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-128/D261512.1755672843.patch b/meta-oe/recipes-extended/mozjs/mozjs-128/D261512.1755672843.patch
new file mode 100644
index 0000000000..1b35d2c094
--- /dev/null
+++ b/meta-oe/recipes-extended/mozjs/mozjs-128/D261512.1755672843.patch
@@ -0,0 +1,68 @@
1This patch fixes configure with python 3.14
2
3Signed-off-by: Markus Volk <f_l_k@t-online.de>
4
5Upstream-Status: Backport [https://github.com/mozilla-firefox/firefox/commit/d497aa4f770ca02f6083e93b94996a8fe32c2ff4]
6
7diff --git a/python/mozbuild/mozbuild/frontend/reader.py b/python/mozbuild/mozbuild/frontend/reader.py
8index 5cb627b..c2dcafe 100644
9--- a/python/mozbuild/mozbuild/frontend/reader.py
10+++ b/python/mozbuild/mozbuild/frontend/reader.py
11@@ -470,7 +470,7 @@ class TemplateFunction(object):
12 return c(
13 ast.Subscript(
14 value=c(ast.Name(id=self._global_name, ctx=ast.Load())),
15- slice=c(ast.Index(value=c(ast.Str(s=node.id)))),
16+ slice=c(ast.Index(value=c(ast.Constant(value=node.id)))),
17 ctx=node.ctx,
18 )
19 )
20@@ -1035,8 +1035,8 @@ class BuildReader(object):
21 else:
22 # Others
23 assert isinstance(target.slice, ast.Index)
24- assert isinstance(target.slice.value, ast.Str)
25- key = target.slice.value.s
26+ assert isinstance(target.slice.value, ast.Constant)
27+ key = target.slice.value.value
28
29 return name, key
30
31@@ -1044,11 +1044,11 @@ class BuildReader(object):
32 value = node.value
33 if isinstance(value, ast.List):
34 for v in value.elts:
35- assert isinstance(v, ast.Str)
36- yield v.s
37+ assert isinstance(v, ast.Constant)
38+ yield v.value
39 else:
40- assert isinstance(value, ast.Str)
41- yield value.s
42+ assert isinstance(value, ast.Constant)
43+ yield value.value
44
45 assignments = []
46
47diff --git a/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py b/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py
48index 1590267..151d27c 100644
49--- a/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py
50+++ b/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py
51@@ -327,15 +327,13 @@ def assignment_node_to_source_filename_list(code, node):
52 """
53 if isinstance(node.value, ast.List) and "elts" in node.value._fields:
54 for f in node.value.elts:
55- if not isinstance(f, ast.Constant) and not isinstance(f, ast.Str):
56+ if not isinstance(f, ast.Constant):
57 log(
58 "Found non-constant source file name in list: ",
59 ast_get_source_segment(code, f),
60 )
61 return []
62- return [
63- f.value if isinstance(f, ast.Constant) else f.s for f in node.value.elts
64- ]
65+ return [f.value for f in node.value.elts]
66 elif isinstance(node.value, ast.ListComp):
67 # SOURCES += [f for f in foo if blah]
68 log("Could not find the files for " + ast_get_source_segment(code, node.value))