summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs
Commit message (Collapse)AuthorAgeFilesLines
* meta-oe: fix Upstream-Status formatYi Zhao2023-02-241-1/+1
| | | | | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: fix compile error for armKai Kang2023-01-132-0/+26
| | | | | | | | | | | | | | | | Backport patch from firefox bugzilla to fix compile error for qemuarm with some armv7ve tunes such as 'armv7vethf' and 'armv7vet-vfpv3d16': | /path/to/build/tmp/work/armv7vet2hf-vfp-poky-linux-gnueabi/mozjs-102/102.5.0-r0/build/js/src/jit/AtomicOperationsGenerated.h:240:17: error: 'asm' operand has impossible constraints | 240 | asm volatile ( | | ^~~ Ref: * https://bugzilla.mozilla.org/show_bug.cgi?id=1761665 Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-102: Disable mozilla stackwalk on muslKhem Raj2022-12-312-0/+19
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: update 98 -> 102Markus Volk2022-11-2814-217/+118
| | | | | Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-91: backport a python 3.11 compatibility patchAlexander Kanavin2022-09-142-0/+212
| | | | | Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-91: update to 91.13.0Alexander Kanavin2022-09-141-1/+1
| | | | | Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Use RUST_HOST_SYS and RUST_TARGET_SYSKhem Raj2022-08-081-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Use vendored icu on ppc/clangKhem Raj2022-04-251-0/+2
| | | | | | | This helps compile gjs, external icu is needed with gcc-12 but not with clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-91: Add option to use system ICUKhem Raj2022-04-211-4/+6
| | | | | | | | | | | | ARM needs to use system icu, otherwise build fails with gcc-12 firefox-91.8.0/intl/icu/source/common/stringtriebuilder.cpp:388: more undefined references to `std::type_info::operator==(std::type_info const&) const' follow | collect2: error: ld returned 1 exit status Keep using vendored ICU on mips since this breaks build for gjs introspection code which is run under qemu-user Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-91: Disable stripKhem Raj2022-04-211-0/+1
| | | | | | OE build takes care of this during packaging anyway Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-91: Upgrade to 91.8.0Khem Raj2022-04-201-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: upgrade 91.2.0 -> 91.4.0Wang Mingyu2021-12-131-1/+1
| | | | | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-91/mozjs-78: fix compile failure on centos7Changqing Li2021-11-192-0/+57
| | | | | | | | | | | | | | | | | | Mozjs compile failed with this failure: /bin/sh: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /build/tmp-glibc/work/corei7-64-wrs-linux/mozjs/91.1.0-r0/recipe-sysroot-native/usr/lib/libtinfo.so.5) Root Cause: cargo-host-linker has /bin/sh as it's interpreter, but cargo run the cmd with LD_LIBRARY_PATH set to recipe-sysroot-native. The host /bin/sh links libtinfo.so.5 under recipe-sysroot-native, which needs higher libc. But host libc is older libc. So the incompatible problem occurred. Solution: rewrite cargo-host-linker in python3 Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-91: fix do_configure failureChangqing Li2021-11-132-0/+51
| | | | | | | | | | | | do_configure fails occasionally with following error: | File "/firefox-91.1.0/build/moz.configure/util.configure", line 239, in try_invoke_compiler | os.remove(path) | FileNotFoundError: [Errno 2] No such file or directory: '/tmp/conftest.jr1qrcw3.cpp' change the temp file's prefix to avoid it is deleted by others Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-91: Fix build on powerpcAndreas Müller2021-11-033-1/+38
| | | | | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs-91: remove static libraryAndreas Müller2021-11-031-5/+5
| | | | | | | | | * it is a huge chunk of 1.2GB * it is not used * it conflicts with other versions of mozjs since there is no version in name Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Rename mozjs -> mozjs-91 to allow multiple versions of mozjsAndreas Müller2021-11-039-0/+0
| | | | | | | | * We need mozjs-78 for latest stable gjs * Other distros/packagers do same Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Move back to recipes-extended - no meta-python specifics requiredAndreas Müller2021-11-039-0/+352
| | | | | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* conf/layer.conf: add BBFILES_DYNAMIC and dynamic layersChangqing Li2020-03-1118-7732/+0
| | | | | | | | | | | | | | | | | | | | | | | | some recipes under meta-oe have dependency on meta-python, and test_world of yocto-check-layer will failed with error like: ERROR: test_world (common.CommonCheckLayer) ERROR: Nothing PROVIDES 'python3-pytoml-native' (but /meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb DEPENDS on or otherwise requires it). Close matches: python3-numpy-native python3-pycairo-native python3-rpm-native ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'mozjs', 'python3-pytoml-native'] fix by make these recipes only active when identified layers are present Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Fix python3 build with goldAndreas Müller2020-02-111-1/+10
| | | | | | | | | Fixes [1] [1] http://errors.yoctoproject.org/Errors/Details/390559/ Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: port build to python3Andreas Müller2020-02-0218-27/+6917
| | | | | | | | | | While at it: * cleanup our patches * remove useless sed in do_configure Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: search nspr header files in ${STAGING_INCDIR}/nspr directoryMartin Jansa2020-01-271-0/+1
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Replace using BBPATH with BBFILE_COLLECTIONS for meta-python2 checkKhem Raj2020-01-221-1/+1
| | | | | | BBPATH check actually does not work Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Turn inherit classes from meta-py2 to conditional constructsKhem Raj2020-01-221-1/+1
| | | | | | helps parsing without meta-py2 in mix Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: upgrade 60.5.2 -> 60.9.0 and reworkAndreas Müller2020-01-224-88/+45
| | | | | | | | * build with firefox-esr sources to simplyfy upgrade path * cleanup: Should make python2-> python3 transition easier Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: extend --with-intl-api=build to ppcKhem Raj2020-01-161-0/+1
| | | | | | | | | | This fixes mozjs crash, in launching js in qemu during gjs build Fixes | | (process:606857): Gjs-ERROR **: 02:02:06.039: Could not initialize Javascript Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: extend --with-intl-api=build to all mipsKhem Raj2019-12-131-1/+1
| | | | | | | | | | | This fixes mozjs crash, in launching js in qemu during gjs build Fixes | | (process:606857): Gjs-ERROR **: 02:02:06.039: Could not initialize Javascript Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andreas Müller <schnitzeltony@gmail.com>
* recipes: rename distro_features_check to features_checkDenys Dmytriyenko2019-11-211-1/+1
| | | | | | | Avoid warning due to the class rename in OE-Core. Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: do not expose intl api for mips64Slater, Joseph2019-08-081-0/+3
| | | | | | | | Add --with-intl-api=build to configure options. Otherwise, JS_Init() will fail. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: fix configure failure on CentOS 7.6Kai Kang2019-07-102-0/+43
| | | | | | | | | | | | | | Option '-std=gnu++14' has been supported from gcc 4.9. But on some build hosts such as CentOS 7.6 which only has gcc 4.8.5 and fails to configure: | checking whether the host C compiler can be used... no | ERROR: Only GCC 4.9 or newer is supported (found version 4.8.5). Fallback to 2011 C++ standard and lower required gcc version to 4.8.0 which is the same as in previous version 52.9.1 of mozjs. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Fix do_patch error for mips64-n32Mingli Yu2019-06-191-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After mozjs upgrade to 60.5.2 in below commit: 9ca3aad9c mozjs: Upgrade to version 60.x With below logic in local.conf: MACHINE ??= "qemumips64" MULTILIB_GLOBAL_VARIANTS_append = " libn32" MULTILIBS ?= "multilib:lib32 multilib:libn32" DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips" DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32" require conf/multilib.conf $ bitbake libn32-mozjs -cpatch | NOTE: Applying patch '0001-fix-compiling-failure-on-mips64-n32-bsp.patch' (../layers/meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs/0001-fix-compiling-failure-on-mips64-n32-bsp.patch) | ERROR: Command Error: 'quilt --quiltrc TOPDIR/tmp/work/mips64-n32-wrsmllibn32-linux-gnun32/libn32-mozjs/60.5.2-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output: | Applying patch 0001-fix-compiling-failure-on-mips64-n32-bsp.patch | patching file build/moz.configure/init.configure | patching file js/src/jit/mips-shared/Architecture-mips-shared.h | Hunk #1 succeeded at 28 with fuzz 2 (offset 2 lines). | Hunk #2 FAILED at 95. | 1 out of 2 hunks FAILED -- rejects in file js/src/jit/mips-shared/Architecture-mips-shared.h | patching file python/mozbuild/mozbuild/configure/constants.py | Patch 0001-fix-compiling-failure-on-mips64-n32-bsp.patch does not apply (enforce with -f) Rework 0001-fix-compiling-failure-on-mips64-n32-bsp.patch to fix the above do_patch error. Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Upgrade to version 60.xKhem Raj2019-05-2914-285/+188
| | | | | | | | | | | | Disable JIT (ion) on all mips It fails to compile in first place, even if we fix the compilation next it assert failures and runtime test failures, its best to disable it for mips for now Fix build on riscv Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Make mozjs support arm32BE.leimaohui2019-05-102-0/+29
| | | | | | | | | Fixed a build error on arm32BE. Upstream-Status: Pending Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Fix cross-builds of nsinstallKhem Raj2019-02-261-2/+8
| | | | | | | | | | | nsinstall must be built for host, so we need to define HOST_* compiler defines so, it gets built using native compiler correctly Disable stripping, OE will do it Disable optimizing, set BUILD_OPT Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Fix symbol visibility with clang/libc++Khem Raj2019-01-302-0/+38
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Remove -Werror=format from CXXFLAGSKhem Raj2018-12-232-0/+22
| | | | | | | This is to make way for gcc9 since it spews some extra warnings which need to be eventually fixed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Avoid use of X11 from host when X11 is disabledOtavio Salvador2018-11-281-1/+1
| | | | | | | | | The mozjs build system makes use of host headers and libraries if not passed an invalid path for `--x-includes` and `--x-libraries`. This fixes host contamination while building in a development host. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: upgrade to 52.9.1Hong Liu2018-09-251-3/+3
| | | | | | | | | | Upgrade mozjs from 52.8.1 to 52.9.1 Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com> renamed: mozjs_52.8.1.bb -> mozjs_52.9.1.bb Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: disable null pointer optimization with GCC >= 6Ricardo Salveti2018-08-191-0/+5
| | | | | | | | | | | | Mozjs fails to start on several architectures due broken build optimizations when built with GCC >= 6. Set -fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks to both CFLAGS and CXXFLAGS as workaround (flags also used by Firefox and Fedora). Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: tweak location of tmp dir creationHongxu Jia2018-08-031-0/+1
| | | | | | | | | | | | | | | | | | The tmp dir creation is out of build dir which has the risk to be broken by others. ... | File "build/tmp-glibc/work/i586-wrs-linux/mozjs/52.8.1-r0/ mozjs-52.8.1/build/moz.configure/util.configure", line 190, in try_invoke_compiler | os.remove(path) | OSError: [Errno 2] No such file or directory: '/tmp/conftest.OiV37V.cpp' ... Set var-TMP for tempfile.mktemp to use current build dir to replace default `/tmp'. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: fix coredump caused by wrong use of getenvChangqing Li2018-08-022-0/+28
| | | | | | | | getenv need include header stdlib.h, or an assumed int return for getenv to char * pointer will tripping up the code Signed-off-by: Changqing Li <changqing.li@windriver.com>
* mozjs: add support for RISC-VRicardo Salveti2018-08-022-0/+71
| | | | | | | | Based on pending patch that was already submitted at https://bugzilla.mozilla.org/show_bug.cgi?id=1318905. Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: disable MOZ_GLUE_IN_PROGRAM in standalone buildsRicardo Salveti2018-07-272-0/+75
| | | | | | | | | | Otherwise anyone consuming mozjs will fail to start with a segmentation fault (e.g. polkitd). Patch also used by Fedora and Debian. Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: add support for mips64-n32Hongxu Jia2018-07-202-0/+86
| | | | | | | | | | | | - Tweak configure for mips64-n32 - Disable gold linker which not supported by mips64-n32 - Since n32 and n64 use the same registers, add n32 to n64's register definition. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: 17.0.0 -> 52.8.1Hongxu Jia2018-07-1621-5709/+514
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactor recipe 52.8.1 0001 ~ 0006 - Rebase patches to 52.8.1; 0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch 0010-fix-cross-compilation-on-i586-targets.patch' - Drop 0001-regenerate-configure.patch and everything works well - Drop Manually_mmap_heap_memory_esr17.patch which is backported - Drop obsolete patches 0001-compare-the-first-character-of-string-to-be-null-or-.patch 0001-mozjs17.0.0-fix-the-compile-bug-of-powerpc.patch 0002-Move-JS_BYTES_PER_WORD-out-of-config.h.patch 0004-mozbug746112-no-decommit-on-large-pages.patch 0005-aarch64-64k-page.patch fix_milestone_compile_issue.patch fix-the-compile-error-of-powerpc64.patch Update-Double-Conversion.patch and Update-the-double-conversion-update-script.patch - Set DISABLE_STATIC = "" to build without option `--disable-static' - Set musl patch (0006-support-musl.patch) with musl override. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Update Double-Conversion inside mozjsAlistair Francis2018-06-204-77/+1909
| | | | | | | | Update the Double-Conversion source inside mozjs to add support for more architectures. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: refresh patch Manually_mmap_heap_memory_esr17.patchAndreas Müller2018-04-081-8/+5
| | | | | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* mozjs: Add HOMEPAGE info into recipe file.Huang Qiyu2017-09-181-0/+1
| | | | | Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: customize HOST_CFLAGSMingli Yu2017-08-281-0/+3
| | | | | | | | | | | | | | | Customize HOST_CFLAGS, HOST_CXXFLAGS and HOST_LDFLAGS to fix do_configure error as previously use the common CFLAGS and CXXFLAGS in both cross-compile env and host env, and the option -fstack-protector-strong which not recognized in host env can result in do_configure error as below. | checking whether the host c compiler (gcc -O2 -pipe -g -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now) works... configure: error: installation or configuration problem: host compiler gcc cannot create executables. Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: prevent target CFLAGS etc being passed to the hostAndre McCurdy2017-04-261-0/+5
| | | | | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>