Bug 6762 - Bitbake should have option to disable md5sum check on downloaded file (set in SRC_URI)
Summary: Bitbake should have option to disable md5sum check on downloaded file (set in...
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium normal
Target Milestone: 1.7 M4
Assignee: Alejandro Hernandez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-09-25 13:03 UTC by Gatis Paeglis
Modified: 2014-10-10 18:15 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gatis Paeglis 2014-09-25 13:03:48 UTC
Google fonts are packaged on demand, so for every download there is a new md5sum

For example opensans : 

https://www.google.com/fonts/download?kit=3hvsV99qyKCBS55e5pvb3ltkqrIMaAZWyLYEoB48lSQ


so check of SRC_URI[md5sum]  will always fail.

Current workaround for this is:

do_fetch() {
    cd ${WORKDIR}
    wget -c https://www.google.com/fonts/download?kit=3hvsV99qyKCBS55e5pvb3ltkqrIMaAZWyLYEoB48lSQ -O Open_Sans.zip
    unzip Open_Sans.zip -d Open_Sans
}
Comment 1 Richard Purdie 2014-09-25 13:21:41 UTC
I think you can set BB_STRICT_CHECKSUM = "0" in the recipe to avoid needing one
Comment 2 Gatis Paeglis 2014-09-25 13:50:02 UTC
There is not such variable in the mega-manual http://www.yoctoproject.org/docs/1.6.1/mega-manual/mega-manual.html

Also I tried to set BB_STRICT_CHECKSUM = "0", but it had no effect.
Comment 3 Gatis Paeglis 2014-10-02 12:46:19 UTC
Ok, setting BB_STRICT_CHECKSUM = "" to actually helps. But still, would be good to mention this in the mega manual.

So BB_STRICT_CHECKSUM = "" works fine to disable md5sum check, but BB_STRICT_CHECKSUM = "0" results in errors.
Comment 4 Alejandro Hernandez 2014-10-03 15:46:53 UTC
It is documented on the Bitbake manual:

http://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html
Comment 6 Alejandro Hernandez 2014-10-10 18:15:32 UTC
Disregard last comment, this is the correct commit:
http://git.openembedded.org/bitbake/commit/?id=b8ed2098bdea2afd93ab4e3e1b834f3a31cb60de