diff options
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_12.14.0.bb | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_12.14.0.bb b/meta-oe/recipes-devtools/nodejs/nodejs_12.14.0.bb index 35abb8f1f0..e4a2aa18c4 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_12.14.0.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_12.14.0.bb | |||
| @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=be4d5107c64dc3d7c57e3797e1a0674b" | |||
| 6 | DEPENDS = "openssl" | 6 | DEPENDS = "openssl" |
| 7 | DEPENDS_append_class-target = " nodejs-native" | 7 | DEPENDS_append_class-target = " nodejs-native" |
| 8 | 8 | ||
| 9 | inherit pkgconfig ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "pythonnative", "", d)} | 9 | inherit pkgconfig python3native |
| 10 | 10 | ||
| 11 | COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*" | 11 | COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*" |
| 12 | COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*" | 12 | COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*" |
| @@ -96,7 +96,7 @@ do_configure () { | |||
| 96 | export LD="${CXX}" | 96 | export LD="${CXX}" |
| 97 | GYP_DEFINES="${GYP_DEFINES}" export GYP_DEFINES | 97 | GYP_DEFINES="${GYP_DEFINES}" export GYP_DEFINES |
| 98 | # $TARGET_ARCH settings don't match --dest-cpu settings | 98 | # $TARGET_ARCH settings don't match --dest-cpu settings |
| 99 | ./configure --prefix=${prefix} --without-snapshot --shared-openssl \ | 99 | python3 configure.py --prefix=${prefix} --without-snapshot --shared-openssl \ |
| 100 | --dest-cpu="${@map_nodejs_arch(d.getVar('TARGET_ARCH'), d)}" \ | 100 | --dest-cpu="${@map_nodejs_arch(d.getVar('TARGET_ARCH'), d)}" \ |
| 101 | --dest-os=linux \ | 101 | --dest-os=linux \ |
| 102 | --libdir=${D}${libdir} \ | 102 | --libdir=${D}${libdir} \ |
| @@ -111,6 +111,10 @@ do_compile () { | |||
| 111 | 111 | ||
| 112 | do_install () { | 112 | do_install () { |
| 113 | oe_runmake install DESTDIR=${D} | 113 | oe_runmake install DESTDIR=${D} |
| 114 | |||
| 115 | # wasn't updated since 2009 and is the only thing requiring python2 in runtime | ||
| 116 | # 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] | ||
| 117 | rm -f ${D}${exec_prefix}/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples | ||
| 114 | } | 118 | } |
| 115 | 119 | ||
| 116 | do_install_append_class-native() { | 120 | do_install_append_class-native() { |
| @@ -142,16 +146,10 @@ do_install_append_class-target() { | |||
| 142 | 146 | ||
| 143 | PACKAGES =+ "${PN}-npm" | 147 | PACKAGES =+ "${PN}-npm" |
| 144 | FILES_${PN}-npm = "${exec_prefix}/lib/node_modules ${bindir}/npm ${bindir}/npx" | 148 | FILES_${PN}-npm = "${exec_prefix}/lib/node_modules ${bindir}/npm ${bindir}/npx" |
| 145 | RDEPENDS_${PN}-npm = "bash python-core python-shell python-datetime python-subprocess python-textutils \ | 149 | RDEPENDS_${PN}-npm = "bash python3-core python3-shell python3-datetime \ |
| 146 | python-compiler python-misc python-multiprocessing" | 150 | python3-misc python3-multiprocessing" |
| 147 | 151 | ||
| 148 | PACKAGES =+ "${PN}-systemtap" | 152 | PACKAGES =+ "${PN}-systemtap" |
| 149 | FILES_${PN}-systemtap = "${datadir}/systemtap" | 153 | FILES_${PN}-systemtap = "${datadir}/systemtap" |
| 150 | 154 | ||
| 151 | |||
| 152 | BBCLASSEXTEND = "native" | 155 | BBCLASSEXTEND = "native" |
| 153 | |||
| 154 | python() { | ||
| 155 | if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split(): | ||
| 156 | raise bb.parse.SkipRecipe('Requires meta-python2 to be present.') | ||
| 157 | } | ||
