[oe] Hash based SCMs and OpenEmbedded/Bitbake

Koen Kooi k.kooi at student.utwente.nl
Wed Sep 3 17:39:39 UTC 2008


Holger Freyther wrote:
> Hey guys,
>
> we have a couple of issues with hash based SCMs (like git) and how we handle
> them.
>
> 1.) sane-srcrev. During stabilisation you want to lock down a rev, so you set
> one in sane-srcrev.
>
> Issue: The PV says something like PV = "1.0.0+gitr${SRCREV}". Now the SRCREV
> is fixed and will not go through the python hook. So the resulting package
> will be PV = "1.0.0+gitrdeadbeef" and if you want to upgrade to the
> ref "affe" you will have a package called "1.0.0+gitraffe" which is not
> upgradable.

The trick I have been lately:

PV = "0.0+${PR}+gitr${SRCREV}"

You increment PR everytime you bump SRCREV. Ugly, but works quite well :)

regards,

Koen





More information about the Openembedded-devel mailing list