为Yocto korgoth创建基于npm的配方失败

时间:2019-07-10 14:30:08

标签: node.js npm embedded-linux yocto

我在这里使用krogoth,并尝试了以下方法来创建食谱:

  1. 带有devtool并发布代码版本

     devtool add canboatjs https://github.com/canboat/canboatjs/archive/v1.6.9.tar.gz
    

它引发了以下错误:

```ERROR: Command 'recipetool --color=always create -o /tmp/devtoolSqS6lw "https://github.com/canboat/canboatjs/archive/v1.6.9.t
NOTE: Fetching https://github.com/canboat/canboatjs/archive/v1.6.9.tar.gz...
NOTE: Unpacking /home/des/Yocto/PHYTEC_BSPs/yocto_fsl/build/downloads/v1.6.9.tar.gz to /tmp/recipetool-D9484_/
WARNING: npm shrinkwrap failed:

Traceback (most recent call last):
  File "/home/des/Yocto/PHYTEC_BSPs/yocto_fsl/sources/poky/scripts/recipetool", line 116, in <module>
    ret = main()
  File "/home/des/Yocto/PHYTEC_BSPs/yocto_fsl/sources/poky/scripts/recipetool", line 107, in main
    ret = args.func(args)
  File "/home/des/Yocto/PHYTEC_BSPs/yocto_fsl/sources/poky/scripts/lib/recipetool/create.py", line 561, in create_recipe
    handler.process(srctree_use, classes, lines_before, lines_after, handled, extravalues)
  File "/home/des/Yocto/PHYTEC_BSPs/yocto_fsl/sources/poky/scripts/lib/recipetool/create_npm.py", line 116, in process
    self._lockdown(srctree, localfilesdir, extravalues, lines_before)
  File "/home/des/Yocto/PHYTEC_BSPs/yocto_fsl/sources/poky/scripts/lib/recipetool/create_npm.py", line 69, in _lockdown
    cwd=srctree, stderr=subprocess.STDOUT, env=runenv, shell=True)
  File "/home/des/Yocto/PHYTEC_BSPs/yocto_fsl/sources/poky/bitbake/lib/bb/process.py", line 155, in run
    raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
ExecutionError: Execution of 'npm install lockdown --prefix /tmp/tmpzzs4OBrecipetool-npm-lockdown' failed with exit code -11
  1. 我尝试使用Wiki和本SE Query

    中提到的NPM注册表方法添加它
    devtool add "npm://registry.npmjs.org;name=canboatjs;version=1.6.9"
    
ERROR: Command 'recipetool --color=always create -o /tmp/devtool7pA2Eo "npm://registry.npmjs.org;name=canboatjs;version=1.6.9"  -x /home/des/Yocto/PHYTEC_BSPs/yocto_fsl/build/python/sources/devtoolsrcgTnmtq' failed:
NOTE: Fetching npm://registry.npmjs.org;name=canboatjs;version=1.6.9...
WARNING: Missing shrinkwrap file in NPM_SHRINKWRAP for canboatjs, this will lead to unreliable builds!
WARNING: Missing lockdown file in NPM_LOCKDOWN for canboatjs, this will lead to unreproducible builds!
WARNING: Failed to fetch URL npm://registry.npmjs.org;name=canboatjs;version=1.6.9, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 139, output:
/bin/sh: line 1: 19671 Segmentation fault      npm view canboatjs@'1.6.9' --json --registry http://registry.npmjs.org

ERROR: Fetcher failure for URL: 'npm://registry.npmjs.org;name=canboatjs;version=1.6.9'. Unable to fetch URL from any source.

我了解URL失败,但为什么不从提供的tar球构建它。

我尝试了krogoth在Wiki中提到的方法:

bitbake nodejs-native -c devshell

打开dev shell,但节点版本为v4.4.3,而npm install给出Segmentation Fault

我尝试添加krogoth的{​​{1}}分支,并使用v7.10再次烘焙meta-nodejs,但它仍显示v4.3并给出分段错误

由于所有步骤均失败,因此要为存储库创建配方的步骤是什么。

0 个答案:

没有答案