python2-native executable is not available in sysroot anymore, which causes compilation of some nodejs modules to fail. Switch to pytho3 as a default python version.
Signed-off-by: Vyacheslav Yurkov <[email protected]> --- meta/classes/npm.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass index d3dd1a9ab8..d0fb5745ec 100644 --- a/meta/classes/npm.bbclass +++ b/meta/classes/npm.bbclass @@ -20,6 +20,8 @@ DEPENDS_prepend = "nodejs-native " RDEPENDS_${PN}_prepend = "nodejs " +inherit python3native + NPM_INSTALL_DEV ?= "0" def npm_target_arch_map(target_arch): @@ -248,9 +250,7 @@ python npm_do_compile() { sysroot = d.getVar("RECIPE_SYSROOT_NATIVE") nodedir = os.path.join(sysroot, d.getVar("prefix_native").strip("/")) configs.append(("nodedir", nodedir)) - bindir = os.path.join(sysroot, d.getVar("bindir_native").strip("/")) - pythondir = os.path.join(bindir, "python-native", "python") - configs.append(("python", pythondir)) + configs.append(("python", d.getVar("PYTHON"))) # Add node-pre-gyp configuration args.append(("target_arch", d.getVar("NPM_ARCH"))) -- 2.28.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#147401): https://lists.openembedded.org/g/openembedded-core/message/147401 Mute This Topic: https://lists.openembedded.org/mt/80190602/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
