npm build 期间 bitbake 网络故障

bitbake network failure during npm build

我正在尝试构建 openbmc 映像,但我的 yocto 构建在 phosphor-webui 配方的编译任务中失败了。 这是编译任务

do_compile () {
cd ${S}
rm -rf node_modules
npm --loglevel info --proxy=${http_proxy} --https-proxy=${https_proxy} install
npm run-script build
}

在 NPM 安装期间,网络访问已完成下载,但 bitbake 似乎在构建过程之前禁用了网络。我可以在构建日志中看到它。

DEBUG: Attempting to disable network
DEBUG: SOURCE_DATE_EPOCH: 1636412844

我尝试将 BB_NO_NETWORK 变量设置为“0”,但这也没有帮助。

如何配置 bitbake 以在所有任务期间允许网络访问?

您似乎发现了 phosphor-webui openbmc 配方问题。

文本“试图禁用网络”来自here which was changed 8 days ago by this. So lets check upstream to see if there is a fix in review. I don't see any changes to open bmc recipes here

您应该能够做三件事中的一件

  1. 从您的图像中删除 phosphor-webui,并在没有它的情况下进行构建。只需从您的机器 conf 中删除 phosphor-webui,然后改用 webui-vue。
  2. 将您的 openbmc 回购回滚 18 天,并在它之前构建重大更改。 git checkout ca2f10c
  3. 修改食谱,让大家的生活更美好。看起来您需要更改数据存储区变量。配方文件中类似 d.setVar(network, "true") 的内容。 (如果可行,请发送补丁)

Discord and eMail 是联系 openbmc 社区的首选方式。如果您还有其他问题,请告诉我们进展情况。