<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>753</bug_id>
          
          <creation_ts>2011-02-22 16:17:25 +0000</creation_ts>
          <short_desc>More problems with BB_NO_NETWORK=1</short_desc>
          <delta_ts>2011-02-23 15:41:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11959</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-02-22 16:17:25 +0000</bug_when>
    <thetext>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 ?= &quot;/work/misc/Poky/sources&quot;
PREMIRRORS = &quot;\
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&quot;

I get errors like this:
ERROR: Function &apos;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 &apos;http://anonymous@autobuilder.yoctoproject.org/sources/config_cvs.sv.gnu.org__20080123.tar.gz&apos; (for url None)&apos; failed
ERROR: Build of do_fetch failed
ERROR: Traceback (most recent call last):
  File &quot;/home/local/poky-amltd/bitbake/lib/bb/build.py&quot;, line 361, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File &quot;/home/local/poky-amltd/bitbake/lib/bb/build.py&quot;, line 324, in _exec_task
    event.fire(TaskFailed(exc.name, logfn, localdata), localdata)
  File &quot;/home/local/poky-amltd/bitbake/lib/bb/event.py&quot;, line 122, in fire
    fire_class_handlers(event, d)
  File &quot;/home/local/poky-amltd/bitbake/lib/bb/event.py&quot;, line 71, in fire_class_handlers
    ret = bb.utils.better_eval(&quot;tmpHandler(e)&quot;, locals)
  File &quot;/home/local/poky-amltd/bitbake/lib/bb/utils.py&quot;, line 387, in better_eval
    return eval(source, _context, locals)
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;tmpHandler(e)&quot;, line 112, in tmpHandler
  File &quot;/usr/lib/python2.6/posixpath.py&quot;, line 65, in join
    if b.startswith(&apos;/&apos;):
AttributeError: &apos;NetworkAccess&apos; object has no attribute &apos;startswith&apos;

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&apos;t have a hash, sorry)

This, and bug #782, make BB_NO_NETWORK=1 unusable :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11960</commentid>
    <comment_count>1</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-02-22 16:18:47 +0000</bug_when>
    <thetext>The other related bug is #752, not 782</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11983</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-02-23 01:54:58 +0000</bug_when>
    <thetext>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 ??= &quot;0&quot;
 
 require conf/distro/include/world-broken.inc
 
-PREMIRRORS =+ &quot;\
+PREMIRRORS ?= &quot;\
 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \


&quot;fixes&quot; this. I need to investigate a little further but this should get things working again for you at least.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12016</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-02-23 15:41:26 +0000</bug_when>
    <thetext>I&apos;ve checked in the change mentioned here so this is fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>