【问题标题】:Some git repos don't work with yocto/bitbake一些 git repos 不适用于 yocto/bitbake
【发布时间】:2015-05-07 22:26:13
【问题描述】:

Yocto 在获取时出错:

ERROR: Function failed: Fetcher failure for URL: 'git://github.com/robclark/libdri2.git;protocol=http;branch=master'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/pi20/poky/olimex/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libdri2/1_1.0.0+gitAUTOINC+4f1eef3183-r0/temp/log.do_fetch.20462
ERROR: Task 3562 (/home/user/poky/meta-sunxi/recipes-graphics/xorg-xserver/libdri2_git.bb, do_fetch) failed with exit code '1'
ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/home/user/poky/olimex/downloads/git2/github.com.ssvb.xf86-video-fbturbo.git'...
error: RPC failed; result=22, HTTP code = 200
fatal: The remote end hung up unexpectedly

repo git://github.com/robclark/libdri2.git;protocol=http;branch=master 在不与 yocto 一起使用时效果很好。 可能是this bug,所以我尝试通过手动修改bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py来申请the patch,但它并没有改变任何东西。

【问题讨论】:

标签: git proxy yocto bitbake


【解决方案1】:

所以,有一个非常可怕的解决方法,但至少它有效。我在第 96 行编辑了文件 poky/bitbake/lib/bb/fetch2/git.py 以强制使用 http 而不是 git。

【讨论】:

  • 您已经指定了protocol=http,所以不要这样做。查看日志以尝试了解问题所在。 (它会显示正在运行的确切命令)。
猜你喜欢
  • 2014-10-19
  • 2016-08-19
  • 1970-01-01
  • 1970-01-01
  • 2016-06-24
  • 2017-05-13
  • 1970-01-01
  • 2019-11-19
  • 2020-03-12
相关资源
最近更新 更多