<?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>13353</bug_id>
          
          <creation_ts>2019-05-16 20:31:35 +0000</creation_ts>
          <short_desc>bitbake git fetcher does not honour BB_FETCH_PREMIRRORONLY</short_desc>
          <delta_ts>2022-06-09 06:56:05 +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.7</version>
          <rep_platform>All</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Bunk">bunk</reporter>
          <assigned_to name="Pavel Zhukov">pavel</assigned_to>
          <cc>akuster</cc>
    
    <cc>kristupas.savickas</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>pavel</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>83840</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Bunk">bunk</who>
    <bug_when>2019-05-16 20:31:35 +0000</bug_when>
    <thetext>With BB_FETCH_PREMIRRORONLY set:

If there is no tarball of the git repo on the premirror, then a normal download from upstream is performed.

IF there is an outdated git tarball that does not contain the wanted revision on the premirror, then upstream is added as branch and fetched from.

Neither of these should happen with BB_FETCH_PREMIRRORONLY, both cases should result in fetch failures just as happens for tarballs.

This bug makes it pretty hard to ensure that a local premirror contains all the sources so that images can still be rebuilt years or decades later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83873</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-05-21 22:09:35 +0000</bug_when>
    <thetext>The email:

From:	richard.purdie@linuxfoundation.org
To:	Robert Yang &lt;liezhi.yang@windriver.com&gt;, bitbake-devel@lists.openembedded.org
Subject:	Re: [bitbake-devel] [PATCH 2/2] fetch2: Unify BB_FETCH_PREMIRRORONLY
Date:	Fri, 22 Mar 2019 11:18:38 +0000

has some further background on this issue, its one we never quite got resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84300</commentid>
    <comment_count>2</comment_count>
      <attachid>4533</attachid>
    <who name="Kristupas Savickas">kristupas.savickas</who>
    <bug_when>2019-06-21 07:00:06 +0000</bug_when>
    <thetext>Created attachment 4533
package.json</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84301</commentid>
    <comment_count>3</comment_count>
    <who name="Kristupas Savickas">kristupas.savickas</who>
    <bug_when>2019-06-21 07:00:43 +0000</bug_when>
    <thetext>Sorry, this got attached to the wrong issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84685</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-08-15 15:27:57 +0000</bug_when>
    <thetext>Armin can&apos;t get to this so I&apos;ve asked Robert to do so for M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93422</commentid>
    <comment_count>5</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2022-06-09 06:56:05 +0000</bug_when>
    <thetext>This should be fixed in: https://git.openembedded.org/bitbake/commit/?id=b47ecab3e3aad5c5c376ec023aa82a51aa0f3b86

In case if expected revision is missed in the mirror and BB_FETCH_PREMIRRORONLY is set NetworkAccess exception is raised</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4533</attachid>
            <date>2019-06-21 07:00:06 +0000</date>
            <delta_ts>2019-06-21 07:00:06 +0000</delta_ts>
            <desc>package.json</desc>
            <filename>package.json</filename>
            <type>application/json</type>
            <size>330</size>
            <attacher name="Kristupas Savickas">kristupas.savickas</attacher>
            
              <data encoding="base64">ewogICJuYW1lIjogImZhY3RvcnktdHVubmVsIiwKICAidmVyc2lvbiI6ICIxLjAuMCIsCiAgImRl
c2NyaXB0aW9uIjogIiIsCiAgIm1haW4iOiAic3JjL2luZGV4LmpzIiwKICAic2NyaXB0cyI6IHsK
ICAgICJ0ZXN0IjogImVjaG8gXCJFcnJvcjogbm8gdGVzdCBzcGVjaWZpZWRcIiAmJiBleGl0IDEi
CiAgfSwKICAiYmluIjogewogICAgImZhY3RvcnktdHVubmVsIjogImxpYi9zZXJ2ZXIuanMiCiAg
fSwKICAiYXV0aG9yIjogIktyaXN0dXBhcyBTYXZpY2thcyIsCiAgImxpY2Vuc2UiOiAiSVNDIiwK
ICAiZGVwZW5kZW5jaWVzIjogewogICAgIndzIjogIl42LjEuMiIKICB9Cn0K
</data>

          </attachment>
      

    </bug>

</bugzilla>