* [meta-oe][PATCH 1/3] nodejs: Drop workaround for a Python 2 dependency
@ 2022-01-14 13:22 Peter Kjellerstedt
2022-01-14 13:22 ` [meta-oe][PATCH 2/3] nodejs: Drop workaround for an absolute path in the npm shebang Peter Kjellerstedt
2022-01-14 13:22 ` [meta-oe][PATCH 3/3] nodejs: A little clean up Peter Kjellerstedt
0 siblings, 2 replies; 3+ messages in thread
From: Peter Kjellerstedt @ 2022-01-14 13:22 UTC (permalink / raw)
To: openembedded-devel
The gyp samples directory was removed in version 15.0.0.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb | 4 ----
1 file changed, 4 deletions(-)
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb
index c8d942538..f31648082 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb
@@ -157,10 +157,6 @@ do_compile () {
do_install () {
oe_runmake install DESTDIR=${D}
-
- # wasn't updated since 2009 and is the only thing requiring python2 in runtime
- # 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]
- rm -f ${D}${exec_prefix}/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples
}
do_install:append:class-native() {
^ permalink raw reply related [flat|nested] 3+ messages in thread* [meta-oe][PATCH 2/3] nodejs: Drop workaround for an absolute path in the npm shebang
2022-01-14 13:22 [meta-oe][PATCH 1/3] nodejs: Drop workaround for a Python 2 dependency Peter Kjellerstedt
@ 2022-01-14 13:22 ` Peter Kjellerstedt
2022-01-14 13:22 ` [meta-oe][PATCH 3/3] nodejs: A little clean up Peter Kjellerstedt
1 sibling, 0 replies; 3+ messages in thread
From: Peter Kjellerstedt @ 2022-01-14 13:22 UTC (permalink / raw)
To: openembedded-devel
The rewrite of the npm shebang to use an absolute path was removed in
version 7.0.0.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
.../recipes-devtools/nodejs/nodejs_16.11.1.bb | 20 -------------------
1 file changed, 20 deletions(-)
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb
index f31648082..318cb961f 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb
@@ -160,20 +160,6 @@ do_install () {
}
do_install:append:class-native() {
- # use node from PATH instead of absolute path to sysroot
- # node-v0.10.25/tools/install.py is using:
- # shebang = os.path.join(node_prefix, 'bin/node')
- # update_shebang(link_path, shebang)
- # and node_prefix can be very long path to bindir in native sysroot and
- # when it exceeds 128 character shebang limit it's stripped to incorrect path
- # and npm fails to execute like in this case with 133 characters show in log.do_install:
- # updating shebang of /home/jenkins/workspace/build-webos-nightly/device/qemux86/label/open-webos-builder/BUILD-qemux86/work/x86_64-linux/nodejs-native/0.10.15-r0/image/home/jenkins/workspace/build-webos-nightly/device/qemux86/label/open-webos-builder/BUILD-qemux86/sysroots/x86_64-linux/usr/bin/npm to /home/jenkins/workspace/build-webos-nightly/device/qemux86/label/open-webos-builder/BUILD-qemux86/sysroots/x86_64-linux/usr/bin/node
- # /usr/bin/npm is symlink to /usr/lib/node_modules/npm/bin/npm-cli.js
- # use sed on npm-cli.js because otherwise symlink is replaced with normal file and
- # npm-cli.js continues to use old shebang
- if [[ -f "${D}${exec_prefix}/lib/node_modules/npm/bin/npm-cli.js" ]]; then
- sed "1s^.*^#\!/usr/bin/env node^g" -i ${D}${exec_prefix}/lib/node_modules/npm/bin/npm-cli.js
- fi
# Install the native binaries to provide it within sysroot for the target compilation
install -d ${D}${bindir}
install -m 0755 ${S}/out/Release/torque ${D}${bindir}/torque
@@ -185,12 +171,6 @@ do_install:append:class-native() {
install -m 0755 ${S}/out/Release/node_mksnapshot ${D}${bindir}/node_mksnapshot
}
-do_install:append:class-target() {
- if [[ -f "${D}${exec_prefix}/lib/node_modules/npm/bin/npm-cli.js" ]]; then
- sed "1s^.*^#\!${bindir}/env node^g" -i ${D}${exec_prefix}/lib/node_modules/npm/bin/npm-cli.js
- fi
-}
-
PACKAGES =+ "${PN}-npm"
FILES:${PN}-npm = "${exec_prefix}/lib/node_modules ${bindir}/npm ${bindir}/npx"
RDEPENDS:${PN}-npm = "bash python3-core python3-shell python3-datetime \
^ permalink raw reply related [flat|nested] 3+ messages in thread* [meta-oe][PATCH 3/3] nodejs: A little clean up
2022-01-14 13:22 [meta-oe][PATCH 1/3] nodejs: Drop workaround for a Python 2 dependency Peter Kjellerstedt
2022-01-14 13:22 ` [meta-oe][PATCH 2/3] nodejs: Drop workaround for an absolute path in the npm shebang Peter Kjellerstedt
@ 2022-01-14 13:22 ` Peter Kjellerstedt
1 sibling, 0 replies; 3+ messages in thread
From: Peter Kjellerstedt @ 2022-01-14 13:22 UTC (permalink / raw)
To: openembedded-devel
* The destination file name does not need to be specified to install
if it matches the source file name (and -D is not used).
* Mode 0755 does not need to be specified to install as it is the
default.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
.../recipes-devtools/nodejs/nodejs_16.11.1.bb | 20 ++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb
index 318cb961f..72fbecb8f 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_16.11.1.bb
@@ -151,7 +151,7 @@ do_configure () {
do_compile () {
export LD="${CXX}"
- install -Dm 0755 ${B}/v8-qemu-wrapper.sh ${B}/out/Release/v8-qemu-wrapper.sh
+ install -D ${B}/v8-qemu-wrapper.sh ${B}/out/Release/v8-qemu-wrapper.sh
oe_runmake BUILDTYPE=Release
}
@@ -159,20 +159,22 @@ do_install () {
oe_runmake install DESTDIR=${D}
}
+BINARIES = " \
+ bytecode_builtins_list_generator \
+ ${@bb.utils.contains('PACKAGECONFIG', 'icu', 'gen-regexp-special-case', '', d)} \
+ mkcodecache \
+ node_mksnapshot \
+ torque \
+"
+
do_install:append:class-native() {
# Install the native binaries to provide it within sysroot for the target compilation
install -d ${D}${bindir}
- install -m 0755 ${S}/out/Release/torque ${D}${bindir}/torque
- install -m 0755 ${S}/out/Release/bytecode_builtins_list_generator ${D}${bindir}/bytecode_builtins_list_generator
- if ${@bb.utils.contains('PACKAGECONFIG','icu','true','false',d)}; then
- install -m 0755 ${S}/out/Release/gen-regexp-special-case ${D}${bindir}/gen-regexp-special-case
- fi
- install -m 0755 ${S}/out/Release/mkcodecache ${D}${bindir}/mkcodecache
- install -m 0755 ${S}/out/Release/node_mksnapshot ${D}${bindir}/node_mksnapshot
+ (cd ${S}/out/Release && install ${BINARIES} ${D}${bindir})
}
PACKAGES =+ "${PN}-npm"
-FILES:${PN}-npm = "${exec_prefix}/lib/node_modules ${bindir}/npm ${bindir}/npx"
+FILES:${PN}-npm = "${nonarch_libdir}/node_modules ${bindir}/npm ${bindir}/npx"
RDEPENDS:${PN}-npm = "bash python3-core python3-shell python3-datetime \
python3-misc python3-multiprocessing"
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-14 13:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-14 13:22 [meta-oe][PATCH 1/3] nodejs: Drop workaround for a Python 2 dependency Peter Kjellerstedt
2022-01-14 13:22 ` [meta-oe][PATCH 2/3] nodejs: Drop workaround for an absolute path in the npm shebang Peter Kjellerstedt
2022-01-14 13:22 ` [meta-oe][PATCH 3/3] nodejs: A little clean up Peter Kjellerstedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.