Bug 529 - fetcher failback fails if trying to access CVS archive and not able to connect
Summary: fetcher failback fails if trying to access CVS archive and not able to connect
Status: RESOLVED WORKSFORME
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.0 M4
Assignee: Ke Yu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-11-10 06:28 UTC by Kumar Gala
Modified: 2011-02-27 04:24 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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