Bug 10992

Summary: devtool: add: check for nodejs-native broken since recipe specific sysroots changes
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: Scripts and ToolsAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Medium+ CC: alex.kanavin, henry.bruce, libertad.gonzalez.de.la.cruz, richard.purdie, ross.burton
Version: 2.2   
Target Milestone: 2.3 M4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: Don't know
Bug Depends on:    
Bug Blocks: 10653, 10760    

Description Paul Eggleton 2017-01-31 04:24:08 UTC
devtool add on a node.js application now fails every time because of the check added in http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=18caacae069a025662fcdd96b846857fc3107e41 - this still expects a shared native sysroot.

For example:

------------- snip -------------
$ devtool add https://github.com/etsy/statsd.git
NOTE: Fetching git://github.com/etsy/statsd.git;protocol=https...
--2017-01-31 17:17:14--  http://downloads.yoctoproject.org/mirror/sources/git2_github.com.etsy.statsd.git.tar.gz
Resolving downloads.yoctoproject.org (downloads.yoctoproject.org)... 198.145.20.127
Connecting to downloads.yoctoproject.org (downloads.yoctoproject.org)|198.145.20.127|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-01-31 17:17:15 ERROR 404: Not Found.

Cloning into bare repository '/home/paul/poky/downloads/git2/github.com.etsy.statsd.git'...
remote: Counting objects: 5111, done.        
remote: Total 5111 (delta 0), reused 0 (delta 0), pack-reused 5110        
Receiving objects: 100% (5111/5111), 1.68 MiB | 879.00 KiB/s, done.
Resolving deltas: 100% (2629/2629), done.
Checking connectivity... done.
ERROR: npm required to process specified source, but npm is not available - you need to build nodejs-native first
NOTE: Building nodejs-native
Parsing recipes: 100% |########################################################################################################################################################| Time: 0:01:10
Initialising tasks: 100% |#####################################################################################################################################################| Time: 0:00:00
ERROR: Built nodejs-native but npm binary still could not be found at /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/defaultpkgname/1.0-r0/recipe-sysroot-native/usr/bin/npm
------------- snip -------------

(We don't have an oe-selftest test for this because we can't - we don't have nodejs in OE-Core and it can't be tested without that.)