Skip to content

Commit

Permalink
Update SpiderMonkey to 128.3 (#511)
Browse files Browse the repository at this point in the history
* Update SpiderMonkey to 128.3

Signed-off-by: sagudev <[email protected]>

* update COMMIT hash

Signed-off-by: sagudev <[email protected]>

* bump mozjs-sys version

Signed-off-by: sagudev <[email protected]>

* add commit signoff and format update.py

Signed-off-by: sagudev <[email protected]>

---------

Signed-off-by: sagudev <[email protected]>
  • Loading branch information
sagudev authored Oct 2, 2024
1 parent 8daf0a0 commit d9b283c
Show file tree
Hide file tree
Showing 88 changed files with 1,512 additions and 1,177 deletions.
2 changes: 1 addition & 1 deletion mozjs-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mozjs_sys"
description = "System crate for the Mozilla SpiderMonkey JavaScript engine."
repository.workspace = true
version = "0.128.0-13"
version = "0.128.3-0"
authors = ["Mozilla"]
links = "mozjs"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion mozjs-sys/etc/COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4cff37e891cdf778f142fd8005c71b1dd88898b2
e2cb3d9c8cfc18acad7f77add351416dc95b67c4
46 changes: 31 additions & 15 deletions mozjs-sys/etc/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

TARGET = "mozjs-sys/mozjs"


def extract_tarball(tarball, commit):
print("Extracting tarball.")

Expand All @@ -20,24 +21,33 @@ def extract_tarball(tarball, commit):

contents = os.listdir(directory)
if len(contents) != 1:
raise Exception("Found more than one directory in the tarball: %s" %
", ".join(contents))
raise Exception(
"Found more than one directory in the tarball: %s" % ", ".join(contents)
)
subdirectory = contents[0]

subprocess.check_call([
"rsync",
"--delete-excluded",
"--filter=merge mozjs-sys/etc/filters.txt",
"--prune-empty-dirs",
"--quiet",
"--recursive",
os.path.join(directory, subdirectory, ""),
os.path.join(TARGET, ""),
])
subprocess.check_call(
[
"rsync",
"--delete-excluded",
"--filter=merge mozjs-sys/etc/filters.txt",
"--prune-empty-dirs",
"--quiet",
"--recursive",
os.path.join(directory, subdirectory, ""),
os.path.join(TARGET, ""),
]
)

if commit:
subprocess.check_call(["git", "add", "--all", TARGET], stdout=subprocess.DEVNULL)
subprocess.check_call(["git", "commit", "-m", "Update SpiderMonkey"], stdout=subprocess.DEVNULL)
subprocess.check_call(
["git", "add", "--all", TARGET], stdout=subprocess.DEVNULL
)
subprocess.check_call(
["git", "commit", "-s", "-m", "Update SpiderMonkey"],
stdout=subprocess.DEVNULL,
)


def apply_patches():
print("Applying patches.")
Expand All @@ -49,7 +59,11 @@ def apply_patches():
)
for p in patches:
print(" Applying patch: %s." % p)
subprocess.check_call(["git", "apply", "--reject", "--directory=" + TARGET, p], stdout=subprocess.DEVNULL)
subprocess.check_call(
["git", "apply", "--reject", "--directory=" + TARGET, p],
stdout=subprocess.DEVNULL,
)


def main(args):
extract = None
Expand All @@ -67,6 +81,8 @@ def main(args):
if patch:
apply_patches()


if __name__ == "__main__":
import sys

main(sys.argv[1:])
4 changes: 2 additions & 2 deletions mozjs-sys/mozjs/.cargo/config.toml.in

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions mozjs-sys/mozjs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions mozjs-sys/mozjs/build/clang-plugin/ThreadAllows.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 121 additions & 0 deletions mozjs-sys/mozjs/build/debian-packages/valgrind.diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mozjs-sys/mozjs/build/moz.configure/libraries.configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mozjs-sys/mozjs/config/milestone.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d9b283c

Please sign in to comment.