diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-09-25 12:02:42 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-25 16:16:31 -0700 |
commit | ee100d192dc466eefae420e5e9cf23b74d44562d (patch) | |
tree | f99f8f3279677fe534934b2fb3f0c8be17ed3463 | |
parent | 5804b39df5866fbb0d6cfbb4203a101388a4c981 (diff) | |
download | meta-openembedded-ee100d192dc466eefae420e5e9cf23b74d44562d.tar.gz |
mozjs-115: Apply autoconf tuple mismatch fix
Fixes
DEBUG: | Invalid configuration `riscv64gc-yoe-linux-gnu': machine `riscv64gc-yoe' not recognized
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-115/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch | 25 | ||||
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb | 1 |
2 files changed, 21 insertions, 5 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-115/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch b/meta-oe/recipes-extended/mozjs/mozjs-115/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch index fe905fe4dd..38496ea56c 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-115/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs-115/0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch | |||
@@ -14,16 +14,31 @@ Signed-off-by: Alexander Kanavin <alex@linutronix.de> | |||
14 | build/moz.configure/init.configure | 2 +- | 14 | build/moz.configure/init.configure | 2 +- |
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
16 | 16 | ||
17 | diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure | ||
18 | index 81f500a0b7..0b7a2ff60f 100644 | ||
19 | --- a/build/moz.configure/init.configure | 17 | --- a/build/moz.configure/init.configure |
20 | +++ b/build/moz.configure/init.configure | 18 | +++ b/build/moz.configure/init.configure |
21 | @@ -585,7 +585,7 @@ def help_host_target(help, host, target): | 19 | @@ -647,24 +647,7 @@ def help_host_target(help, host, target) |
22 | 20 | ||
23 | def config_sub(shell, triplet): | 21 | def config_sub(shell, triplet): |
24 | config_sub = os.path.join(os.path.dirname(__file__), "..", "autoconf", "config.sub") | 22 | config_sub = os.path.join(os.path.dirname(__file__), "..", "autoconf", "config.sub") |
25 | - return check_cmd_output(shell, config_sub, triplet).strip() | 23 | - # Config.sub doesn't like the *-windows-msvc/*-windows-gnu triplets, so |
24 | - # munge those before and after calling config.sub. | ||
25 | - suffix = None | ||
26 | - munging = { | ||
27 | - "-windows-msvc": "-mingw32", | ||
28 | - "-windows-gnu": "-mingw32", | ||
29 | - } | ||
30 | - for check_suffix, replacement in munging.items(): | ||
31 | - if triplet.endswith(check_suffix): | ||
32 | - suffix = check_suffix | ||
33 | - triplet = triplet[: -len(suffix)] + replacement | ||
34 | - break | ||
35 | - result = check_cmd_output(shell, config_sub, triplet).strip() | ||
36 | - if suffix: | ||
37 | - assert result.endswith(replacement) | ||
38 | - result = result[: -len(replacement)] + suffix | ||
39 | - return result | ||
40 | - | ||
26 | + return triplet | 41 | + return triplet |
27 | 42 | ||
28 | |||
29 | @depends("--host", shell) | 43 | @depends("--host", shell) |
44 | @checking("for host system type", lambda h: h.alias) | ||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb b/meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb index 799b8abd90..babe39822a 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb | |||
@@ -9,6 +9,7 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/fire | |||
9 | file://0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch \ | 9 | file://0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch \ |
10 | file://0004-use-asm-sgidefs.h.patch \ | 10 | file://0004-use-asm-sgidefs.h.patch \ |
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://riscv32.patch \ | 13 | file://riscv32.patch \ |
13 | file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch \ | 14 | file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch \ |
14 | file://0001-rewrite-cargo-host-linker-in-python3.patch \ | 15 | file://0001-rewrite-cargo-host-linker-in-python3.patch \ |