<?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>4091</bug_id>
          
          <creation_ts>2013-03-25 02:16:58 +0000</creation_ts>
          <short_desc>Add support to bitbake fetcher to fetch files from bare repos for PREMIRRORS</short_desc>
          <delta_ts>2025-10-02 15:05:03 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeff Polk">jeff.polk</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>31068</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Polk">jeff.polk</who>
    <bug_when>2013-03-25 02:16:58 +0000</bug_when>
    <thetext>WR ships our releases and updates via bare git repositories.  We also ship complete PREMIRRORS so that no network access or downloads are required but those directories and updates for them, while maintained internally as repositories, must currently be updated as regular directories.  We&apos;d like to be able to harmonize the mechanisms used for our distributions and updates by directly supporting bare git repositories as PREMIRRORS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31118</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-03-25 14:33:21 +0000</bug_when>
    <thetext>Doesn&apos;t this work already in master?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34024</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-06-20 21:12:25 +0000</bug_when>
    <thetext>I&apos;m struggling to believe this doesn&apos;t work with current master since everything in DL_DIR exists as bare git repos and the mirror tarballs are even bare git repos. I&apos;m closing this as WORKSFORME since I can&apos;t see the problem here. If there is a problem, please repoen with more details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37836</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-11 10:59:02 +0000</bug_when>
    <thetext>Inside bitbake/lib/bb/tests/fetch.py I see:

self.d.setVar(&quot;PREMIRRORS&quot;, &quot;git://someserver.org/bitbake git://git.openembedded.org/bitbake \n&quot;)

Marking this as VERIFIED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44144</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-06-23 19:02:37 +0000</bug_when>
    <thetext>I&apos;m reopening this.  I found the missing piece of information.

The request is not to mirror bare repositories.  The request is to mirror -files- -from- bare repositories.

In otherwords, if I have a git repository of all of the downloads.  I shouldn&apos;t have to git clone meta-downloads, and then point the PREMIRRORS to &apos;file://...meta-downloads&apos;.

Instead I should be able to point the PREMIRRORS to &apos;git://...meta-downloads.git;branch=daisy&apos;  It will then get a PREMIRROR call and attempt to extract just the requested file(s) from the bare git repository.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45801</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-09-24 14:33:27 +0000</bug_when>
    <thetext>Hi Mark, I hadn&apos;t seen this until now. The fetcher is &quot;dumb&quot; in some senses, in particular it doesn&apos;t know anything about the content of the git repo. This sounds like you want the fetcher to optionally fetch the repo, then unpack it and see if it contains something else which looks like an artefact (either another repo or tarball) which can then be passed back to the original &quot;fetch&quot;.

I&apos;m not sure this recursive fetching is something we want to support or encourage to be quite honest. If you did want to do it, I&apos;d suggest a different fetcher module for it using a different url type to distinguish it from the &quot;normal&quot; git fetcher. That backend would get calls in from the premirrors code and it would be up to it how it dealt with them.

As such, this isn&apos;t something I&apos;m planning to work on though and I am not sure how feasible this is, just thinking out loud for anyone who may want to try implementing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56656</commentid>
    <comment_count>6</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2015-11-19 16:06:54 +0000</bug_when>
    <thetext>This was REOPENED</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75627</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2017-08-03 19:15:04 +0000</bug_when>
    <thetext>Just so it&apos;s clear, I&apos;m still tracking this.  Even though it is in a future state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84507</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-07-25 15:32:29 +0000</bug_when>
    <thetext>Mark, it&apos;s been 2 years, are you still tracking this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84536</commentid>
    <comment_count>9</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2019-07-26 18:34:11 +0000</bug_when>
    <thetext>Yes I am.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91535</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-09-23 15:25:03 +0000</bug_when>
    <thetext>Robert, do we still want this bug opened or has it been fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96592</commentid>
    <comment_count>11</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-09-28 15:08:23 +0000</bug_when>
    <thetext>Robert, do we still care about this ER ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102870</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-10-02 15:05:03 +0000</bug_when>
    <thetext>No activity so declaring obsolete.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>