Skip to contentSkip to conversation

mozjs-78: Check for big-endian icu data file existence before creating it

PATCH Andreas Müller 1 participant 2 messages Nov 1, 2021 2 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 20 lines · Khem Raj
---
 .../meta-python/recipes-extended/mozjs/mozjs-78_78.15.0.bb      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78_78.15.0.bb +1 -2
index f4a6872b62..56d8054800 100644
@@ -106,7 +106,7 @@ do_configure() {
     # inspired by what fedora [1] does: for big endian rebuild icu dat
     # this avoids gjs qemu crash on mips at gir creation
     # [1] https://src.fedoraproject.org/rpms/mozjs78/blob/rawhide/f/mozjs78.spec
-    if [ ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} = "big" ]; then
+    if [ ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} = "big" -a ! -e ${S}/config/external/icu/data/icudt67b.dat ]; then
         echo "Do big endian icu dat-convert..."
         icupkg -tb ${S}/config/external/icu/data/icudt67l.dat ${S}/config/external/icu/data/icudt67b.dat
         rm -f ${S}/config/external/icu/data/icudt*l.dat
--
Quoted 1 line

2.33.1

Sure on re-configure - Thanks

Andreas

#3 lore raw

Re: [oe] [meta-oe][PATCH 2/2] mozjs-78: Set X lib/include paths

In reply to a message not in the archive

* Wonder why I did not see this. Configure just says 'checking for X... no'. And my host has a running X.
* Found a solution to fix my incorrect assumptions with llvm-objdump

Once gjs has passed build I'll send out on top of master-next

Andreas