特定的错误是:
11634 verbose node v12.14.1
11635 verbose npm v6.13.4
11636 error Error while executing:
11636 error /home/openbmc/code/openbmc/rpi-build/tmp/hosttools/git ls-remote -h -t https://github.com/novnc/noVNC.git
11636 error
11636 error fatal: unable to access 'https://github.com/novnc/noVNC.git/': error setting certificate verify locations:
11636 error CAfile: /opt/poky/3.1/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt
11636 error CApath: none手动测试:
如果我在一个新的shell中手动运行该命令,它也会失败,表明它使用的是默认证书路径。如果我在shell中运行它,并使用bitbake环境,它就能工作。这是因为正确定义了GIT_SSL_CAINFO。
该行为表明,在从hosttools运行git时,它不使用bitbake环境,因为该环境定义了一个正确的GIT_SSL_CAINFO,其中包含一个带有有效证书的buildtools区域的路径。
我假设poky正在创建一个特殊的环境,用于独立于我的主shell运行主机工具。如果是这样的话,需要有一种将GIT_SSL_CAINFO添加到这个环境中的方法,我不知道如何做到这一点。
我在其他目标周围寻找线索,但找不到任何对我有暗示的东西,这个变量将被定义。
对GIT_SSL_CAINFO上的树的搜索没有打开任何东西,但是有可能有一个带有其他名称的变量。
也许有一种方法可以将http.sslCAInfo设置为取代GIT_SSL_CAINFO?
上下文:
我首先编译了raspberry pi构建并测试了它的运行情况。然后我添加了元荧光粉,这也吸引了webui。
webui依赖于noVNC,但具有特定的版本,这似乎会导致该命令运行并失败。
如何设置构建::
git clone https://github.com/openbmc/openbmc.git
git checkout cb91a77
# Modify layers to include meta-phosphor and webui
scripts/install-buildtools
. /home/openbmc/code/openbmc/poky/buildtools/environment-setup-x86_64-pokysdk-linux
bitbake bmap-tools-native -caddto_recipe_sysroot
. oe-init-build-env rpi-build (per session)
# Modify conf files in rpi-build
bitbake core-image-base发布于 2020-07-21 18:22:55
我的工作是:
sudo git config --system http.sslcainfo /home/openbmc/code/openbmc/poky/buildtools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt我宁愿在构建中处理这个问题,但却找不到解决的方法。
https://stackoverflow.com/questions/62925151
复制相似问题