[poky] PREMIRRORS in yocto, do they actually work?

Koen Kooi koen at dominion.thruhere.net
Sun Jan 2 11:01:32 PST 2011


Op 2 jan 2011, om 18:53 heeft Esben Haabendal het volgende geschreven:

> On Sun, 2011-01-02 at 18:08 +0100, Koen Kooi wrote:
>> Hi,
>> 
>> I would like to have the fetchter try my PREMIRROS first before trying to fetch from git. In OE I have the following in a bbclass:
>> 
>> PREMIRRORS_append () {
>> git://.*/.* http://www.angstrom-distribution.org/unstable/sources/
>> }
>> 
>> When used in OE that works, but in yocto it doesn't. So I tried to do it poky style in a .inc:
>> 
>> PREMIRRORS_append = "\
>> git://.*/.*   http:/www.angstrom-distribution.org/sources/ \n"
>> 
>> Which also doesn't work since it doesn't try to fetch from there, but it does mention "http:/www.angstrom-distribution.org/sources/" in the fetch error message when git read-tree fails.
>> 
>> So my question: how do I make it work in yocto like it works in OE?
> 
> What about
> 
> PREMIRRORS_append = "\
> git://.*/.*   http:/www.angstrom-distribution.org/sources/\n"
> 
> ie. without the space before \n
> 
> I have no idea if it makes sense, but might be worth a try.

Same thing:

DEBUG: Executing task do_fetch
NOTE: package x-load-1_1.44+r17+gitr6f3a26101303051e0f91b6213735b68ce804e94e-r17: task do_fetch: Started
DEBUG: Running export HOME="/home/koen"; export GIT_CONFIG="/OE/tentacle/build/tmp-angstrom_2010_x/sysroots/x86_64-linux/usr/etc/gitconfig"; export PATH="/OE/tentacle/build/tmp-angstrom_2010_x/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi:/OE/tentacle/build/tmp-angstrom_2010_x/sysroots/armv7a-angstrom-linux-gnueabi/usr/bin/crossscripts:/OE/tentacle/build/tmp-angstrom_2010_x/sysroots/x86_64-linux/usr/sbin:/OE/tentacle/build/tmp-angstrom_2010_x/sysroots/x86_64-linux/usr/bin:/OE/tentacle/build/tmp-angstrom_2010_x/sysroots/x86_64-linux/sbin:/OE/tentacle/build/tmp-angstrom_2010_x/sysroots/x86_64-linux//bin:/OE/tentacle/sources/openembedded/scripts:/OE/tentacle/sources/bitbake/bin:/OE/tentacle/sources/bitbake/bin:/OE/bitbake/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/X11/bin:/usr/local/bin:/usr/local/enlightenment/bin:/usr/local/j2re1.4.1/bin:/usr/X11/bin:/usr/local/bin:/usr/local/enlightenment/bin:/usr/local/j2re1.4.1/bin:/OE/tentacle/sources/openembedded/scripts"; git log --pretty=oneline -n 1 6f3a26101303051e0f91b6213735b68ce804e94e -- 2> /dev/null | wc -l
ERROR: Task failed: Unknown fetch Error: http:/www.angstrom-distribution.org/sources/
NOTE: package x-load-1_1.44+r17+gitr6f3a26101303051e0f91b6213735b68ce804e94e-r17: task do_fetch: Failed

As a work around I fetch it using OE into a shared DL_DIR first and then try a yocto build.....




More information about the poky mailing list