diff options
| author | Markus Volk <f_l_k@t-online.de> | 2022-11-27 21:13:45 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-11-28 11:32:26 -0800 |
| commit | 533db85b55565af90a81a7f4463c67a2a07a3056 (patch) | |
| tree | 481d40720260f09a604cdc5aa6bdcab9bf4779e9 | |
| parent | 64e7d871aa14806c60151c46f5c48ab3f1bd99b3 (diff) | |
| download | meta-openembedded-533db85b55565af90a81a7f4463c67a2a07a3056.tar.gz | |
mozjs: update 98 -> 102
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/0001-Cargo.toml-do-not-abort-on-panic.patch (renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-Cargo.toml-do-not-abort-on-panic.patch) | 11 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch (renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch) | 7 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch (renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch) | 10 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch (renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch) | 10 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/0002-moz.configure-do-not-look-for-llvm-objdump.patch (renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0002-moz.configure-do-not-look-for-llvm-objdump.patch) | 13 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch (renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch) | 9 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/0004-use-asm-sgidefs.h.patch (renamed from meta-oe/recipes-extended/mozjs/mozjs-91/0004-use-asm-sgidefs.h.patch) | 9 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/fix-musl-build.patch | 27 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch (renamed from meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch) | 128 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102/riscv32.patch (renamed from meta-oe/recipes-extended/mozjs/mozjs-91/riscv32.patch) | 27 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-102_102.5.0.bb (renamed from meta-oe/recipes-extended/mozjs/mozjs-91_91.13.0.bb) | 12 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch | 21 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch | 36 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-91/fix-musl-build.patch | 15 |
14 files changed, 118 insertions, 217 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-Cargo.toml-do-not-abort-on-panic.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-Cargo.toml-do-not-abort-on-panic.patch index e09848f403..0dd936197b 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-Cargo.toml-do-not-abort-on-panic.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-Cargo.toml-do-not-abort-on-panic.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 9e37248870b2b955293754933c789ca00bca06ef Mon Sep 17 00:00:00 2001 | 1 | From bb46a8a729cc4d66ad36db40c17e36a5111f19c3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Fri, 1 Oct 2021 13:00:24 +0200 | 3 | Date: Fri, 1 Oct 2021 13:00:24 +0200 |
| 4 | Subject: [PATCH] Cargo.toml: do not abort on panic | 4 | Subject: [PATCH] Cargo.toml: do not abort on panic |
| @@ -7,13 +7,16 @@ OE's rust is configured to unwind, and this setting clashes with it/ | |||
| 7 | 7 | ||
| 8 | Upstream-Status: Inappropriate [oe-core specific] | 8 | Upstream-Status: Inappropriate [oe-core specific] |
| 9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | 9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 10 | |||
| 10 | --- | 11 | --- |
| 11 | Cargo.toml | 3 +-- | 12 | Cargo.toml | 2 -- |
| 12 | 1 file changed, 1 insertion(+), 2 deletions(-) | 13 | 1 file changed, 2 deletions(-) |
| 13 | 14 | ||
| 15 | diff --git a/Cargo.toml b/Cargo.toml | ||
| 16 | index f576534bf3..5ecc17c319 100644 | ||
| 14 | --- a/Cargo.toml | 17 | --- a/Cargo.toml |
| 15 | +++ b/Cargo.toml | 18 | +++ b/Cargo.toml |
| 16 | @@ -51,13 +51,11 @@ opt-level = 1 | 19 | @@ -56,13 +56,11 @@ opt-level = 1 |
| 17 | rpath = false | 20 | rpath = false |
| 18 | lto = false | 21 | lto = false |
| 19 | debug-assertions = true | 22 | debug-assertions = true |
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch index a2ccf6b916..fe905fe4dd 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From e5b95b3918588e2930c9af7ba304c57e871b2d55 Mon Sep 17 00:00:00 2001 | 1 | From c860dcbe63b0e393c95bfb0131238f91aaac11d3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Thu, 7 Oct 2021 12:44:18 +0200 | 3 | Date: Thu, 7 Oct 2021 12:44:18 +0200 |
| 4 | Subject: [PATCH] build: do not use autoconf's config.sub to 'canonicalize' | 4 | Subject: [PATCH] build: do not use autoconf's config.sub to 'canonicalize' |
| @@ -9,15 +9,16 @@ target definitions, and the build fails. | |||
| 9 | 9 | ||
| 10 | Upstream-Status: Inappropriate [oe-core specific] | 10 | Upstream-Status: Inappropriate [oe-core specific] |
| 11 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | 11 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 12 | |||
| 12 | --- | 13 | --- |
| 13 | build/moz.configure/init.configure | 2 +- | 14 | build/moz.configure/init.configure | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | 16 | ||
| 16 | diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure | 17 | diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure |
| 17 | index 3a164c6558..99dfc9054a 100644 | 18 | index 81f500a0b7..0b7a2ff60f 100644 |
| 18 | --- a/build/moz.configure/init.configure | 19 | --- a/build/moz.configure/init.configure |
| 19 | +++ b/build/moz.configure/init.configure | 20 | +++ b/build/moz.configure/init.configure |
| 20 | @@ -823,7 +823,7 @@ def help_host_target(help, host, target): | 21 | @@ -585,7 +585,7 @@ def help_host_target(help, host, target): |
| 21 | 22 | ||
| 22 | def config_sub(shell, triplet): | 23 | def config_sub(shell, triplet): |
| 23 | config_sub = os.path.join(os.path.dirname(__file__), "..", "autoconf", "config.sub") | 24 | config_sub = os.path.join(os.path.dirname(__file__), "..", "autoconf", "config.sub") |
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch index 7b938179c3..73bcffe94a 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-rewrite-cargo-host-linker-in-python3.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-rewrite-cargo-host-linker-in-python3.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 9eceb43dd676afe2f675bd65ab369ba4d14f6537 Mon Sep 17 00:00:00 2001 | 1 | From 8e318c4e7e732327dabf51027860de45b6fb731e Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Thu, 18 Nov 2021 07:16:39 +0000 | 3 | Date: Thu, 18 Nov 2021 07:16:39 +0000 |
| 4 | Subject: [PATCH] Rewrite cargo-host-linker in python3 | 4 | Subject: [PATCH] Rewrite cargo-host-linker in python3 |
| @@ -18,12 +18,13 @@ rewrite cargo-host-linker in python3 | |||
| 18 | Upstream-Status: Inappropriate [oe specific] | 18 | Upstream-Status: Inappropriate [oe specific] |
| 19 | 19 | ||
| 20 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 20 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
| 21 | |||
| 21 | --- | 22 | --- |
| 22 | build/cargo-host-linker | 24 +++++++--- | 23 | build/cargo-host-linker | 24 +++++++++++++++++++++--- |
| 23 | 1 file changed, 21 insertions(+), 3 deletions(-) | 24 | 1 file changed, 21 insertions(+), 3 deletions(-) |
| 24 | 25 | ||
| 25 | diff --git a/build/cargo-host-linker b/build/cargo-host-linker | 26 | diff --git a/build/cargo-host-linker b/build/cargo-host-linker |
| 26 | index cbd0472bf7..ccd8bffec1 100755 | 27 | index cbd0472bf7..87d43ce9ec 100755 |
| 27 | --- a/build/cargo-host-linker | 28 | --- a/build/cargo-host-linker |
| 28 | +++ b/build/cargo-host-linker | 29 | +++ b/build/cargo-host-linker |
| 29 | @@ -1,3 +1,21 @@ | 30 | @@ -1,3 +1,21 @@ |
| @@ -51,6 +52,3 @@ index cbd0472bf7..ccd8bffec1 100755 | |||
| 51 | + args=[os.environ['MOZ_CARGO_WRAP_HOST_LD'].split()[0]] + sys.argv[1:] | 52 | + args=[os.environ['MOZ_CARGO_WRAP_HOST_LD'].split()[0]] + sys.argv[1:] |
| 52 | + | 53 | + |
| 53 | +os.execvp(binary, args) | 54 | +os.execvp(binary, args) |
| 54 | -- | ||
| 55 | 2.33.1 | ||
| 56 | |||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch index 5472eddbbb..d732fdaf6f 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/0001-util.configure-fix-one-occasionally-reproduced-confi.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/0001-util.configure-fix-one-occasionally-reproduced-confi.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From b13cad4abc53f816f64c8b0af70cb46820746c72 Mon Sep 17 00:00:00 2001 | 1 | From 2a6f66f39b4e623428b6d282bd4cb72dde67c1a6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Thu, 11 Nov 2021 16:05:54 +0800 | 3 | Date: Thu, 11 Nov 2021 16:05:54 +0800 |
| 4 | Subject: [PATCH] util.configure: fix one occasionally reproduced configure | 4 | Subject: [PATCH] util.configure: fix one occasionally reproduced configure |
| @@ -28,15 +28,16 @@ It should be another process that deleted this file by using | |||
| 28 | Upstream-Status: Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=1740667] | 28 | Upstream-Status: Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=1740667] |
| 29 | 29 | ||
| 30 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 30 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
| 31 | |||
| 31 | --- | 32 | --- |
| 32 | build/moz.configure/util.configure | 2 +- | 33 | build/moz.configure/util.configure | 2 +- |
| 33 | 1 file changed, 1 insertion(+), 1 deletion(-) | 34 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 34 | 35 | ||
| 35 | diff --git a/build/moz.configure/util.configure b/build/moz.configure/util.configure | 36 | diff --git a/build/moz.configure/util.configure b/build/moz.configure/util.configure |
| 36 | index 8f35e89c73..84e256647d 100644 | 37 | index 80c3a34522..0ac0c6b611 100644 |
| 37 | --- a/build/moz.configure/util.configure | 38 | --- a/build/moz.configure/util.configure |
| 38 | +++ b/build/moz.configure/util.configure | 39 | +++ b/build/moz.configure/util.configure |
| 39 | @@ -222,7 +222,7 @@ def try_invoke_compiler(compiler, language, source, flags=None, onerror=None): | 40 | @@ -216,7 +216,7 @@ def try_invoke_compiler(compiler, language, source, flags=None, onerror=None): |
| 40 | "C++": ".cpp", | 41 | "C++": ".cpp", |
| 41 | }[language] | 42 | }[language] |
| 42 | 43 | ||
| @@ -45,6 +46,3 @@ index 8f35e89c73..84e256647d 100644 | |||
| 45 | try: | 46 | try: |
| 46 | source = source.encode("ascii", "replace") | 47 | source = source.encode("ascii", "replace") |
| 47 | 48 | ||
| 48 | -- | ||
| 49 | 2.17.1 | ||
| 50 | |||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/0002-moz.configure-do-not-look-for-llvm-objdump.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/0002-moz.configure-do-not-look-for-llvm-objdump.patch index 6ff83e3bb2..b3d3c1ffae 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/0002-moz.configure-do-not-look-for-llvm-objdump.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/0002-moz.configure-do-not-look-for-llvm-objdump.patch | |||
| @@ -16,13 +16,13 @@ diff --git a/moz.configure b/moz.configure | |||
| 16 | index fc66b520d0..15de9a2ee0 100755 | 16 | index fc66b520d0..15de9a2ee0 100755 |
| 17 | --- a/moz.configure | 17 | --- a/moz.configure |
| 18 | +++ b/moz.configure | 18 | +++ b/moz.configure |
| 19 | @@ -994,15 +994,15 @@ def llvm_objdump(host_c_compiler, c_compiler, bindgen_config_paths): | 19 | @@ -785,15 +785,15 @@ |
| 20 | return (llvm_objdump,) | 20 | return llvm_tool |
| 21 | 21 | ||
| 22 | 22 | ||
| 23 | -llvm_objdump = check_prog( | 23 | -llvm_objdump = check_prog( |
| 24 | - "LLVM_OBJDUMP", | 24 | - "LLVM_OBJDUMP", |
| 25 | - llvm_objdump, | 25 | - llvm_tool("llvm-objdump"), |
| 26 | - what="llvm-objdump", | 26 | - what="llvm-objdump", |
| 27 | - when="--enable-compile-environment", | 27 | - when="--enable-compile-environment", |
| 28 | - paths=clang_search_path, | 28 | - paths=clang_search_path, |
| @@ -31,13 +31,14 @@ index fc66b520d0..15de9a2ee0 100755 | |||
| 31 | -add_old_configure_assignment("LLVM_OBJDUMP", llvm_objdump) | 31 | -add_old_configure_assignment("LLVM_OBJDUMP", llvm_objdump) |
| 32 | +#llvm_objdump = check_prog( | 32 | +#llvm_objdump = check_prog( |
| 33 | +# "LLVM_OBJDUMP", | 33 | +# "LLVM_OBJDUMP", |
| 34 | +# llvm_objdump, | 34 | +# llvm_tool("llvm-objdump"), |
| 35 | +# what="llvm-objdump", | 35 | +# what="llvm-objdump", |
| 36 | +# when="--enable-compile-environment", | 36 | +# when="--enable-compile-environment", |
| 37 | +# paths=clang_search_path, | 37 | +# paths=clang_search_path, |
| 38 | +#) | 38 | +#) |
| 39 | + | 39 | +# |
| 40 | +#add_old_configure_assignment("LLVM_OBJDUMP", llvm_objdump) | 40 | +#add_old_configure_assignment("LLVM_OBJDUMP", llvm_objdump) |
| 41 | 41 | ||
| 42 | 42 | ||
| 43 | option("--enable-dtrace", help="Build with dtrace support") | 43 | @depends(llvm_tool("llvm-readelf"), toolchain_prefix) |
| 44 | |||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch index c440bf178f..e63b053565 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 749ba11fd6a69c8180945d4866415d16ae06a9c0 Mon Sep 17 00:00:00 2001 | 1 | From 33ff25e2b126dd4135006139641d8b7f6e4da200 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Fri, 1 Oct 2021 13:02:17 +0200 | 3 | Date: Fri, 1 Oct 2021 13:02:17 +0200 |
| 4 | Subject: [PATCH] rust.configure: do not try to find a suitable upstream target | 4 | Subject: [PATCH] rust.configure: do not try to find a suitable upstream target |
| @@ -7,15 +7,16 @@ OE is using custom targets and so this is bound to fail. | |||
| 7 | 7 | ||
| 8 | Upstream-Status: Inapppropriate [oe-core specific] | 8 | Upstream-Status: Inapppropriate [oe-core specific] |
| 9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | 9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 10 | |||
| 10 | --- | 11 | --- |
| 11 | build/moz.configure/rust.configure | 34 ++---------------------------- | 12 | build/moz.configure/rust.configure | 34 ++---------------------------- |
| 12 | 1 file changed, 2 insertions(+), 32 deletions(-) | 13 | 1 file changed, 2 insertions(+), 32 deletions(-) |
| 13 | 14 | ||
| 14 | diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure | 15 | diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure |
| 15 | index cd77d72bb7..4b6481cbe3 100644 | 16 | index e64dc5d5ec..edf21baca6 100644 |
| 16 | --- a/build/moz.configure/rust.configure | 17 | --- a/build/moz.configure/rust.configure |
| 17 | +++ b/build/moz.configure/rust.configure | 18 | +++ b/build/moz.configure/rust.configure |
| 18 | @@ -459,33 +459,7 @@ def assert_rust_compile(host_or_target, rustc_target, rustc): | 19 | @@ -471,33 +471,7 @@ def assert_rust_compile(host_or_target, rustc_target, rustc): |
| 19 | def rust_host_triple( | 20 | def rust_host_triple( |
| 20 | rustc, host, compiler_info, rustc_host, rust_supported_targets, arm_target | 21 | rustc, host, compiler_info, rustc_host, rust_supported_targets, arm_target |
| 21 | ): | 22 | ): |
| @@ -50,7 +51,7 @@ index cd77d72bb7..4b6481cbe3 100644 | |||
| 50 | 51 | ||
| 51 | 52 | ||
| 52 | @depends( | 53 | @depends( |
| 53 | @@ -495,11 +469,7 @@ def rust_host_triple( | 54 | @@ -507,11 +481,7 @@ def rust_host_triple( |
| 54 | def rust_target_triple( | 55 | def rust_target_triple( |
| 55 | rustc, target, compiler_info, rust_supported_targets, arm_target | 56 | rustc, target, compiler_info, rust_supported_targets, arm_target |
| 56 | ): | 57 | ): |
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/0004-use-asm-sgidefs.h.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/0004-use-asm-sgidefs.h.patch index b56f0b95b5..ff28654b59 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/0004-use-asm-sgidefs.h.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/0004-use-asm-sgidefs.h.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 65acc8800dba7e10da882871d4648241805c47ce Mon Sep 17 00:00:00 2001 | 1 | From 0ec73937b01869a701ed9b60a6a84469e035ded4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Andre McCurdy <amccurdy@gmail.com> | 2 | From: Andre McCurdy <amccurdy@gmail.com> |
| 3 | Date: Sat, 30 Apr 2016 15:29:06 -0700 | 3 | Date: Sat, 30 Apr 2016 15:29:06 -0700 |
| 4 | Subject: [PATCH] use <asm/sgidefs.h> | 4 | Subject: [PATCH] use <asm/sgidefs.h> |
| @@ -18,13 +18,16 @@ Taken from: https://sourceware.org/bugzilla/show_bug.cgi?id=21070] | |||
| 18 | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> | 18 | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> |
| 19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 20 | Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> | 20 | Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> |
| 21 | |||
| 21 | --- | 22 | --- |
| 22 | gdb/mips-linux-nat.c | 2 +- | 23 | mfbt/RandomNum.cpp | 2 +- |
| 23 | 1 file changed, 1 insertion(+), 1 deletion(-) | 24 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 24 | 25 | ||
| 26 | diff --git a/mfbt/RandomNum.cpp b/mfbt/RandomNum.cpp | ||
| 27 | index 23381db0cd..7f127c0715 100644 | ||
| 25 | --- a/mfbt/RandomNum.cpp | 28 | --- a/mfbt/RandomNum.cpp |
| 26 | +++ b/mfbt/RandomNum.cpp | 29 | +++ b/mfbt/RandomNum.cpp |
| 27 | @@ -52,7 +52,7 @@ extern "C" BOOLEAN NTAPI RtlGenRandom(PV | 30 | @@ -52,7 +52,7 @@ extern "C" BOOLEAN NTAPI RtlGenRandom(PVOID RandomBuffer, |
| 28 | # elif defined(__s390__) | 31 | # elif defined(__s390__) |
| 29 | # define GETRANDOM_NR 349 | 32 | # define GETRANDOM_NR 349 |
| 30 | # elif defined(__mips__) | 33 | # elif defined(__mips__) |
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-102/fix-musl-build.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/fix-musl-build.patch new file mode 100644 index 0000000000..f847979ea2 --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/fix-musl-build.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From 1110483c6c06adf2d03ed9154a8957defc175c80 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 20 Oct 2021 16:21:14 -0700 | ||
| 4 | Subject: [PATCH] mozjs: Fix musl miscompiles with HAVE_THREAD_TLS_KEYWORD | ||
| 5 | |||
| 6 | Upstream: No | ||
| 7 | Reason: mozjs60 miscompiles on musl if built with HAVE_THREAD_TLS_KEYWORD: | ||
| 8 | https://github.com/void-linux/void-packages/issues/2598 | ||
| 9 | |||
| 10 | --- | ||
| 11 | js/src/old-configure.in | 3 +++ | ||
| 12 | 1 file changed, 3 insertions(+) | ||
| 13 | |||
| 14 | diff --git a/js/src/old-configure.in b/js/src/old-configure.in | ||
| 15 | index 8dfd75c63d..c82e580428 100644 | ||
| 16 | --- a/js/src/old-configure.in | ||
| 17 | +++ b/js/src/old-configure.in | ||
| 18 | @@ -839,6 +839,9 @@ if test "$ac_cv_thread_keyword" = yes; then | ||
| 19 | *-android*|*-linuxandroid*) | ||
| 20 | : | ||
| 21 | ;; | ||
| 22 | + *-musl*) | ||
| 23 | + : | ||
| 24 | + ;; | ||
| 25 | *) | ||
| 26 | AC_DEFINE(HAVE_THREAD_TLS_KEYWORD) | ||
| 27 | ;; | ||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch index 71da8225ab..85af547093 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/py-3.11.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/py-3.11.patch | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | From 1479dd9c75917d2be70ee840c9db141e59987e44 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Wed, 14 Sep 2022 14:03:10 +0200 | ||
| 4 | Subject: [PATCH] mozjs-91: backport a python 3.11 compatibility patch | ||
| 1 | 5 | ||
| 2 | # HG changeset patch | 6 | # HG changeset patch |
| 3 | # User ahochheiden <ahochheiden@mozilla.com> | 7 | # User ahochheiden <ahochheiden@mozilla.com> |
| @@ -19,15 +23,20 @@ Differential Revision: https://phabricator.services.mozilla.com/D147721 | |||
| 19 | Upstream-Status: Backport [https://hg.mozilla.org/mozilla-central/rev/f54162b2c1f2fe52c6137ab2c3469a1944f58b27] | 23 | Upstream-Status: Backport [https://hg.mozilla.org/mozilla-central/rev/f54162b2c1f2fe52c6137ab2c3469a1944f58b27] |
| 20 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | 24 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 21 | 25 | ||
| 26 | --- | ||
| 27 | dom/base/usecounters.py | 2 +- | ||
| 28 | python/mozbuild/mozbuild/action/process_define_files.py | 2 +- | ||
| 29 | python/mozbuild/mozbuild/backend/base.py | 2 +- | ||
| 30 | python/mozbuild/mozbuild/preprocessor.py | 6 +++--- | ||
| 31 | python/mozbuild/mozbuild/util.py | 2 +- | ||
| 32 | python/mozbuild/mozpack/files.py | 4 ++-- | ||
| 33 | 6 files changed, 9 insertions(+), 9 deletions(-) | ||
| 34 | |||
| 22 | diff --git a/dom/base/usecounters.py b/dom/base/usecounters.py | 35 | diff --git a/dom/base/usecounters.py b/dom/base/usecounters.py |
| 36 | index 780e3b32b2..7e2c7148ec 100644 | ||
| 23 | --- a/dom/base/usecounters.py | 37 | --- a/dom/base/usecounters.py |
| 24 | +++ b/dom/base/usecounters.py | 38 | +++ b/dom/base/usecounters.py |
| 25 | @@ -3,17 +3,17 @@ | 39 | @@ -8,7 +8,7 @@ import re |
| 26 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| 27 | |||
| 28 | import collections | ||
| 29 | import re | ||
| 30 | |||
| 31 | 40 | ||
| 32 | def read_conf(conf_filename): | 41 | def read_conf(conf_filename): |
| 33 | # Can't read/write from a single StringIO, so make a new one for reading. | 42 | # Can't read/write from a single StringIO, so make a new one for reading. |
| @@ -36,20 +45,11 @@ diff --git a/dom/base/usecounters.py b/dom/base/usecounters.py | |||
| 36 | 45 | ||
| 37 | def parse_counters(stream): | 46 | def parse_counters(stream): |
| 38 | for line_num, line in enumerate(stream): | 47 | for line_num, line in enumerate(stream): |
| 39 | line = line.rstrip("\n") | ||
| 40 | if not line or line.startswith("//"): | ||
| 41 | # empty line or comment | ||
| 42 | continue | ||
| 43 | m = re.match(r"method ([A-Za-z0-9]+)\.([A-Za-z0-9]+)$", line) | ||
| 44 | diff --git a/python/mozbuild/mozbuild/action/process_define_files.py b/python/mozbuild/mozbuild/action/process_define_files.py | 48 | diff --git a/python/mozbuild/mozbuild/action/process_define_files.py b/python/mozbuild/mozbuild/action/process_define_files.py |
| 49 | index f1d401ac26..aca59d0f05 100644 | ||
| 45 | --- a/python/mozbuild/mozbuild/action/process_define_files.py | 50 | --- a/python/mozbuild/mozbuild/action/process_define_files.py |
| 46 | +++ b/python/mozbuild/mozbuild/action/process_define_files.py | 51 | +++ b/python/mozbuild/mozbuild/action/process_define_files.py |
| 47 | @@ -31,17 +31,17 @@ def process_define_file(output, input): | 52 | @@ -36,7 +36,7 @@ def process_define_file(output, input): |
| 48 | |||
| 49 | config = PartialConfigEnvironment(topobjdir) | ||
| 50 | |||
| 51 | if mozpath.basedir( | ||
| 52 | path, [mozpath.join(topsrcdir, "js/src")] | ||
| 53 | ) and not config.substs.get("JS_STANDALONE"): | 53 | ) and not config.substs.get("JS_STANDALONE"): |
| 54 | config = PartialConfigEnvironment(mozpath.join(topobjdir, "js", "src")) | 54 | config = PartialConfigEnvironment(mozpath.join(topobjdir, "js", "src")) |
| 55 | 55 | ||
| @@ -58,20 +58,11 @@ diff --git a/python/mozbuild/mozbuild/action/process_define_files.py b/python/mo | |||
| 58 | r = re.compile( | 58 | r = re.compile( |
| 59 | "^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?", re.U | 59 | "^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?", re.U |
| 60 | ) | 60 | ) |
| 61 | for l in input: | ||
| 62 | m = r.match(l) | ||
| 63 | if m: | ||
| 64 | cmd = m.group("cmd") | ||
| 65 | name = m.group("name") | ||
| 66 | diff --git a/python/mozbuild/mozbuild/backend/base.py b/python/mozbuild/mozbuild/backend/base.py | 61 | diff --git a/python/mozbuild/mozbuild/backend/base.py b/python/mozbuild/mozbuild/backend/base.py |
| 62 | index 7bc1986d86..b64a709468 100644 | ||
| 67 | --- a/python/mozbuild/mozbuild/backend/base.py | 63 | --- a/python/mozbuild/mozbuild/backend/base.py |
| 68 | +++ b/python/mozbuild/mozbuild/backend/base.py | 64 | +++ b/python/mozbuild/mozbuild/backend/base.py |
| 69 | @@ -267,17 +267,17 @@ class BuildBackend(LoggingMixin): | 65 | @@ -272,7 +272,7 @@ class BuildBackend(LoggingMixin): |
| 70 | If an exception is raised, |mach build| will fail with a | ||
| 71 | non-zero exit code. | ||
| 72 | """ | ||
| 73 | self._write_purgecaches(config) | ||
| 74 | |||
| 75 | return status | 66 | return status |
| 76 | 67 | ||
| 77 | @contextmanager | 68 | @contextmanager |
| @@ -80,20 +71,11 @@ diff --git a/python/mozbuild/mozbuild/backend/base.py b/python/mozbuild/mozbuild | |||
| 80 | """Context manager to write a file. | 71 | """Context manager to write a file. |
| 81 | 72 | ||
| 82 | This is a glorified wrapper around FileAvoidWrite with integration to | 73 | This is a glorified wrapper around FileAvoidWrite with integration to |
| 83 | update the summary data on this instance. | ||
| 84 | |||
| 85 | Example usage: | ||
| 86 | |||
| 87 | with self._write_file('foo.txt') as fh: | ||
| 88 | diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild/preprocessor.py | 74 | diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild/preprocessor.py |
| 75 | index f7820b9c91..857f1a6c9b 100644 | ||
| 89 | --- a/python/mozbuild/mozbuild/preprocessor.py | 76 | --- a/python/mozbuild/mozbuild/preprocessor.py |
| 90 | +++ b/python/mozbuild/mozbuild/preprocessor.py | 77 | +++ b/python/mozbuild/mozbuild/preprocessor.py |
| 91 | @@ -526,17 +526,17 @@ class Preprocessor: | 78 | @@ -531,7 +531,7 @@ class Preprocessor: |
| 92 | if not options.output: | ||
| 93 | raise Preprocessor.Error( | ||
| 94 | self, "--depend doesn't work with stdout", None | ||
| 95 | ) | ||
| 96 | depfile = get_output_file(options.depend) | ||
| 97 | 79 | ||
| 98 | if args: | 80 | if args: |
| 99 | for f in args: | 81 | for f in args: |
| @@ -102,17 +84,7 @@ diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild | |||
| 102 | self.processFile(input=input, output=out) | 84 | self.processFile(input=input, output=out) |
| 103 | if depfile: | 85 | if depfile: |
| 104 | mk = Makefile() | 86 | mk = Makefile() |
| 105 | mk.create_rule([six.ensure_text(options.output)]).add_dependencies( | 87 | @@ -860,7 +860,7 @@ class Preprocessor: |
| 106 | self.includes | ||
| 107 | ) | ||
| 108 | mk.dump(depfile) | ||
| 109 | depfile.close() | ||
| 110 | @@ -855,17 +855,17 @@ class Preprocessor: | ||
| 111 | self.checkLineNumbers = False | ||
| 112 | if isName: | ||
| 113 | try: | ||
| 114 | args = _to_text(args) | ||
| 115 | if filters: | ||
| 116 | args = self.applyFilters(args) | 88 | args = self.applyFilters(args) |
| 117 | if not os.path.isabs(args): | 89 | if not os.path.isabs(args): |
| 118 | args = os.path.join(self.curdir, args) | 90 | args = os.path.join(self.curdir, args) |
| @@ -121,17 +93,7 @@ diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild | |||
| 121 | except Preprocessor.Error: | 93 | except Preprocessor.Error: |
| 122 | raise | 94 | raise |
| 123 | except Exception: | 95 | except Exception: |
| 124 | raise Preprocessor.Error(self, "FILE_NOT_FOUND", _to_text(args)) | 96 | @@ -914,7 +914,7 @@ class Preprocessor: |
| 125 | self.checkLineNumbers = bool( | ||
| 126 | re.search("\.(js|jsm|java|webidl)(?:\.in)?$", args.name) | ||
| 127 | ) | ||
| 128 | oldFile = self.context["FILE"] | ||
| 129 | @@ -909,17 +909,17 @@ class Preprocessor: | ||
| 130 | |||
| 131 | def do_error(self, args): | ||
| 132 | raise Preprocessor.Error(self, "Error: ", _to_text(args)) | ||
| 133 | |||
| 134 | |||
| 135 | def preprocess(includes=[sys.stdin], defines={}, output=sys.stdout, marker="#"): | 97 | def preprocess(includes=[sys.stdin], defines={}, output=sys.stdout, marker="#"): |
| 136 | pp = Preprocessor(defines=defines, marker=marker) | 98 | pp = Preprocessor(defines=defines, marker=marker) |
| 137 | for f in includes: | 99 | for f in includes: |
| @@ -140,20 +102,11 @@ diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild | |||
| 140 | pp.processFile(input=input, output=output) | 102 | pp.processFile(input=input, output=output) |
| 141 | return pp.includes | 103 | return pp.includes |
| 142 | 104 | ||
| 143 | |||
| 144 | # Keep this module independently executable. | ||
| 145 | if __name__ == "__main__": | ||
| 146 | pp = Preprocessor() | ||
| 147 | pp.handleCommandLine(None, True) | ||
| 148 | diff --git a/python/mozbuild/mozbuild/util.py b/python/mozbuild/mozbuild/util.py | 105 | diff --git a/python/mozbuild/mozbuild/util.py b/python/mozbuild/mozbuild/util.py |
| 106 | index b09f164698..4f1e0cdc5f 100644 | ||
| 149 | --- a/python/mozbuild/mozbuild/util.py | 107 | --- a/python/mozbuild/mozbuild/util.py |
| 150 | +++ b/python/mozbuild/mozbuild/util.py | 108 | +++ b/python/mozbuild/mozbuild/util.py |
| 151 | @@ -231,17 +231,17 @@ class FileAvoidWrite(BytesIO): | 109 | @@ -236,7 +236,7 @@ class FileAvoidWrite(BytesIO): |
| 152 | enabled by default because it a) doesn't make sense for binary files b) | ||
| 153 | could add unwanted overhead to calls. | ||
| 154 | |||
| 155 | Additionally, there is dry run mode where the file is not actually written | ||
| 156 | out, but reports whether the file was existing and would have been updated | ||
| 157 | still occur, as well as diff capture if requested. | 110 | still occur, as well as diff capture if requested. |
| 158 | """ | 111 | """ |
| 159 | 112 | ||
| @@ -162,20 +115,11 @@ diff --git a/python/mozbuild/mozbuild/util.py b/python/mozbuild/mozbuild/util.py | |||
| 162 | BytesIO.__init__(self) | 115 | BytesIO.__init__(self) |
| 163 | self.name = filename | 116 | self.name = filename |
| 164 | assert type(capture_diff) == bool | 117 | assert type(capture_diff) == bool |
| 165 | assert type(dry_run) == bool | ||
| 166 | assert "r" in readmode | ||
| 167 | self._capture_diff = capture_diff | ||
| 168 | self._write_to_file = not dry_run | ||
| 169 | self.diff = None | ||
| 170 | diff --git a/python/mozbuild/mozpack/files.py b/python/mozbuild/mozpack/files.py | 118 | diff --git a/python/mozbuild/mozpack/files.py b/python/mozbuild/mozpack/files.py |
| 119 | index 1d8a1ed2d8..a295a67b5a 100644 | ||
| 171 | --- a/python/mozbuild/mozpack/files.py | 120 | --- a/python/mozbuild/mozpack/files.py |
| 172 | +++ b/python/mozbuild/mozpack/files.py | 121 | +++ b/python/mozbuild/mozpack/files.py |
| 173 | @@ -549,17 +549,17 @@ class PreprocessedFile(BaseFile): | 122 | @@ -554,7 +554,7 @@ class PreprocessedFile(BaseFile): |
| 174 | self.defines = defines | ||
| 175 | self.extra_depends = list(extra_depends or []) | ||
| 176 | self.silence_missing_directive_warnings = silence_missing_directive_warnings | ||
| 177 | |||
| 178 | def inputs(self): | ||
| 179 | pp = Preprocessor(defines=self.defines, marker=self.marker) | 123 | pp = Preprocessor(defines=self.defines, marker=self.marker) |
| 180 | pp.setSilenceDirectiveWarnings(self.silence_missing_directive_warnings) | 124 | pp.setSilenceDirectiveWarnings(self.silence_missing_directive_warnings) |
| 181 | 125 | ||
| @@ -184,17 +128,7 @@ diff --git a/python/mozbuild/mozpack/files.py b/python/mozbuild/mozpack/files.py | |||
| 184 | with _open(os.devnull, "w") as output: | 128 | with _open(os.devnull, "w") as output: |
| 185 | pp.processFile(input=input, output=output) | 129 | pp.processFile(input=input, output=output) |
| 186 | 130 | ||
| 187 | # This always yields at least self.path. | 131 | @@ -611,7 +611,7 @@ class PreprocessedFile(BaseFile): |
| 188 | return pp.includes | ||
| 189 | |||
| 190 | def copy(self, dest, skip_if_older=True): | ||
| 191 | """ | ||
| 192 | @@ -606,17 +606,17 @@ class PreprocessedFile(BaseFile): | ||
| 193 | return False | ||
| 194 | |||
| 195 | deps_out = None | ||
| 196 | if self.depfile: | ||
| 197 | deps_out = FileAvoidWrite(self.depfile) | ||
| 198 | pp = Preprocessor(defines=self.defines, marker=self.marker) | 132 | pp = Preprocessor(defines=self.defines, marker=self.marker) |
| 199 | pp.setSilenceDirectiveWarnings(self.silence_missing_directive_warnings) | 133 | pp.setSilenceDirectiveWarnings(self.silence_missing_directive_warnings) |
| 200 | 134 | ||
| @@ -203,9 +137,3 @@ diff --git a/python/mozbuild/mozpack/files.py b/python/mozbuild/mozpack/files.py | |||
| 203 | pp.processFile(input=input, output=dest, depfile=deps_out) | 137 | pp.processFile(input=input, output=dest, depfile=deps_out) |
| 204 | 138 | ||
| 205 | dest.close() | 139 | dest.close() |
| 206 | if self.depfile: | ||
| 207 | deps_out.close() | ||
| 208 | |||
| 209 | return True | ||
| 210 | |||
| 211 | |||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/riscv32.patch b/meta-oe/recipes-extended/mozjs/mozjs-102/riscv32.patch index fe9c332a00..a6a0a9edec 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/riscv32.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-102/riscv32.patch | |||
| @@ -1,11 +1,22 @@ | |||
| 1 | Add RISCV32 support | 1 | From 81385fe53ffde5e1636e9ace0736d914da8dbc0f Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 24 Oct 2021 22:32:50 -0700 | ||
| 4 | Subject: [PATCH] Add RISCV32 support | ||
| 2 | 5 | ||
| 3 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 5 | 8 | ||
| 9 | --- | ||
| 10 | build/moz.configure/init.configure | 3 +++ | ||
| 11 | python/mozbuild/mozbuild/configure/constants.py | 2 ++ | ||
| 12 | .../mozbuild/test/configure/test_toolchain_configure.py | 1 + | ||
| 13 | 3 files changed, 6 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure | ||
| 16 | index 0b7a2ff60f..54f8325b44 100644 | ||
| 6 | --- a/build/moz.configure/init.configure | 17 | --- a/build/moz.configure/init.configure |
| 7 | +++ b/build/moz.configure/init.configure | 18 | +++ b/build/moz.configure/init.configure |
| 8 | @@ -765,6 +765,9 @@ def split_triplet(triplet, allow_msvc=Fa | 19 | @@ -524,6 +524,9 @@ def split_triplet(triplet, allow_msvc=False, allow_wasi=False): |
| 9 | elif cpu.startswith("aarch64"): | 20 | elif cpu.startswith("aarch64"): |
| 10 | canonical_cpu = "aarch64" | 21 | canonical_cpu = "aarch64" |
| 11 | endianness = "little" | 22 | endianness = "little" |
| @@ -15,9 +26,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 15 | elif cpu in ("riscv64", "riscv64gc"): | 26 | elif cpu in ("riscv64", "riscv64gc"): |
| 16 | canonical_cpu = "riscv64" | 27 | canonical_cpu = "riscv64" |
| 17 | endianness = "little" | 28 | endianness = "little" |
| 29 | diff --git a/python/mozbuild/mozbuild/configure/constants.py b/python/mozbuild/mozbuild/configure/constants.py | ||
| 30 | index c71460cb20..15bef93e19 100644 | ||
| 18 | --- a/python/mozbuild/mozbuild/configure/constants.py | 31 | --- a/python/mozbuild/mozbuild/configure/constants.py |
| 19 | +++ b/python/mozbuild/mozbuild/configure/constants.py | 32 | +++ b/python/mozbuild/mozbuild/configure/constants.py |
| 20 | @@ -52,6 +52,7 @@ CPU_bitness = { | 33 | @@ -53,6 +53,7 @@ CPU_bitness = { |
| 21 | "mips64": 64, | 34 | "mips64": 64, |
| 22 | "ppc": 32, | 35 | "ppc": 32, |
| 23 | "ppc64": 64, | 36 | "ppc64": 64, |
| @@ -25,17 +38,19 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 25 | "riscv64": 64, | 38 | "riscv64": 64, |
| 26 | "s390": 32, | 39 | "s390": 32, |
| 27 | "s390x": 64, | 40 | "s390x": 64, |
| 28 | @@ -94,6 +95,7 @@ CPU_preprocessor_checks = OrderedDict( | 41 | @@ -95,6 +96,7 @@ CPU_preprocessor_checks = OrderedDict( |
| 29 | ("m68k", "__m68k__"), | 42 | ("m68k", "__m68k__"), |
| 30 | ("mips64", "__mips64"), | 43 | ("mips64", "__mips64"), |
| 31 | ("mips32", "__mips__"), | 44 | ("mips32", "__mips__"), |
| 32 | + ("riscv32", "__riscv && __riscv_xlen == 32"), | 45 | + ("riscv32", "__riscv && __riscv_xlen == 32"), |
| 33 | ("riscv64", "__riscv && __riscv_xlen == 64"), | 46 | ("riscv64", "__riscv && __riscv_xlen == 64"), |
| 47 | ("loongarch64", "__loongarch64"), | ||
| 34 | ("sh4", "__sh__"), | 48 | ("sh4", "__sh__"), |
| 35 | ("wasm32", "__wasm32__"), | 49 | diff --git a/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py b/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py |
| 50 | index 059cde0139..4f9986eb31 100644 | ||
| 36 | --- a/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py | 51 | --- a/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py |
| 37 | +++ b/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py | 52 | +++ b/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py |
| 38 | @@ -1186,6 +1186,7 @@ class LinuxCrossCompileToolchainTest(Bas | 53 | @@ -1192,6 +1192,7 @@ class LinuxCrossCompileToolchainTest(BaseToolchainTest): |
| 39 | "m68k-unknown-linux-gnu": big_endian + {"__m68k__": 1}, | 54 | "m68k-unknown-linux-gnu": big_endian + {"__m68k__": 1}, |
| 40 | "mips64-unknown-linux-gnuabi64": big_endian + {"__mips64": 1, "__mips__": 1}, | 55 | "mips64-unknown-linux-gnuabi64": big_endian + {"__mips64": 1, "__mips__": 1}, |
| 41 | "mips-unknown-linux-gnu": big_endian + {"__mips__": 1}, | 56 | "mips-unknown-linux-gnu": big_endian + {"__mips__": 1}, |
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91_91.13.0.bb b/meta-oe/recipes-extended/mozjs/mozjs-102_102.5.0.bb index 4c1aa3447a..a4d88a340a 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-91_91.13.0.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs-102_102.5.0.bb | |||
| @@ -11,15 +11,13 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/fire | |||
| 11 | file://fix-musl-build.patch \ | 11 | file://fix-musl-build.patch \ |
| 12 | file://0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch \ | 12 | file://0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch \ |
| 13 | file://riscv32.patch \ | 13 | file://riscv32.patch \ |
| 14 | file://0005-nojit-32bit-arch-fix.patch \ | ||
| 15 | file://0006-Fix-build-on-powerpc.patch \ | ||
| 16 | file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch \ | 14 | file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch \ |
| 17 | file://0001-rewrite-cargo-host-linker-in-python3.patch \ | 15 | file://0001-rewrite-cargo-host-linker-in-python3.patch \ |
| 18 | file://py-3.11.patch \ | 16 | file://py-3.11.patch \ |
| 19 | " | 17 | " |
| 20 | SRC_URI[sha256sum] = "53be2bcde0b5ee3ec106bd8ba06b8ae95e7d489c484e881dfbe5360e4c920762" | 18 | SRC_URI[sha256sum] = "017dd44b1285913f477074802707a4c76ed1a28270ec5a327bbb76574cc057d8" |
| 21 | 19 | ||
| 22 | S = "${WORKDIR}/firefox-${@d.getVar("PV").replace("esr", "")}" | 20 | S = "${WORKDIR}/firefox-${PV}" |
| 23 | 21 | ||
| 24 | inherit pkgconfig perlnative python3native rust | 22 | inherit pkgconfig perlnative python3native rust |
| 25 | 23 | ||
| @@ -67,12 +65,12 @@ do_install() { | |||
| 67 | 65 | ||
| 68 | inherit multilib_script multilib_header | 66 | inherit multilib_script multilib_header |
| 69 | 67 | ||
| 70 | MULTILIB_SCRIPTS += " ${PN}-dev:${bindir}/js91-config" | 68 | MULTILIB_SCRIPTS += " ${PN}-dev:${bindir}/js102-config" |
| 71 | 69 | ||
| 72 | do_install:append() { | 70 | do_install:append() { |
| 73 | oe_multilib_header mozjs-91/js-config.h | 71 | oe_multilib_header mozjs-102/js-config.h |
| 74 | sed -e 's@${STAGING_DIR_HOST}@@g' \ | 72 | sed -e 's@${STAGING_DIR_HOST}@@g' \ |
| 75 | -i ${D}${bindir}/js91-config | 73 | -i ${D}${bindir}/js102-config |
| 76 | rm -f ${D}${libdir}/libjs_static.ajs | 74 | rm -f ${D}${libdir}/libjs_static.ajs |
| 77 | } | 75 | } |
| 78 | 76 | ||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch b/meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch deleted file mode 100644 index f308b4863f..0000000000 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/0005-nojit-32bit-arch-fix.patch +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | Fix build when JIT is disabled on 32bit systems | ||
| 2 | |||
| 3 | This fixes a compile time assert | ||
| 4 | js/src/wasm/WasmFrame.cpp:57:3: error: static_assert failed due to requirement '(__builtin_offsetof(js::wasm::DebugFrame, frame_) + sizeof(js::wasm::Frame)) % Alignment == 0' "Aligned after pushing DebugFrame" | ||
| 5 | static_assert((offsetof(DebugFrame, frame_) + sizeof(Frame)) % Alignment == 0, | ||
| 6 | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | |||
| 11 | --- a/js/src/wasm/WasmFrame.h | ||
| 12 | +++ b/js/src/wasm/WasmFrame.h | ||
| 13 | @@ -230,6 +230,8 @@ class DebugFrame { | ||
| 14 | // Avoid -Wunused-private-field warnings. | ||
| 15 | protected: | ||
| 16 | #if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \ | ||
| 17 | + (defined(JS_CODEGEN_NONE) && \ | ||
| 18 | + (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__)) || \ | ||
| 19 | defined(JS_CODEGEN_X86) || defined(__wasi__) | ||
| 20 | // See alignmentStaticAsserts(). For MIPS32, ARM32 and X86 DebugFrame is only | ||
| 21 | // 4-byte aligned, so we add another word to get up to 8-byte | ||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch b/meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch deleted file mode 100644 index 80bf746e40..0000000000 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/0006-Fix-build-on-powerpc.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From 0e0548e3f95e22a39db8d5b934afe0672a3f801b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Mon, 1 Nov 2021 08:13:29 +0100 | ||
| 4 | Subject: [PATCH] Fix build on powerpc | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Another fix for (this time JIT enabled) | ||
| 10 | | <...>/irefox-91.2.0/js/src/wasm/WasmFrame.cpp:57:76: error: static assertion failed: Aligned after pushing DebugFrame | ||
| 11 | | 57 | static_assert((offsetof(DebugFrame, frame_) + sizeof(Frame)) % Alignment == 0, | ||
| 12 | | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ | ||
| 13 | |||
| 14 | Upstream-Status: Pending | ||
| 15 | |||
| 16 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 17 | --- | ||
| 18 | js/src/wasm/WasmFrame.h | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/js/src/wasm/WasmFrame.h b/js/src/wasm/WasmFrame.h | ||
| 22 | index 893762e..2d90656 100644 | ||
| 23 | --- a/js/src/wasm/WasmFrame.h | ||
| 24 | +++ b/js/src/wasm/WasmFrame.h | ||
| 25 | @@ -232,7 +232,7 @@ class DebugFrame { | ||
| 26 | #if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \ | ||
| 27 | (defined(JS_CODEGEN_NONE) && \ | ||
| 28 | (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__)) || \ | ||
| 29 | - defined(JS_CODEGEN_X86) || defined(__wasi__) | ||
| 30 | + defined(JS_CODEGEN_X86) || defined(__wasi__) || defined(__powerpc__) | ||
| 31 | // See alignmentStaticAsserts(). For MIPS32, ARM32 and X86 DebugFrame is only | ||
| 32 | // 4-byte aligned, so we add another word to get up to 8-byte | ||
| 33 | // alignment. | ||
| 34 | -- | ||
| 35 | 2.31.1 | ||
| 36 | |||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91/fix-musl-build.patch b/meta-oe/recipes-extended/mozjs/mozjs-91/fix-musl-build.patch deleted file mode 100644 index c0834af589..0000000000 --- a/meta-oe/recipes-extended/mozjs/mozjs-91/fix-musl-build.patch +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | Upstream: No | ||
| 2 | Reason: mozjs60 miscompiles on musl if built with HAVE_THREAD_TLS_KEYWORD: | ||
| 3 | https://github.com/void-linux/void-packages/issues/2598 | ||
| 4 | --- a/js/src/old-configure.in | ||
| 5 | +++ b/js/src/old-configure.in | ||
| 6 | @@ -1072,6 +1072,9 @@ if test "$ac_cv_thread_keyword" = yes; t | ||
| 7 | *-android*|*-linuxandroid*) | ||
| 8 | : | ||
| 9 | ;; | ||
| 10 | + *-musl*) | ||
| 11 | + : | ||
| 12 | + ;; | ||
| 13 | *) | ||
| 14 | AC_DEFINE(HAVE_THREAD_TLS_KEYWORD) | ||
| 15 | ;; | ||
