summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb')
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb36
1 files changed, 18 insertions, 18 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb
index 5ac4f9dc7d..4715019798 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb
@@ -4,16 +4,16 @@ LICENSE = "MIT & BSD & Artistic-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=a1016f9b7979cfe6fc3466a9bba60b1e" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=a1016f9b7979cfe6fc3466a9bba60b1e"
5 5
6DEPENDS = "openssl" 6DEPENDS = "openssl"
7DEPENDS_append_class-target = " qemu-native" 7DEPENDS:append:class-target = " qemu-native"
8 8
9inherit pkgconfig python3native qemu 9inherit pkgconfig python3native qemu
10 10
11COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*" 11COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*"
12COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*" 12COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*"
13COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*" 13COMPATIBLE_MACHINE:mips64 = "(!.*mips64).*"
14 14
15COMPATIBLE_HOST_riscv64 = "null" 15COMPATIBLE_HOST:riscv64 = "null"
16COMPATIBLE_HOST_riscv32 = "null" 16COMPATIBLE_HOST:riscv32 = "null"
17 17
18SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ 18SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
19 file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ 19 file://0001-Disable-running-gyp-files-for-bundled-deps.patch \
@@ -23,13 +23,13 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
23 file://mips-warnings.patch \ 23 file://mips-warnings.patch \
24 file://mips-less-memory.patch \ 24 file://mips-less-memory.patch \
25 " 25 "
26SRC_URI_append_class-target = " \ 26SRC_URI:append:class-target = " \
27 file://0002-Using-native-binaries.patch \ 27 file://0002-Using-native-binaries.patch \
28 " 28 "
29SRC_URI_append_toolchain-clang_x86 = " \ 29SRC_URI:append:toolchain-clang:x86 = " \
30 file://libatomic.patch \ 30 file://libatomic.patch \
31 " 31 "
32SRC_URI_append_toolchain-clang_powerpc64le = " \ 32SRC_URI:append:toolchain-clang:powerpc64le = " \
33 file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \ 33 file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \
34 " 34 "
35SRC_URI[sha256sum] = "ddf1d2d56ddf35ecd98c5ea5ddcd690b245899f289559b4330c921255f5a247f" 35SRC_URI[sha256sum] = "ddf1d2d56ddf35ecd98c5ea5ddcd690b245899f289559b4330c921255f5a247f"
@@ -49,12 +49,12 @@ def map_nodejs_arch(a, d):
49 elif re.match('powerpc$', a): return 'ppc' 49 elif re.match('powerpc$', a): return 'ppc'
50 return a 50 return a
51 51
52ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)} \ 52ARCHFLAGS:arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)} \
53 ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-arm-fpu=neon', \ 53 ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-arm-fpu=neon', \
54 bb.utils.contains('TUNE_FEATURES', 'vfpv3d16', '--with-arm-fpu=vfpv3-d16', \ 54 bb.utils.contains('TUNE_FEATURES', 'vfpv3d16', '--with-arm-fpu=vfpv3-d16', \
55 bb.utils.contains('TUNE_FEATURES', 'vfpv3', '--with-arm-fpu=vfpv3', \ 55 bb.utils.contains('TUNE_FEATURES', 'vfpv3', '--with-arm-fpu=vfpv3', \
56 '--with-arm-fpu=vfp', d), d), d)}" 56 '--with-arm-fpu=vfp', d), d), d)}"
57GYP_DEFINES_append_mipsel = " mips_arch_variant='r1' " 57GYP_DEFINES:append:mipsel = " mips_arch_variant='r1' "
58ARCHFLAGS ?= "" 58ARCHFLAGS ?= ""
59 59
60PACKAGECONFIG ??= "ares brotli icu zlib" 60PACKAGECONFIG ??= "ares brotli icu zlib"
@@ -128,7 +128,7 @@ python do_create_v8_qemu_wrapper () {
128do_create_v8_qemu_wrapper[dirs] = "${B}" 128do_create_v8_qemu_wrapper[dirs] = "${B}"
129addtask create_v8_qemu_wrapper after do_configure before do_compile 129addtask create_v8_qemu_wrapper after do_configure before do_compile
130 130
131LDFLAGS_append_x86 = " -latomic" 131LDFLAGS:append:x86 = " -latomic"
132 132
133# Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi 133# Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi
134do_configure () { 134do_configure () {
@@ -155,11 +155,11 @@ do_install () {
155 oe_runmake install DESTDIR=${D} 155 oe_runmake install DESTDIR=${D}
156 156
157 # wasn't updated since 2009 and is the only thing requiring python2 in runtime 157 # wasn't updated since 2009 and is the only thing requiring python2 in runtime
158 # ERROR: nodejs-12.14.1-r0 do_package_qa: QA Issue: /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples contained in package nodejs-npm requires /usr/bin/python, but no providers found in RDEPENDS_nodejs-npm? [file-rdeps] 158 # ERROR: nodejs-12.14.1-r0 do_package_qa: QA Issue: /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples contained in package nodejs-npm requires /usr/bin/python, but no providers found in RDEPENDS:nodejs-npm? [file-rdeps]
159 rm -f ${D}${exec_prefix}/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples 159 rm -f ${D}${exec_prefix}/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples
160} 160}
161 161
162do_install_append_class-native() { 162do_install:append:class-native() {
163 # use node from PATH instead of absolute path to sysroot 163 # use node from PATH instead of absolute path to sysroot
164 # node-v0.10.25/tools/install.py is using: 164 # node-v0.10.25/tools/install.py is using:
165 # shebang = os.path.join(node_prefix, 'bin/node') 165 # shebang = os.path.join(node_prefix, 'bin/node')
@@ -184,16 +184,16 @@ do_install_append_class-native() {
184 install -m 0755 ${S}/out/Release/node_mksnapshot ${D}${bindir}/node_mksnapshot 184 install -m 0755 ${S}/out/Release/node_mksnapshot ${D}${bindir}/node_mksnapshot
185} 185}
186 186
187do_install_append_class-target() { 187do_install:append:class-target() {
188 sed "1s^.*^#\!${bindir}/env node^g" -i ${D}${exec_prefix}/lib/node_modules/npm/bin/npm-cli.js 188 sed "1s^.*^#\!${bindir}/env node^g" -i ${D}${exec_prefix}/lib/node_modules/npm/bin/npm-cli.js
189} 189}
190 190
191PACKAGES =+ "${PN}-npm" 191PACKAGES =+ "${PN}-npm"
192FILES_${PN}-npm = "${exec_prefix}/lib/node_modules ${bindir}/npm ${bindir}/npx" 192FILES:${PN}-npm = "${exec_prefix}/lib/node_modules ${bindir}/npm ${bindir}/npx"
193RDEPENDS_${PN}-npm = "bash python3-core python3-shell python3-datetime \ 193RDEPENDS:${PN}-npm = "bash python3-core python3-shell python3-datetime \
194 python3-misc python3-multiprocessing" 194 python3-misc python3-multiprocessing"
195 195
196PACKAGES =+ "${PN}-systemtap" 196PACKAGES =+ "${PN}-systemtap"
197FILES_${PN}-systemtap = "${datadir}/systemtap" 197FILES:${PN}-systemtap = "${datadir}/systemtap"
198 198
199BBCLASSEXTEND = "native" 199BBCLASSEXTEND = "native"