[yocto] Test in do_patch() fails for annotated tags
Jeff Wang
jeffrey.wang at ll.mit.edu
Thu Nov 6 15:12:39 PST 2014
Commit 92c1ece6c347030d48995a36f4c67861356e59d3 causes the test in
do_patch() in kernel-yocto.bbclass to fail if ${machine_srcrev} is an
annotated tag. The check is meant to ensure that ${machine_srcrev} is an
ancestor of HEAD, but if ${machine_srcrev} is a tag, then "$(git
rev-parse --verify ${machine_srcrev})" evaluates to the SHA of the tag
instead of what it's pointing to.
Replacing "$(git rev-parse --verify ${machine_srcrev})" with "$(git
rev-parse --verify ${machine_srcrev}~0)" seems to fix the problem. See
http://stackoverflow.com/a/1863712/1454667
--
Jeff Wang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3145 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141106/1d04518a/attachment.bin>
More information about the yocto
mailing list