[oe] Correct versioning of unversioned source in git

Koen Kooi koen at dominion.thruhere.net
Thu Mar 13 09:59:38 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tomas Novotny schreef op 13-03-14 10:08:
> Hi all,
> 
> there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
> fetches sources from unversioned git which contains definitions of some
> boards (in fact it is something like a store). I'm not sure with correct
> versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
> "<some_gitrev_I_want>" correct? Will be change of SRCREV (only) catched
> by build system (I'm curious how OE handles age of the rev in git)? Or do
> I need to raise PV to 1.1 and so on with every change to SRCREV?

The answer changes if you have more than one buildhost. If you have only one
buildhost and don't care about other people rebuilding the exact same
versions, 1.0+git${SRCPV} will work.

If you have more than one buildhost and/or care about other people
rebuilding the exact same, you'll need to increase PR (or PV) everytime
SRCREV changes. That will still cause some discrepancies if someone rebuilds
after >1 SRCREV change, but upgrade paths should work when increasing PV
(not with PR!).

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFTIYGKMkyGM64RGpERAtHvAJ96mw6U8PacUt+DOagTFjWtwsNd2wCbB3nr
KSym/Y5aAMUbEKx61oNDiH0=
=Qvq7
-----END PGP SIGNATURE-----




More information about the Openembedded-devel mailing list