<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11431</bug_id>
          
          <creation_ts>2017-04-27 16:03:52 +0000</creation_ts>
          <short_desc>Crops-ESDK: devtool is unable to add recipe for nodejs-native recipe</short_desc>
          <delta_ts>2019-05-09 00:54:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>CROPS</product>
          <component>crops-default</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Backport to 2.6.1?</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7</target_milestone>
          
          <blocked>10653</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Libertad">libertad.gonzalez.de.la.cruz</reporter>
          <assigned_to name="Anuj Mittal">anuj.mittal</assigned_to>
          <cc>akuster</cc>
    
    <cc>brian.avery</cc>
    
    <cc>ee.peng.yeoh</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>nagarajagopalx.velu</cc>
    
    <cc>pankaj-y</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
    
    <cc>tim.orling</cc>
          
          <qa_contact name="nagarajagopal">nagarajagopalx.velu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72907</commentid>
    <comment_count>0</comment_count>
    <who name="Libertad">libertad.gonzalez.de.la.cruz</who>
    <bug_when>2017-04-27 16:03:52 +0000</bug_when>
    <thetext>DESCRIPTION:

Within the CROPS container the eSDK, devtool cannot add recipe for nodejs.


STATUS: FAILED
BUILD: 2.3 M4: rc2-7a0e795373653886452a7a2992ced10080711c26
ENVIRONMENT: user-preference (any supported environment)
STEPS TO REPRODUCE: 

lets say variable npm = npm://registry.npmjs.org;name=winston;version=2.2.0

Step 1. Initiate your Crops-esdk environment as it says in wiki https://github.com/crops/docker-win-mac-docs/wiki
Step 2: source environment-setup-i586-poky-linux

Step 3: run command which devtool

Step 4: devtool add npm



EXPECTED OUTCOME: 

devtool command to be successful 

ERROR:

sdkuser@72aec81c01b4:/workdir$ devtool add npm://registry.npmjs.org;name=winston;version=2.2.0
Loading cache: 100% |##########################################################################################################################################################| Time: 0:00:00
Loaded 1299 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################################################################| Time: 0:00:00
Parsing of 831 .bb files complete (830 cached, 1 parsed). 1300 targets, 48 skipped, 0 masked, 0 errors.
Traceback (most recent call last):
  File &quot;/workdir/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 351, in &lt;module&gt;
    ret = main()
  File &quot;/workdir/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 338, in main
    ret = args.func(args, config, basepath, workspace)
  File &quot;/workdir/layers/build/scripts/lib/devtool/standard.py&quot;, line 132, in add
    ensure_npm(config, basepath, args.fixed_setup)
  File &quot;/workdir/layers/build/scripts/lib/devtool/__init__.py&quot;, line 272, in ensure_npm
    rd = tinfoil.parse_recipe(&apos;nodejs-native&apos;)
  File &quot;/workdir/layers/build/bitbake/lib/bb/tinfoil.py&quot;, line 384, in parse_recipe
    fn = self.get_recipe_file(pn)
  File &quot;/workdir/layers/build/bitbake/lib/bb/tinfoil.py&quot;, line 373, in get_recipe_file
    raise bb.providers.NoProvider(&apos;Unable to find any recipe file matching &quot;%s&quot;&apos; % pn)
bb.providers.NoProvider: Unable to find any recipe file matching &quot;nodejs-native&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73133</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-05-08 21:54:24 +0000</bug_when>
    <thetext>nodejs-native isn&apos;t part of oe-core, you need to add a layer which includes nodejs (such as meta-nodejs or meta-oe) before devtool can correctly handle nodejs recipes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74652</commentid>
    <comment_count>2</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-06-29 16:19:44 +0000</bug_when>
    <thetext>Since nodejs-native is not part of oe-core yet, we can revisit this later if it moves into oe-core at some in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80703</commentid>
    <comment_count>3</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2018-06-04 09:23:07 +0000</bug_when>
    <thetext>still issue not solved, so reopened</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80730</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2018-06-07 15:08:13 +0000</bug_when>
    <thetext>The Test Case instructions need to be updated to add the meta-oe layer, as nodejs recipe [1] will likely not be moved into oe-core.

[1] http://layers.openembedded.org/layerindex/recipe/4427/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80751</commentid>
    <comment_count>5</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-06-11 01:50:37 +0000</bug_when>
    <thetext>Test case will be updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80773</commentid>
    <comment_count>6</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2018-06-13 03:57:04 +0000</bug_when>
    <thetext>
 We will wait for test case to be updated.
 we have marked the test case 1610 as failed for release 2.3.4.rc1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80928</commentid>
    <comment_count>7</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2018-06-26 09:13:15 +0000</bug_when>
    <thetext>
 We will wait for test case to be updated.
 we have marked the test case 1610 as failed for release 2.6 M1 rc1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81184</commentid>
    <comment_count>8</comment_count>
    <who name="pankaj yadav">pankaj-y</who>
    <bug_when>2018-07-26 06:06:34 +0000</bug_when>
    <thetext>We will wait for test case to be updated.
we have marked the test case 1610 as failed for release 2.6 M2 rc1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81333</commentid>
    <comment_count>9</comment_count>
    <who name="pankaj yadav">pankaj-y</who>
    <bug_when>2018-08-14 01:47:41 +0000</bug_when>
    <thetext>Test case has been updated and verified to be working on the releases 2.6 M2 rc1 and 2.5.1.rc1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82287</commentid>
    <comment_count>10</comment_count>
    <who name="pankaj yadav">pankaj-y</who>
    <bug_when>2018-11-22 03:48:08 +0000</bug_when>
    <thetext>Issue is reproducible with 2.4.4RC1 release with suggested work around as mentioned below, Issue is not seen 2.6 M2 rc1 release with same work around:

Steps to Reproduce:
1. Initiate your Crops-esdk environment as it says in wiki https://github.com/crops/docker-win-mac-docs/wiki 
2. source environment-setup-i586-poky-linux 
3. run command which devtool 
4. 4a) git clone git://git.openembedded.org/meta-openembedded in layers/build directory 
4b) Add meta-openembedded/meta-oe in bblayer.conf as mentioned below: 
${SDKBASEMETAPATH}/layers/build/meta-openembedded/meta-oe \ 
4c) devtool add &quot;npm://registry.npmjs.org;name=npm;version=2.2.0&quot; 

Logs are attached for the same :
sdkuser@c18c715ca295:/workdir$ ls
bitbake-cookerdaemon.log conf layers sstate-cache version-core2-64-poky-linux
buildtools downloads preparing_build_system.log sysroots workspace
cache environment-setup-core2-64-poky-linux site-config-core2-64-poky-linux tmp
sdkuser@c18c715ca295:/workdir$ source environment-setup-core2-64-poky-linux
SDK environment now set up; additionally you may now run devtool to perform development tasks.
Run devtool --help for further details.
sdkuser@c18c715ca295:/workdir$ devtool add &quot;npm://registry.npmjs.org;name=npm;version=2.2.0&quot;
NOTE: Starting bitbake server...
ERROR: Unable to start bitbake server
ERROR: Last 10 lines of server log for this session (/workdir/bitbake-cookerdaemon.log):
self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset)
File &quot;/workdir/layers/build/bitbake/lib/bb/cooker.py&quot;, line 197, in _init_
self.initConfigurationData()
File &quot;/workdir/layers/build/bitbake/lib/bb/cooker.py&quot;, line 356, in initConfigurationData
self.databuilder.parseBaseConfiguration()
File &quot;/workdir/layers/build/bitbake/lib/bb/cookerdata.py&quot;, line 316, in parseBaseConfiguration
raise bb.BBHandledException
bb.BBHandledException
ERROR: Layer openembedded-layer is not compatible with the core layer which only supports these series: rocko (layer is compatible with thud)
ERROR: Layer openembedded-layer is not compatible with the core layer which only supports these series: rocko (layer is compatible with thud)

ERROR: Unable to start bitbake server
ERROR: Last 10 lines of server log for this session (/workdir/bitbake-cookerdaemon.log):
self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset)
File &quot;/workdir/layers/build/bitbake/lib/bb/cooker.py&quot;, line 197, in _init_
self.initConfigurationData()
File &quot;/workdir/layers/build/bitbake/lib/bb/cooker.py&quot;, line 356, in initConfigurationData
self.databuilder.parseBaseConfiguration()
File &quot;/workdir/layers/build/bitbake/lib/bb/cookerdata.py&quot;, line 316, in parseBaseConfiguration
raise bb.BBHandledException
bb.BBHandledException
ERROR: Layer openembedded-layer is not compatible with the core layer which only supports these series: rocko (layer is compatible with thud)
ERROR: Layer openembedded-layer is not compatible with the core layer which only supports these series: rocko (layer is compatible with thud)

sdkuser@c18c715ca295:/workdir$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82288</commentid>
    <comment_count>11</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-11-22 04:29:44 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; Issue is reproducible with 2.4.4RC1 release with suggested work around as
&gt; mentioned below, Issue is not seen 2.6 M2 rc1 release with same work around:
&gt; 
&gt; Steps to Reproduce:
&gt; 1. Initiate your Crops-esdk environment as it says in wiki
&gt; https://github.com/crops/docker-win-mac-docs/wiki 
&gt; 2. source environment-setup-i586-poky-linux 
&gt; 3. run command which devtool 
&gt; 4. 4a) git clone git://git.openembedded.org/meta-openembedded in
&gt; layers/build directory 
&gt; 4b) Add meta-openembedded/meta-oe in bblayer.conf as mentioned below: 
&gt; ${SDKBASEMETAPATH}/layers/build/meta-openembedded/meta-oe \ 

If you&apos;re trying out rocko, you should checkout rocko layer ... Please retry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82291</commentid>
    <comment_count>12</comment_count>
    <who name="pankaj yadav">pankaj-y</who>
    <bug_when>2018-11-22 09:21:22 +0000</bug_when>
    <thetext>After checkout rocko layer, below mentioned step is getting passed 
step 4 c)devtool add &quot;npm://registry.npmjs.org;name=npm;version=2.2.0&quot;  

but  &quot;devtool build npm&quot; is getting failed as mentioned in attached logs:

Please find the logs for the same :
 
sdkuser@ff591c534f30:/workdir$ devtool build npm
NOTE: Starting bitbake server...
Loading cache: 100% |###################################################################################################################################| Time: 0:00:01
Loaded 2029 entries from dependency cache.
Parsing recipes: 100% |#################################################################################################################################| Time: 0:00:00
Parsing of 1431 .bb files complete (1430 cached, 1 parsed). 2030 targets, 53 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##############################################################################################################################| Time: 0:00:01
Checking sstate mirror object availability: 100% |######################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: npm: compiling from external source tree /workdir/workspace/sources/npm
ERROR: npm-2.2.0-r0 do_compile: Function failed: do_compile (log file is located at /workdir/tmp/work/core2-64-poky-linux/npm/2.2.0-r0/temp/log.do_compile.55881)
ERROR: Logfile of failure stored in: /workdir/tmp/work/core2-64-poky-linux/npm/2.2.0-r0/temp/log.do_compile.55881
Log data follows:
| DEBUG: Executing python function externalsrc_compile_prefunc
| NOTE: npm: compiling from external source tree /workdir/workspace/sources/npm
| DEBUG: Python function externalsrc_compile_prefunc finished
| DEBUG: Executing shell function do_compile
| npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use &apos;npm cache verify&apos; instead.
| npm ERR!
| npm ERR! If you&apos;re sure you want to delete the entire cache, rerun this command with --force.
|
| npm ERR! A complete log of this run can be found in:
| npm ERR!     /workdir/tmp/work/core2-64-poky-linux/npm/2.2.0-r0/npm_cache/_logs/2018-11-22T08_33_22_260Z-debug.log
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /workdir/tmp/work/core2-64-poky-linux/npm/2.2.0-r0/temp/log.do_compile.55881)
ERROR: Task (/workdir/workspace/recipes/npm/npm_2.2.0.bb:do_compile) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 446 tasks of which 270 didn&apos;t need to be rerun and 1 failed.
NOTE: The errors for this build are stored in /workdir/tmp/log/error-report/error_report_20181122082037.txt
You can send the errors to a reports server by running:
  send-error-report /workdir/tmp/log/error-report/error_report_20181122082037.txt [-s server]
NOTE: The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.

Summary: 1 task failed:
  /workdir/workspace/recipes/npm/npm_2.2.0.bb:do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
sdkuser@ff591c534f30:/workdir$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82316</commentid>
    <comment_count>13</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-11-26 07:09:19 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; After checkout rocko layer, below mentioned step is getting passed 
&gt; step 4 c)devtool add &quot;npm://registry.npmjs.org;name=npm;version=2.2.0&quot;  
&gt; 
&gt; but  &quot;devtool build npm&quot; is getting failed as mentioned in attached logs:
&gt; 
&gt; Please find the logs for the same :
&gt;  
&gt; sdkuser@ff591c534f30:/workdir$ devtool build npm
&gt; NOTE: Starting bitbake server...
&gt; Loading cache: 100%
&gt; |############################################################################
&gt; #######################################################| Time: 0:00:01
&gt; Loaded 2029 entries from dependency cache.
&gt; Parsing recipes: 100%
&gt; |############################################################################
&gt; #####################################################| Time: 0:00:00
&gt; Parsing of 1431 .bb files complete (1430 cached, 1 parsed). 2030 targets, 53
&gt; skipped, 0 masked, 0 errors.
&gt; NOTE: Resolving any missing task queue dependencies
&gt; Initialising tasks: 100%
&gt; |############################################################################
&gt; ##################################################| Time: 0:00:01
&gt; Checking sstate mirror object availability: 100%
&gt; |############################################################################
&gt; ##########################| Time: 0:00:01
&gt; NOTE: Executing SetScene Tasks
&gt; NOTE: Executing RunQueue Tasks
&gt; NOTE: npm: compiling from external source tree /workdir/workspace/sources/npm
&gt; ERROR: npm-2.2.0-r0 do_compile: Function failed: do_compile (log file is
&gt; located at
&gt; /workdir/tmp/work/core2-64-poky-linux/npm/2.2.0-r0/temp/log.do_compile.55881)
&gt; ERROR: Logfile of failure stored in:
&gt; /workdir/tmp/work/core2-64-poky-linux/npm/2.2.0-r0/temp/log.do_compile.55881
&gt; Log data follows:
&gt; | DEBUG: Executing python function externalsrc_compile_prefunc
&gt; | NOTE: npm: compiling from external source tree
&gt; /workdir/workspace/sources/npm
&gt; | DEBUG: Python function externalsrc_compile_prefunc finished
&gt; | DEBUG: Executing shell function do_compile
&gt; | npm ERR! As of npm@5, the npm cache self-heals from corruption issues and
&gt; data extracted from the cache is guaranteed to be valid. If you want to make
&gt; sure everything is consistent, use &apos;npm cache verify&apos; instead.
&gt; | npm ERR!
&gt; | npm ERR! If you&apos;re sure you want to delete the entire cache, rerun this
&gt; command with --force.
&gt; |
&gt; | npm ERR! A complete log of this run can be found in:
&gt; | npm ERR!    
&gt; /workdir/tmp/work/core2-64-poky-linux/npm/2.2.0-r0/npm_cache/_logs/2018-11-
&gt; 22T08_33_22_260Z-debug.log
&gt; | WARNING: exit code 1 from a shell command.
&gt; | ERROR: Function failed: do_compile (log file is located at
&gt; /workdir/tmp/work/core2-64-poky-linux/npm/2.2.0-r0/temp/log.do_compile.55881)

This is a different issue ... We need this commit to be backported:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit?id=d38e1e2c2ea4646b34ea6282d3d7620df5b0374b

Armin, can you please include this in rocko?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82317</commentid>
    <comment_count>14</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-11-26 14:23:21 +0000</bug_when>
    <thetext>backported to stable/rocko-nmut for build test before requesting a merge</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82327</commentid>
    <comment_count>15</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-11-26 23:13:32 +0000</bug_when>
    <thetext>its in stable/rocko-next. waiting for merging to proper</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83105</commentid>
    <comment_count>16</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2019-02-25 02:50:39 +0000</bug_when>
    <thetext>(In reply to comment #15)
&gt; its in stable/rocko-next. waiting for merging to proper

Looks like this was never merged. Also not sure why this was marked for 2.7/2.6 ... 

Can this be merged in rocko? If not, since this was not reproducible in 2.6, can this be closed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83752</commentid>
    <comment_count>17</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2019-05-09 00:54:21 +0000</bug_when>
    <thetext>I don&apos;t see the problem as indicated above and rocko isn&apos;t maintained anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>