如何将BitBake配方指向本地文件/ Yocto构建无法获取libtalloc的源

时间:2017-01-24 20:51:51

标签: linux raspberry-pi yocto bitbake

我试图使用控制台图像为Raspberry Pi3构建Yocto,它给了我一些构建错误,大多数我已经能够解决

bitbake -c cleansstate libname
bitbake libname

然而,现在它已经到了libtalloc并且它无法获取源文件。

我访问了源代码的URL,我可以下载它尝试获取的确切tar.gz存档。即http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz

我甚至把它放到/ build / downloads文件夹中。

但是当我尝试咬嘴时,它一直给我同样的错误

有没有办法可以将构建过程配置为始终使用http或wget进行提取,似乎这些脚本都被破坏了,因为它无法获取存在的文件。

谢谢,

以下是完整的打印输出:

WARNING: libtalloc-2.1.8-r0 do_fetch: Failed to fetch URL http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz, attempting MIRRORS if available
ERROR: libtalloc-2.1.8-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-ATqIt180d4"; export SSH_AUTH_SOCK="/run/user/1000/keyring-Ubo22d/ssh"; export PATH="/home/dmitry/rpi/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/usr/bin/python-native:/home/dmitry/poky-morty/scripts:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/dmitry/rpi/build/tmp/sysroots/raspberrypi2/usr/bin/crossscripts:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/usr/bin:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/sbin:/home/dmitry/rpi/build/tmp/sysroots/x86_64-linux/bin:/home/dmitry/poky-morty/scripts:/home/dmitry/poky-morty/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"; export HOME="/home/dmitry"; /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/dmitry/rpi/build/downloads 'http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz' --progress=dot -v failed with exit code 4, output:
--2017-01-24 12:35:19--  http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz
Resolving samba.org (samba.org)... 144.76.82.156, 2a01:4f8:192:486::443:2
Connecting to samba.org (samba.org)|144.76.82.156|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2017-01-24 12:35:20--  (try: 2)  http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz
Connecting to samba.org (samba.org)|144.76.82.156|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Giving up.


ERROR: libtalloc-2.1.8-r0 do_fetch: Fetcher failure for URL: 'http://samba.org/ftp/talloc/talloc-2.1.8.tar.gz'. Unable to fetch URL from any source.
ERROR: libtalloc-2.1.8-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/dmitry/rpi/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/libtalloc/2.1.8-r0/temp/log.do_fetch.80102
ERROR: Task (/home/dmitry/poky-morty/meta-openembedded/meta-networking/recipes-support/libtalloc/libtalloc_2.1.8.bb:do_fetch) failed with exit code '1'

2 个答案:

答案 0 :(得分:2)

  

有没有办法可以将构建过程配置为始终使用http或wget进行提取,似乎这些脚本都被破坏了,因为它无法获取存在的文件。

脚本已经同时使用wget和http。他们也没有真正破坏,维护samba下载服务器的人在过去一周内改变了几件事:我相信libtalloc食谱主SRC_URI只需要改为https://download.samba.org/pub/talloc/talloc-${PV}.tar.gz(当前规范的samba下载服务器)。

如果情况确实如此,我确定meta-oe维护者会欣赏补丁。

答案 1 :(得分:0)

我将以下补丁应用于meta-openembedded并将其构建完成。有几个samba链接已经坏了。

http://pastebin.com/0uTnAY4g

此致 微米。