Bug 11271

Summary: RefKit: 'devtool modify mraa' fails when using eSDK
Product: [Yocto Project Subprojects] IoT Reference OS Kit Reporter: Henry Bruce <henry.bruce>
Component: intel-iot-refkit-toolsAssignee: Mikko Ylinen <mikko.ylinen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning
Version: 2.3   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Henry Bruce 2017-03-30 19:42:58 UTC
Steps to recreate
-----------------
Build mimimal eSDK for refkit-image-common (using workaround in bug 11270) 
Then is a new shell 
$ refkit-x86_64-corei7-64-toolchain-ext-refkit.0.sh -d /path/to/esdk
$ cd /path/to/esdk
$ source environment-setup-corei7-64-refkit-linux
$ devtool modify mraa
Parsing recipes: 100% |##########################################| Time: 0:00:11
Parsing of 2044 .bb files complete (0 cached, 2044 parsed). 2821 targets, 447 skipped, 0 masked, 0 errors.
NOTE: Executing RunQueue Tasks
NOTE: Executing do_fetch...
NOTE: Executing do_unpack...
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
NOTE: Patching...
NOTE: Executing RunQueue Tasks
NOTE: Executing do_patch...
ERROR: Taskhash mismatch 600f778125a2745b6b1151894e7be5e8 versus db421fa785f029c76ef76c03df5f621d for /path/to/esdk/layers/meta-refkit/recipes-sensors/mraa/mraa_1.5.1.bb.do_patch
Comment 1 Mikko Ylinen 2017-04-04 06:30:38 UTC
The problem seems to come from:

$ bitbake-diffsigs -t mraa fetch
basehash changed from 6b6b4ef1fd4a195478020d63beae33ef to 46ef46a80edc9379bd5b946b32826e04
Variable SRC_URI value changed from 'git://github.com/intel-iot-devkit/mraa.git;protocol=http;tag=v${PV}' to 'git://github.com/intel-iot-devkit/mraa.git;protocol=http;tag=v${PV}            file://0001-mraa.c-Fix-strsep-crash.patch'
Dependency on checksum of file 0001-mraa.c-Fix-strsep-crash.patch was added


Variable SRC_URI value is git://github.com/intel-iot-devkit/mraa.git;protocol=http;tag=v${PV}            file://0001-mraa.c-Fix-strsep-crash.patch

and 

Variable SRC_URI value is git://github.com/intel-iot-devkit/mraa.git;protocol=http;tag=v${PV}