diff options
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.bb | 36 |
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" | |||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a1016f9b7979cfe6fc3466a9bba60b1e" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a1016f9b7979cfe6fc3466a9bba60b1e" |
| 5 | 5 | ||
| 6 | DEPENDS = "openssl" | 6 | DEPENDS = "openssl" |
| 7 | DEPENDS_append_class-target = " qemu-native" | 7 | DEPENDS:append:class-target = " qemu-native" |
| 8 | 8 | ||
| 9 | inherit pkgconfig python3native qemu | 9 | inherit pkgconfig python3native qemu |
| 10 | 10 | ||
| 11 | COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*" | 11 | COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*" |
| 12 | COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*" | 12 | COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*" |
| 13 | COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*" | 13 | COMPATIBLE_MACHINE:mips64 = "(!.*mips64).*" |
| 14 | 14 | ||
| 15 | COMPATIBLE_HOST_riscv64 = "null" | 15 | COMPATIBLE_HOST:riscv64 = "null" |
| 16 | COMPATIBLE_HOST_riscv32 = "null" | 16 | COMPATIBLE_HOST:riscv32 = "null" |
| 17 | 17 | ||
| 18 | SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ | 18 | SRC_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 | " |
| 26 | SRC_URI_append_class-target = " \ | 26 | SRC_URI:append:class-target = " \ |
| 27 | file://0002-Using-native-binaries.patch \ | 27 | file://0002-Using-native-binaries.patch \ |
| 28 | " | 28 | " |
| 29 | SRC_URI_append_toolchain-clang_x86 = " \ | 29 | SRC_URI:append:toolchain-clang:x86 = " \ |
| 30 | file://libatomic.patch \ | 30 | file://libatomic.patch \ |
| 31 | " | 31 | " |
| 32 | SRC_URI_append_toolchain-clang_powerpc64le = " \ | 32 | SRC_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 | " |
| 35 | SRC_URI[sha256sum] = "ddf1d2d56ddf35ecd98c5ea5ddcd690b245899f289559b4330c921255f5a247f" | 35 | SRC_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 | ||
| 52 | ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)} \ | 52 | ARCHFLAGS: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)}" |
| 57 | GYP_DEFINES_append_mipsel = " mips_arch_variant='r1' " | 57 | GYP_DEFINES:append:mipsel = " mips_arch_variant='r1' " |
| 58 | ARCHFLAGS ?= "" | 58 | ARCHFLAGS ?= "" |
| 59 | 59 | ||
| 60 | PACKAGECONFIG ??= "ares brotli icu zlib" | 60 | PACKAGECONFIG ??= "ares brotli icu zlib" |
| @@ -128,7 +128,7 @@ python do_create_v8_qemu_wrapper () { | |||
| 128 | do_create_v8_qemu_wrapper[dirs] = "${B}" | 128 | do_create_v8_qemu_wrapper[dirs] = "${B}" |
| 129 | addtask create_v8_qemu_wrapper after do_configure before do_compile | 129 | addtask create_v8_qemu_wrapper after do_configure before do_compile |
| 130 | 130 | ||
| 131 | LDFLAGS_append_x86 = " -latomic" | 131 | LDFLAGS: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 |
| 134 | do_configure () { | 134 | do_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 | ||
| 162 | do_install_append_class-native() { | 162 | do_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 | ||
| 187 | do_install_append_class-target() { | 187 | do_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 | ||
| 191 | PACKAGES =+ "${PN}-npm" | 191 | PACKAGES =+ "${PN}-npm" |
| 192 | FILES_${PN}-npm = "${exec_prefix}/lib/node_modules ${bindir}/npm ${bindir}/npx" | 192 | FILES:${PN}-npm = "${exec_prefix}/lib/node_modules ${bindir}/npm ${bindir}/npx" |
| 193 | RDEPENDS_${PN}-npm = "bash python3-core python3-shell python3-datetime \ | 193 | RDEPENDS:${PN}-npm = "bash python3-core python3-shell python3-datetime \ |
| 194 | python3-misc python3-multiprocessing" | 194 | python3-misc python3-multiprocessing" |
| 195 | 195 | ||
| 196 | PACKAGES =+ "${PN}-systemtap" | 196 | PACKAGES =+ "${PN}-systemtap" |
| 197 | FILES_${PN}-systemtap = "${datadir}/systemtap" | 197 | FILES:${PN}-systemtap = "${datadir}/systemtap" |
| 198 | 198 | ||
| 199 | BBCLASSEXTEND = "native" | 199 | BBCLASSEXTEND = "native" |
