* Test in do_patch() fails for annotated tags
@ 2014-11-06 23:12 Jeff Wang
2014-11-07 16:44 ` Bruce Ashfield
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Wang @ 2014-11-06 23:12 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 602 bytes --]
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
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3145 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Test in do_patch() fails for annotated tags
2014-11-06 23:12 Test in do_patch() fails for annotated tags Jeff Wang
@ 2014-11-07 16:44 ` Bruce Ashfield
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2014-11-07 16:44 UTC (permalink / raw)
To: Jeff Wang; +Cc: Yocto Project Discussion
Jeff and I have already exchanged email on this yesterday. While using a tag
for the SRCREV is not typically something we suggest .. tweaking the
ancestor check is fine in this case, since it works in both scenarios.
I have a patch queued to address this, and am soaking it now.
Bruce
On Thu, Nov 6, 2014 at 6:12 PM, Jeff Wang <jeffrey.wang@ll.mit.edu> wrote:
> 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
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-07 16:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 23:12 Test in do_patch() fails for annotated tags Jeff Wang
2014-11-07 16:44 ` Bruce Ashfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.