<?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>1256</bug_id>
          
          <creation_ts>2011-07-18 18:12:06 +0000</creation_ts>
          <short_desc>fetcher reports a download failure when only the SRC_URI checksums mismatched</short_desc>
          <delta_ts>2011-08-10 06:30:59 +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>1.0</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>patch sent out. Aug 9</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="Ke Yu">ke.yu</assigned_to>
          <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>14767</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-07-18 18:12:06 +0000</bug_when>
    <thetext>A recent change to the bitbake fetcher causes the fetcher to re-try downloads when a bad checksum is detected. This is a good change, but the default user interface does not report any problems with the checksum, but acts as if the download itself failed:

NOTE: Running task 1 of 1 (ID: 0, /toastssd/poky/meta/recipes-multimedia/libpng/libpng_1.2.46.bb, do_fetch)
NOTE: package libpng-1.2.46-r0: task do_fetch: Started
ERROR: Function &apos;Fetcher failure for URL: &apos;http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2&apos;. Unable to fetch URL http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2 from any source.&apos; failed
ERROR: Logfile of failure stored in: /toastssd/poky/build/tmp/work/i586-poky-linux/libpng-1.2.46-r0/temp/log.do_fetch.20615
Log data follows:
| NOTE: fetch http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2
| NOTE: fetch http://autobuilder.yoctoproject.org/sources/libpng-1.2.46.tar.bz2
| ERROR: Function &apos;Fetcher failure for URL: &apos;http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2&apos;. Unable to fetch URL http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2 from any source.&apos; failed
NOTE: package libpng-1.2.46-r0: task do_fetch: Failed
ERROR: Task 0 (/toastssd/poky/meta/recipes-multimedia/libpng/libpng_1.2.46.bb, do_fetch) failed with exit code &apos;1&apos;
ERROR: &apos;/toastssd/poky/meta/recipes-multimedia/libpng/libpng_1.2.46.bb&apos; failed

This confused me as I went back and forth using wget to fetch the URL successfully, and it took me a while before I realized (using bitbake -DD) that the problem was due to a checksum mismatch.

A solution to this is to have bitbake report the checksum mismatch at the default debug level.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15366</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-08-10 06:30:59 +0000</bug_when>
    <thetext>Fixed in master in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6bb2a22b3606f2cf1e5a4c95414d82864fda2f31</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>