Skip to content

Commit da1bc01

Browse files
committed
mozjs128: rebuild with libicu78
1 parent 7586907 commit da1bc01

8 files changed

Lines changed: 65 additions & 1 deletion
File renamed without changes.

srcpkgs/mozjs128/patches/d535cd70e034b4ccdccf8b7d9243ffa931a46c78.patch renamed to srcpkgs/mozjs128/patches/019-python-3.11.patch

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/js/moz.configure
2+
+++ b/js/moz.configure
3+
@@ -1305,7 +1305,7 @@ def enable_system_icu_option(enable_syst
4+
return enable_system_icu
5+
6+
7+
-system_icu = pkg_check_modules("MOZ_ICU", "icu-i18n >= 73.1", when="--with-system-icu")
8+
+system_icu = pkg_check_modules("MOZ_ICU", "icu-uc icu-i18n >= 73.1", when="--with-system-icu")
9+
10+
11+
@depends(enable_system_icu_option)
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
--- a/python/mozbuild/mozbuild/frontend/reader.py
2+
+++ b/python/mozbuild/mozbuild/frontend/reader.py
3+
@@ -470,7 +470,7 @@ class TemplateFunction(object):
4+
return c(
5+
ast.Subscript(
6+
value=c(ast.Name(id=self._global_name, ctx=ast.Load())),
7+
- slice=c(ast.Index(value=c(ast.Str(s=node.id)))),
8+
+ slice=c(ast.Index(value=c(ast.Constant(value=node.id)))),
9+
ctx=node.ctx,
10+
)
11+
)
12+
@@ -1035,7 +1035,7 @@ class BuildReader(object):
13+
else:
14+
# Others
15+
assert isinstance(target.slice, ast.Index)
16+
- assert isinstance(target.slice.value, ast.Str)
17+
+ assert isinstance(target.slice.value, ast.Constant)
18+
key = target.slice.value.s
19+
20+
return name, key
21+
@@ -1044,10 +1044,10 @@ class BuildReader(object):
22+
value = node.value
23+
if isinstance(value, ast.List):
24+
for v in value.elts:
25+
- assert isinstance(v, ast.Str)
26+
+ assert isinstance(v, ast.Constant)
27+
yield v.s
28+
else:
29+
- assert isinstance(value, ast.Str)
30+
+ assert isinstance(value, ast.Constant)
31+
yield value.s
32+
33+
assignments = []
34+
--- a/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py
35+
+++ b/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py
36+
@@ -327,15 +327,13 @@ def assignment_node_to_source_filename_l
37+
"""
38+
if isinstance(node.value, ast.List) and "elts" in node.value._fields:
39+
for f in node.value.elts:
40+
- if not isinstance(f, ast.Constant) and not isinstance(f, ast.Str):
41+
+ if not isinstance(f, ast.Constant):
42+
log(
43+
"Found non-constant source file name in list: ",
44+
ast_get_source_segment(code, f),
45+
)
46+
return []
47+
- return [
48+
- f.value if isinstance(f, ast.Constant) else f.s for f in node.value.elts
49+
- ]
50+
+ return [f.value for f in node.value.elts]
51+
elif isinstance(node.value, ast.ListComp):
52+
# SOURCES += [f for f in foo if blah]
53+
log("Could not find the files for " + ast_get_source_segment(code, node.value))

srcpkgs/mozjs128/template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Template file for 'mozjs128'
22
pkgname=mozjs128
33
version=128.7.0
4-
revision=2
4+
revision=3
55
build_wrksrc=js/src
66
build_style=gnu-configure
77
build_helper=rust

0 commit comments

Comments
 (0)