eclipse-leda / leda-distro

Eclipse Leda provides a Yocto-based build setup for SDV.EDGE components
https://eclipse-leda.github.io/leda/
Apache License 2.0
14 stars 8 forks source link

sdv-rauc-bundle missing VERSION_ID #40

Closed mikehaller closed 1 year ago

mikehaller commented 1 year ago

Describe the bug The rauc bundle information is missing the version identifier, instead the value ${VERSION_ID} is seen in the bundle metadata.

To Reproduce Steps to reproduce the behaviour:

$ rauc --cert=../../../../../examples/example-ca/development-1.cert.pem --key=../../../../../examples/example-ca/private/development-1.key.pem --keyring=../../../../../examples/example-ca/ca.cert.pem info sdv-rauc-bundle-qemux86-64.raucb 
rauc-Message: 14:10:52.375: Failed to resolve realpath for '/dev/disk/by-uuid/c88d12c3-41c9-4695-b552-e0f40acc7dfe'
rauc-Message: 14:10:52.375: Reading bundle: /workspaces/leda-distro-fork/build/tmp/deploy/images/qemux86-64/sdv-rauc-bundle-qemux86-64.raucb
rauc-Message: 14:10:52.405: Verifying bundle signature... 
rauc-Message: 14:10:52.713: Verified detached signature by 'O = Test Org, CN = Test Org Development-1'
Compatible:     'Eclipse Leda'
Version:        '${VERSION_ID}'
Description:    'sdv-rauc-bundle version 1.0-r0'
Build:          '20230119140324'
Hooks:          ''
Bundle Format:  plain

Expected behaviour The rauc bundle metadata should show the leda version as Version identifier, e.g. 0.0.3-40-gaeb06a3

It seems that the sdv-rauc-bundle.bb recipe is using a variable (VERSION_ID) which is not properly populated anywhere. In the past, it was using git to populate the value, which didn't work properly, so this needs more investigation.

mikehaller commented 1 year ago

Fixed by https://github.com/eclipse-leda/meta-leda/pull/131