<?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>549</bug_id>
          
          <creation_ts>2010-11-25 10:02:08 +0000</creation_ts>
          <short_desc>Allow definining download mirrors easily in configuration</short_desc>
          <delta_ts>2011-03-15 03:34:42 +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>0.9</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>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</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>10940</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2010-11-25 10:02:08 +0000</bug_when>
    <thetext>At the moment defining download mirror (PREMIRRORS) requires the use of a custom bbclass. Ideally this should be able to be configured more simply in local.conf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10956</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-11-29 04:04:22 +0000</bug_when>
    <thetext>There is a syntax that can be used in conf files, see local.conf&apos;s example of SSTATE_MIRRORS. Perhaps this bug should be about documenting this format more widely?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11246</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2010-12-20 10:21:06 +0000</bug_when>
    <thetext>I had another look at this. At the very least there is a need for further documentation on this option because it&apos;s easy to get &quot;wrong&quot;. The two problems I had were:

(a) If you don&apos;t have a trailing \n in your PREMIRRORS then you get lots of &quot;too many values to unpack while evaluating&quot; errors at parse time. This could be fixed by adding an extra carriage return to the start of PREMIRRORS_append in poky.bbclass.

(b) Not defining the initial regex correctly resulting in completely broken mirror fetch URLs, e.g. for http it has to be http://.*/.*

I wonder if it would simply be easier to add a single mirror URL variable, which if defined would add mirror entries to the end of PREMIRRORS for all protocols? This would allow people to configure mirrors easily whilst still retaining the existing flexibility for those that need it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12111</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-02-25 02:05:12 +0000</bug_when>
    <thetext>(a) at least has been fixed in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12615</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-03-15 03:34:42 +0000</bug_when>
    <thetext>Commit 0dd3f7ccd170c in oe-core master addresses this, so I&apos;m marking this issue as resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>