Bug 529

Summary: fetcher failback fails if trying to access CVS archive and not able to connect
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Kumar Gala <galak>
Component: meta-yoctoAssignee: Ke Yu <ke.yu>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium CC: ke.yu, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 1.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Kumar Gala 2010-11-10 06:28:27 UTC
See errors like:


NOTE: Fetch cvs://anoncvs:anoncvs@anoncvs.handhelds.org/cvs;module=apps/update-rc.d;tag=r0_7
ERROR: Task failed: Fetch failed: Unable to fetch URL cvs://anoncvs:anoncvs@anoncvs.handhelds.org/cvs;module=apps/update-rc.d;tag=r0_7 from any source.
ERROR: Task 1217 (virtual:native:/local/home/galak/poky-laverne-4.0/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb, do_fetch) failed with 1
ERROR: 'virtual:native:/local/home/galak/poky-laverne-4.0/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb' failed


In the environment CVS access is not available so the failback to a non-CVS method is not happening.
Comment 1 Ke Yu 2011-02-27 04:24:57 UTC
I tried in 1.0 master and 0.9, both works in my box.

In 1.0 1.0 master, with default mirror config, the update-rc.d will be fetched successfully from PREMIRROR http://autobuilder.yoctoproject.org/sources/ as expected. 

if move the  autobuilder mirror from PREMIRROR to MIRROR, as below patches, then the update-rc.d will firstly failed to fetch from main SRC_URI. it then will fall back to MIRROR, i.e. autobuilder, and succeed.
"
diff --git a/meta/conf/distro/poky.conf b/meta/conf/distro/poky.conf
index 71e40de..4d24890 100644
--- a/meta/conf/distro/poky.conf
+++ b/meta/conf/distro/poky.conf
@@ -152,7 +152,6 @@ require conf/distro/include/world-broken.inc

 PREMIRRORS ?= "\
 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
-cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
@@ -161,6 +160,7 @@ svk://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"

 MIRRORS =+ "\
+cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
 ftp://.*/.*      http://autobuilder.yoctoproject.org/sources/ \n \
 http://.*/.*     http://autobuilder.yoctoproject.org/sources/ \n \
 https://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n"
"

so change it to WORKFORME