meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs-128/0011-Link-with-icu-uc-to-fix-build-with-ICU-76.patch
Ankur Tyagi 30942cebe8
mozjs-128: Fix build error with arm and musl
Build fails for qemuarm with musl with following error:
mozglue/misc/StackWalk.o: in function `unwind_callback(_Unwind_Context*, void*)':
| /usr/src/debug/mozjs-128/128.5.2/mozglue/misc/StackWalk.cpp:810:(.text._ZL15unwind_callbackP15_Unwind_ContextPv+0x4): undefined reference to `_Unwind_GetIP'

Referenced commit[1] for the fix, also refreshed patches.

[1] bb86629123

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-12 08:53:46 -08:00

28 lines
873 B
Diff

From 8290fd619582651334fbfdfe7be887d539ce0f2c Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 23 Nov 2024 13:28:33 -0800
Subject: [PATCH] Link with icu-uc to fix build with ICU-76
Fixes
https://bugzilla.mozilla.org/show_bug.cgi?id=1927380
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
js/moz.configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/moz.configure b/js/moz.configure
index 593b93acee..2181dca34b 100644
--- a/js/moz.configure
+++ b/js/moz.configure
@@ -1305,7 +1305,7 @@ def enable_system_icu_option(enable_system_icu):
return enable_system_icu
-system_icu = pkg_check_modules("MOZ_ICU", "icu-i18n >= 73.1", when="--with-system-icu")
+system_icu = pkg_check_modules("MOZ_ICU", "icu-i18n >= 73.1 icu-uc", when="--with-system-icu")
@depends(enable_system_icu_option)