After updating to d26cbff22a3dfc3f5682b44d6e753f1c4091a56d, many recipes which use CVS or SVN will fail if BB_NO_NETWORK=1 even though there is a valid tarball in the mirrors. I have this mirror setup: SOURCE_DIR ?= "/work/misc/Poky/sources" PREMIRRORS = "\ http://.*/.* file://${SOURCE_DIR}/ \n \ https://.*/.* file://${SOURCE_DIR}/ \n \ ftp://.*/.* file://${SOURCE_DIR}/ \n \ bzr://.*/.* file://${SOURCE_DIR}/ \n \ cvs://.*/.* file://${SOURCE_DIR}/ \n \ git://.*/.* file://${SOURCE_DIR}/ \n \ hg://.*/.* file://${SOURCE_DIR}/ \n \ osc://.*/.* file://${SOURCE_DIR}/ \n \ p4://.*/.* file://${SOURCE_DIR}/ \n \ svk://.*/.* file://${SOURCE_DIR}/ \n \ svn://.*/.* file://${SOURCE_DIR}/ \n" I get errors like this: ERROR: Function 'Network access disabled through BB_NO_NETWORK but access rquested with command /usr/bin/env wget -t 5 -q --passive-ftp -P /home/local/efacec_omap_poky/downloads 'http://anonymous@autobuilder.yoctoproject.org/sources/config_cvs.sv.gnu.org__20080123.tar.gz' (for url None)' failed ERROR: Build of do_fetch failed ERROR: Traceback (most recent call last): File "/home/local/poky-amltd/bitbake/lib/bb/build.py", line 361, in exec_task return _exec_task(fn, task, d, quieterr) File "/home/local/poky-amltd/bitbake/lib/bb/build.py", line 324, in _exec_task event.fire(TaskFailed(exc.name, logfn, localdata), localdata) File "/home/local/poky-amltd/bitbake/lib/bb/event.py", line 122, in fire fire_class_handlers(event, d) File "/home/local/poky-amltd/bitbake/lib/bb/event.py", line 71, in fire_class_handlers ret = bb.utils.better_eval("tmpHandler(e)", locals) File "/home/local/poky-amltd/bitbake/lib/bb/utils.py", line 387, in better_eval return eval(source, _context, locals) File "<string>", line 1, in <module> File "tmpHandler(e)", line 112, in tmpHandler File "/usr/lib/python2.6/posixpath.py", line 65, in join if b.startswith('/'): AttributeError: 'NetworkAccess' object has no attribute 'startswith' However, my mirror does have this tar file available: $ ls -l /work/misc/Poky/sources/config_cvs.sv.gnu.org__20080123.tar.gz -rw-rw-r-- 1 gthomas gthomas 44938 Sep 28 01:34 /work/misc/Poky/sources/config_cvs.sv.gnu.org__20080123.tar.gz Note: this particular recipe was working before (I don't have a hash, sorry) This, and bug #782, make BB_NO_NETWORK=1 unusable :-(
The other related bug is #752, not 782
A quick test shows that: diff --git a/meta/conf/distro/poky.conf b/meta/conf/distro/poky.conf index 400b8c2..71e40de 100644 --- a/meta/conf/distro/poky.conf +++ b/meta/conf/distro/poky.conf @@ -150,7 +150,7 @@ BB_GENERATE_MIRROR_TARBALLS ??= "0" require conf/distro/include/world-broken.inc -PREMIRRORS =+ "\ +PREMIRRORS ?= "\ bzr://.*/.* http://autobuilder.yoctoproject.org/sources/ \n \ cvs://.*/.* http://autobuilder.yoctoproject.org/sources/ \n \ git://.*/.* http://autobuilder.yoctoproject.org/sources/ \n \ "fixes" this. I need to investigate a little further but this should get things working again for you at least.
I've checked in the change mentioned here so this is fixed.