[yocto] [meta-raspberrypi][PATCH] sdcard_image-rpi: Prevent taskhash mismatch

Andrei Gherzan andrei at gherzan.ro
Tue Jun 14 11:30:25 PDT 2016


Hi Paul,

On Wed, Jun 08, 2016 at 02:02:29PM +0100, Paul Barker wrote:
> As recently discussed on the mailing list, bitbake now issues an error when the
> task hash computed by the bitbake master differs from the task hash computed by
> the bitbake worker. This usually happens when the task hash depends on the date
> and time for some reason.
>
> This affects IMAGE_CMD_rpi-sdimg and is fixed by excluding the dependency on the
> current date and time from the command.
>
> Signed-off-by: Paul Barker <paul at paulbarker.me.uk>
> ---
>  classes/sdcard_image-rpi.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
> index 3b4f13f..a8d83a3 100644
> --- a/classes/sdcard_image-rpi.bbclass
> +++ b/classes/sdcard_image-rpi.bbclass
> @@ -72,7 +72,7 @@ SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
>  FATPAYLOAD ?= ""
>
>  IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
> -IMAGE_CMD_rpi-sdimg[vardepsexclude] = "IMAGEDATESTAMP"
> +IMAGE_CMD_rpi-sdimg[vardepsexclude] = "DATETIME"
>
>  IMAGE_CMD_rpi-sdimg () {

I can't seem to replicate this issue with currrent poky master. Any idea
why? Maybe this got fixed in poky?



--
Andrei Gherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160614/492ffda3/attachment.pgp>


More information about the yocto mailing list