aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs
Commit message (Collapse)AuthorAgeFilesLines
* mozjs: Avoid use of X11 from host when X11 is disabledstable/thud-nmutstable/thud-nextOtavio Salvador2019-02-031-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> Signed-off-by: Armin Kuster <akuster808@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>
* mozjs: Fix build with gcc7Khem Raj2017-04-263-41/+46
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Make use of the new bb.utils.filter() functionPeter Kjellerstedt2017-03-071-1/+1
| | | | | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: fix crash on non-x86 64 bit systemsKoen Kooi2016-09-262-0/+116
| | | | | | | Mozjs is mozillaware, meaning that it barely works on x86 and is plain broken on everything else. This time mozjs assumes that noone will ever have more than 47bit for VA, breaking aarch64 which can have more. Thanks to polkit developers using mozjs systemd will crash early during boot when using polkit. Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta-oe: remove trailing spacesMartin Jansa2016-08-221-2/+2
| | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta-oe: Standardize use of "_append" versus use of "+="Robert P. J. Day2016-08-221-1/+1
| | | | | | | Remove superfluous "+=", then manually add necessary leading space. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: Fix incorrect usage of PN.Jeremy Puhlman2016-08-081-2/+2
| | | | | | | | | | | | When building mutlilib, using ${PN} in the middle of the package name creates incorrect package names: lib32-liblib32-mozjs lib32-liblib32-mozjs.shlibdeps Which in turn breaks license.bbclass during image creation. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: fix configure host contaminationMark Asselstine2016-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | When building mozjs the following error was observed | Traceback (most recent call last): | File "./config.status", line 9, in <module> | from ConfigStatus import config_status | File "/build/bitbake_build/tmp/work/corei7-64-wrs-linux/mozjs/17.0.0-r0/mozjs17.0.0/js/src/build/ConfigStatus.py", line 11, in <module> | import sys, re, os, posixpath, ntpath | File "/usr/lib/python2.7/ntpath.py", line 15, in <module> | from genericpath import _unicode | ImportError: cannot import name _unicode | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_configure (log file is located at /build//bitbake_build/tmp/work/corei7-64-wrs-linux/mozjs/17.0.0-r0/temp/do_configure/log.do_configure.1056 Note the host paths found in the error msg. Further this issue can be explored using the host python, which will not error when attempting the above import, and the python in the sysroot, which will fail when we attempt the import. By inheriting pythonnative we ensure the proper paths are set to avoid this host contamination. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs_17.0.0.bb: Fix do_srpm errorLi xin2016-04-281-9/+3
| | | | | | | | The function do_sourceclean() will lead to do_srpm failed, so use do_unpack instead. Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: fix armeb buildsKoen Kooi2016-04-282-0/+27
| | | | | | | The mozjs builds fails on armeb, so add a define to make it work. Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: fix linking issues on i586Maciej Borzecki2016-01-142-0/+47
| | | | | | | | | | When building for qemux86 on a x86 host, there's a possibility that the build will try to link with incorrect libraries. Due to problematic -rpath-link the linker may try to use host libraries if they are present and are arch compatible. Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: add PACKAGECONFIG for x11Jackie Huang2015-09-231-0/+3
| | | | | | | | | | Add PACKAGECONFIG for x11 and enable it when x11 is included in DISTRO_FEATURES, and specify the correct path for x-includes and x-libraries to avoid searching the host libraries. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: fix lib soname issueArmin Kuster2015-07-302-0/+21
| | | | | | | | | | | | | | | | | | | polkit failed to build do to missing mozjs libs. The libs created are: libmozjs-..a libmozjs-..so this was caused by a perl script error Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at config/milestone.pl line 58. this script is use to determine the major and minor lib versions. I believe this issue is do to the recent perl update. this fixes the lib creation error and polkit build error. I am not a perl person so this may not be the idea fix. Signed-off-by: Armin Kuster <akuster808@gmail.com> Acked-By: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* gegl, crash, libsecret, mpg123, tinymembench, gammu, mosh, llvm3.3, ↵Martin Jansa2015-07-161-0/+9
| | | | | | breakpad, php, mozjs, libopus: disable thumb where it fails for qemuarm Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: fix PN -> BPN for multilibYi Zhao2015-05-131-2/+2
| | | | | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: fix the compile error of powerpc64Chunrong Guo2015-05-112-0/+19
| | | | | | | | fix the following error |error: 'jsuword' does not name a type Signed-off-by: Chunrong Guo <B40290@freescale.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: disable methodjit for armv4Dmitry Eremin-Solenikov2015-04-211-0/+3
| | | | | | | | methodjit uses assembler instructions which are not available on armv4 architecture. Disable methodjit for it. Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs 17.0.0: fix aarch64 and 64k page builds, generic cleanupsKoen Kooi2015-03-066-3/+3562
| | | | | | | | | | | | | | | * Mozjs17 has problems with 64k page sizes (powerpc64, aarch64 and probably others) and lacks support for aarch64. Patches were lifted from the fedora src rpm and rediffed. * Regenerate configure with autoconf-2.13 to make the fixes mentioned above take effect. * Provide proper config.guess and config.sub files * Explicitly disable static builds and regroup configure options. * Also clean out the patches/ dir present in the tarball to avoid conflicts with the OE patcher. Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs_17.0.0: Fix build error in powerpc(e500v2)leimaohui2015-02-122-0/+37
| | | | | | | | | | | To fix the bug as following error: cannot convert '__va_list_tag**' to '__va_list_tag (*)[1]' for argument '5' to 'JSBool TryArgumentFormatter(JSContext*, const char**, JSBool, jsval**, __va_list_tag (*)[1])' Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: Add missing zlib dependencyRichard Purdie2014-07-221-1/+1
| | | | | | | Avoids a QA warning. In reality zlib is likely nearly always built before mozjs. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta-oe: use BPN in SRC_URIRobert Yang2014-07-151-1/+1
| | | | | | | | | | | | Fixed SRC_URI: * ${PN} -> ${BPN}, use ${BP} if it was ${PN}-${PV} * ${P} -> ${BP} Otherwise we would meet do_fetch errors when we do the multilib, native or nativesdk build. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: Fix build when B != SKhem Raj2014-05-031-1/+1
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: Fix QA errors when building with multilibKhem Raj2014-01-221-0/+1
| | | | | | | | | | | | | | | | | | | | We do not take care of default libdir which accidently works out to be ok for non-multilib case since its /usr/lib Fixes error like ERROR: QA Issue: mozjs: Files/directories were installed but not shipped /usr/lib /usr/lib/libmozjs-17.0.a /usr/lib/libmozjs-17.0.so /usr/lib/pkgconfig /usr/lib/.debug /usr/lib/pkgconfig/mozjs-17.0.pc /usr/lib/.debug/libmozjs-17.0.so Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* mozjs: initial add 17.0.0Andreas Müller2013-06-202-0/+70
later versions of polkit will need it Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>