[poky] PREMIRRORS in yocto, do they actually work?
Yu Ke
ke.yu at intel.com
Thu Jan 6 02:22:22 PST 2011
On Jan 06, 08:18, Koen Kooi wrote:
>
> Op 6 jan 2011, om 08:00 heeft Yu Ke het volgende geschreven:
>
> > On Jan 02, 20:01, Koen Kooi wrote:
> >>
> >> 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/sc
> rip
> >> ts"; 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
> >
> > I try to reproduce the issue by:
> > 1. add the following to meta/conf/distro/poky.conf
> >
> > PREMIRRORS_append = "\
> > git://.*/.* http://www.angstrom-distribution.org/sources/\n"
> >
> > Note: your original URL "http:/www.angstrom-distribution.org/sources/" miss a slash after the "http:/", which cause the "Unknown fetch Error".
> >
> > 2. bitbake -f -c fetch x-load
> > then the fetcher will try to fetch http://www.angstrom-distribution.org/sources/git_www.sakoman.net.git.x-load-omap3.git_65ed00323f3807197a83abc75d62ed2a8d3f60de.tar.gz, and failed, because this tar ball does not exist in this mirror.
> >
> > so the could you add the corresponding tar ball to the web site, and try again?
>
> I can confirm the following works: http://gitorious.org/angstrom/angstrom-layers/commit/e78d521cf0f9310867b660df7743087efdc2642a
Good to see that PREMIRRORS works in your side. one thing i am not quite sure is that the above commit use http://www.angstrom-distribution.org/unstable/sources/ as PREMIRRORS, but http://www.angstrom-distribution.org/unstable/sources/ only contains a webcam-tools svn repo, which looks not a valid mirror, so i am not sure how it works. or maybe i miss something here?
Regards
Ke
>
> regards,
>
> Koen
>
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
More information about the poky
mailing list