summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2020-02-01 17:37:00 +0100
committerKhem Raj <raj.khem@gmail.com>2020-02-02 08:08:09 -0800
commit23eb06562dd82e6ee6d4dfcfb55cf41f5e4027ba (patch)
tree1beb3a14cec994cf7cfc4c2033682c49d0513677 /meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb
parent6e936c45d498825aacbac3d8945f7727cfa68061 (diff)
downloadmeta-openembedded-23eb06562dd82e6ee6d4dfcfb55cf41f5e4027ba.tar.gz
mozjs: port build to python3
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>
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb')
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb56
1 files changed, 29 insertions, 27 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb b/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb
index 4f2da492fb..9466c62aac 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb
@@ -3,42 +3,45 @@ HOMEPAGE = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonk
3LICENSE = "MPL-2.0" 3LICENSE = "MPL-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=dc9b6ecd19a14a54a628edaaf23733bf" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=dc9b6ecd19a14a54a628edaaf23733bf"
5 5
6SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/firefox-${PV}esr.source.tar.xz \ 6SRC_URI = " \
7 file://0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch \ 7 https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/firefox-${PV}esr.source.tar.xz \
8 file://0010-fix-cross-compilation-on-i586-targets.patch \ 8 file://0001-Port-build-to-python3.patch \
9 file://0001-do-not-create-python-environment.patch \ 9 file://0002-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch \
10 file://0002-fix-cannot-find-link.patch \ 10 file://0003-fix-cross-compilation-on-i586-targets.patch \
11 file://0003-workaround-autoconf-2.13-detection-failed.patch \ 11 file://0004-do-not-create-python-environment.patch \
12 file://0005-fix-do_compile-failed-on-mips.patch \ 12 file://0005-fix-cannot-find-link.patch \
13 file://add-riscv-support.patch \ 13 file://0006-workaround-autoconf-2.13-detection-failed.patch \
14 file://0001-mozjs-fix-coredump-caused-by-getenv.patch \ 14 file://0007-fix-do_compile-failed-on-mips.patch \
15 file://format-overflow.patch \ 15 file://0008-add-riscv-support.patch \
16 file://0001-To-fix-build-error-on-arm32BE.patch \ 16 file://0009-mozjs-fix-coredump-caused-by-getenv.patch \
17 file://JS_PUBLIC_API.patch \ 17 file://0010-format-overflow.patch \
18 file://0001-riscv-Disable-atomic-operations.patch \ 18 file://0011-To-fix-build-error-on-arm32BE.patch \
19 file://fallback-to-2011-C++-standard.patch \ 19 file://0012-JS_PUBLIC_API.patch \
20 " 20 file://0013-riscv-Disable-atomic-operations.patch \
21 file://0014-fallback-to-2011-C++-standard.patch \
22"
21SRC_URI_append_libc-musl = " \ 23SRC_URI_append_libc-musl = " \
22 file://0006-support-musl.patch \ 24 file://musl/0001-support-musl.patch \
23 file://0001-js-Fix-build-with-musl.patch \ 25 file://musl/0002-js-Fix-build-with-musl.patch \
24 " 26"
25SRC_URI_append_mipsarchn32 = " \ 27SRC_URI_append_mipsarchn32 = " \
26 file://0001-fix-compiling-failure-on-mips64-n32-bsp.patch \ 28 file://mipsarchn32/0001-fix-compiling-failure-on-mips64-n32-bsp.patch \
27 " 29"
28SRC_URI[md5sum] = "69a0be9ce695e5dc4941ed0c78ef00c2" 30SRC_URI[md5sum] = "69a0be9ce695e5dc4941ed0c78ef00c2"
29SRC_URI[sha256sum] = "9f453c8cc5669e46e38f977764d49a36295bf0d023619d9aac782e6bb3e8c53f" 31SRC_URI[sha256sum] = "9f453c8cc5669e46e38f977764d49a36295bf0d023619d9aac782e6bb3e8c53f"
30 32
31S = "${WORKDIR}/firefox-${@d.getVar("PV").replace("esr", "")}" 33S = "${WORKDIR}/firefox-${@d.getVar("PV").replace("esr", "")}"
32 34
33inherit autotools pkgconfig perlnative ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "pythonnative", "", d)} 35inherit autotools pkgconfig perlnative python3native
34 36
35inherit features_check 37inherit features_check
36CONFLICT_DISTRO_FEATURES_mipsarchn32 = "ld-is-gold" 38CONFLICT_DISTRO_FEATURES_mipsarchn32 = "ld-is-gold"
37 39
38DEPENDS += "nspr zlib autoconf-2.13-native \ 40DEPENDS += " \
39 python-six-native python-pytoml-native \ 41 nspr zlib autoconf-2.13-native \
40 python-jsmin-native python-futures-native \ 42 python3-six-native python3-pytoml-native \
41 python-which-native" 43 python3-jsmin-native python3-six \
44"
42 45
43# Disable null pointer optimization in gcc >= 6 46# Disable null pointer optimization in gcc >= 6
44# https://bugzilla.redhat.com/show_bug.cgi?id=1328045 47# https://bugzilla.redhat.com/show_bug.cgi?id=1328045
@@ -82,7 +85,7 @@ do_configure() {
82 export SHELL="/bin/sh" 85 export SHELL="/bin/sh"
83 cd ${S} 86 cd ${S}
84 # Add mozjs python-modules necessary 87 # Add mozjs python-modules necessary
85 PYTHONPATH="$PYTHONPATH:${S}/config:${S}/build" 88 PYTHONPATH="${S}/third_party/python/which:${S}/config:${S}/build"
86 for sub_dir in python testing/mozbase; do 89 for sub_dir in python testing/mozbase; do
87 for module_dir in `ls $sub_dir -1`;do 90 for module_dir in `ls $sub_dir -1`;do
88 [ $module_dir = "virtualenv" ] && continue 91 [ $module_dir = "virtualenv" ] && continue
@@ -96,7 +99,6 @@ do_configure() {
96 99
97 cd ${S}/js/src 100 cd ${S}/js/src
98 autoconf213 --macrodir=${STAGING_DATADIR_NATIVE}/autoconf213 old-configure.in > old-configure 101 autoconf213 --macrodir=${STAGING_DATADIR_NATIVE}/autoconf213 old-configure.in > old-configure
99 sed -i 's:refresh = True:refresh = False:g' ${S}/build/moz.configure/old.configure
100 102
101 cd ${B} 103 cd ${B}
102 ${S}/js/src/configure ${EXTRA_OECONF} 104 ${S}/js/src/configure ${EXTRA_OECONF}