[yocto] recipe md5sum and sha256sum changing

2015-07-30 Thread Edward Vidal
Hello All,
I used the following to create a recipe.

 recipetool create  -o 
/home/vidal/wkg/yocto/myhdl_recipe/poky/meta/recipes-devtools/python/python-myhdl_1.0.0.bb
  https://github.com/jandecaluwe/myhdl.git

This provided the following:
LICENSE = CLOSED
LIC_FILES_CHKSUM = 

SRC_URI = https://github.com/jandecaluwe/myhdl.git;
SRC_URI[md5sum] = 6f56a9bcbd03a9c8036f87f32f9adc47
SRC_URI[sha256sum] = 
7766c49947c6574c8fb35d0dfcd795ada1e4e457ab5b15499d7000909b8e46e9

When I run bitbake python-mydhl
the md5sum and sha256sum change everytime I run the command.

WARNING: Renaming 
/home/vidal/wkg/yocto/myhdl_recipe/poky/build/downloads/myhdl.git to 
/home/vidal/wkg/yocto/myhdl_recipe/poky/build/downloads/myhdl.git_bad-checksum_a4b1db68cde5b996661caa6abce2cb45
ERROR: Fetcher failure for URL: 'https://github.com/jandecaluwe/myhdl.git'. 
Checksum mismatch!
File: '/home/vidal/wkg/yocto/myhdl_recipe/poky/build/downloads/myhdl.git' has 
md5 checksum a4b1db68cde5b996661caa6abce2cb45 when 
6f56a9bcbd03a9c8036f87f32f9adc47 was expected
File: '/home/vidal/wkg/yocto/myhdl_recipe/poky/build/downloads/myhdl.git' has 
sha256 checksum 
dc35dc44e0a480097eb1c4dd3df739396e96c8d7648bd9b9d347d02d34bbcd01 when 
7766c49947c6574c8fb35d0dfcd795ada1e4e457ab5b15499d7000909b8e46e9 was expected
If this change is expected (e.g. you have upgraded to a new version without 
updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = a4b1db68cde5b996661caa6abce2cb45
SRC_URI[sha256sum] = 
dc35dc44e0a480097eb1c4dd3df739396e96c8d7648bd9b9d347d02d34bbcd01
Otherwise you should retry the download and/or check with upstream to determine 
if the file has become corrupted or otherwise unexpectedly modified.

ERROR: Function failed: Fetcher failure for URL: 
'https://github.com/jandecaluwe/myhdl.git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: 
/home/vidal/wkg/yocto/myhdl_recipe/poky/build/tmp/work/cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi/python-myhdl/1.0.0-r0/temp/log.do_fetch.6277
ERROR: Task 4 
(/home/vidal/wkg/yocto/myhdl_recipe/poky/meta/recipes-devtools/python/python-myhdl_1.0.0.bb,
 do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 421 tasks of which 413 didn't need to be rerun 
and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  
/home/vidal/wkg/yocto/myhdl_recipe/poky/meta/recipes-devtools/python/python-myhdl_1.0.0.bb,
 do_fetch
Summary: There were 3 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Thanks in advance Edward Vidal Jr.
e-mail devel...@sbcglobal.net
915-595-1613-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] recipe md5sum and sha256sum changing

2015-07-30 Thread Burton, Ross
On 30 July 2015 at 20:08, Edward Vidal devel...@sbcglobal.net wrote:

 SRC_URI = https://github.com/jandecaluwe/myhdl.git;
 SRC_URI[md5sum] = 6f56a9bcbd03a9c8036f87f32f9adc47
 SRC_URI[sha256sum] =
 7766c49947c6574c8fb35d0dfcd795ada1e4e457ab5b15499d7000909b8e46e9


recipetool obviously doesn't detect that your HTTP URL is actually a git
clone.  Change the URL to something like git://github.com/jandecaluwe/...
so it knows to use a git fetcher and not wget.  This also means you don't
need to set the checksums.

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto