Bug 1256

Summary: fetcher reports a download failure when only the SRC_URI checksums mismatched
Product: [Build System, Metadata & Runtime] BitBake Reporter: Scott Garman <scott.a.garman>
Component: bitbakeAssignee: Ke Yu <ke.yu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 1.0   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard: patch sent out. Aug 9
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Scott Garman 2011-07-18 18:12:06 UTC
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 'Fetcher failure for URL: 'http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2'. Unable to fetch URL http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2 from any source.' 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 'Fetcher failure for URL: 'http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2'. Unable to fetch URL http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2 from any source.' 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 '1'
ERROR: '/toastssd/poky/meta/recipes-multimedia/libpng/libpng_1.2.46.bb' 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.