<?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>8893</bug_id>
          
          <creation_ts>2016-01-07 01:46:12 +0000</creation_ts>
          <short_desc>do_cleanall: Function failed: Network access disabled through BB_NO_NETWORK</short_desc>
          <delta_ts>2016-05-12 15:05:07 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57606</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-01-07 01:46:12 +0000</bug_when>
    <thetext>The meta-selinux layer:
$ bitbake refpolicy-mls -ccleanall

Log data follows:
| DEBUG: Executing python function do_cleanall
| DEBUG: Python function do_cleanall finished
| ERROR: Function failed: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command git -c core.fsyncobjectfiles=0 ls-remote git://github.com/TresysTechnology/refpolicy.git  (for url None)
ERROR: Task 3 (/buildarea/lyang1/test_qemux86/layers/meta-selinux/recipes-security/refpolicy/refpolicy-mls_git.bb, do_cleanall) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 4 tasks of which 0 didn&apos;t need to be rerun and 1 failed.

do_cleanall should not require NETWORK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57645</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-01-07 16:41:09 +0000</bug_when>
    <thetext>I suspect this is a recipe using SRCREV = ${AUTOREV} since that would trigger a network lookup using git ls-remote. We need to do that to construct PV which is needed to construct the WORKDIR paths so we know where to clean things. I therefore worry about how we&apos;d try and fix this...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62149</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-05-12 15:05:07 +0000</bug_when>
    <thetext>This is a configuration issue with the layer/recipe in question. If they&apos;re set to use the network for revisions/branch lookup, they need to use the network. cleanall works fine if recipes aren&apos;t setup that way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>