[oe] Hash based SCMs and OpenEmbedded/Bitbake

Koen Kooi k.kooi at student.utwente.nl
Thu Sep 4 09:54:56 UTC 2008


Holger Freyther wrote:
> On Wednesday 03 September 2008 19:39:39 Koen Kooi wrote:
>
>>> 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 :)
>
> I have seen that in the neuros recipes and removed that... I don't want to say
> what I thought when I saw this the first time.... :)

Please don't remove it, it screws up the versioning ('r' > 'g')






More information about the Openembedded-devel mailing list