Skip to content

Commit 7586907

Browse files
committed
mozjs115: rebuild with libicu78
1 parent 98213cc commit 7586907

7 files changed

Lines changed: 66 additions & 2 deletions

File tree

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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+
@@ -477,7 +477,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+
@@ -1010,7 +1010,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+
@@ -1019,10 +1019,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+
@@ -336,15 +336,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))
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+
@@ -1104,7 +1104,7 @@ set_define(
4+
# ======================================================
5+
system_lib_option("--with-system-icu", help="Use system ICU")
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("--with-system-icu")

srcpkgs/mozjs115/template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Template file for 'mozjs115'
22
pkgname=mozjs115
33
version=115.8.0
4-
revision=1
4+
revision=2
55
build_wrksrc=js/src
66
build_style=gnu-configure
77
build_helper=rust
@@ -12,7 +12,7 @@ configure_args="--disable-jemalloc --disable-strip --disable-tests \
1212
--with-system-nspr --with-system-zlib --enable-hardening --enable-release"
1313
hostmakedepends="make pkg-config python3 python3-setuptools python3-six perl m4
1414
rust cargo llvm19 clang19"
15-
makedepends="libicu73-devel libffi-devel nspr-devel python3-devel readline-devel
15+
makedepends="icu-devel libffi-devel nspr-devel python3-devel readline-devel
1616
zlib-devel rust-std"
1717
checkdepends="python3"
1818
short_desc="SpiderMonkey JavaScript interpreter and library (115.x)"

0 commit comments

Comments
 (0)