diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-05 15:14:35 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-06 22:32:22 +0000 |
commit | 3ab6e17ffeabc7c82d35ab2c01a85b6286ddfa34 (patch) | |
tree | 5e0d3a2ed397a9429fd70c5447c5c2f53b3a0758 /meta/conf | |
parent | ccdc770fcbc619f08875fb110f6f41eecbff0e1b (diff) | |
download | poky-3ab6e17ffeabc7c82d35ab2c01a85b6286ddfa34.tar.gz |
bitbake.conf: Set AUTOREV to have a vardepvalue
If you have a recipe which does not include SRCPV in PV but does set
SRCREV = "${AUTOREV}" and you run do_fetch, then change the repo to a
new commit then run do_unpack, do_unpack will fail since the new commit
doesn't exist in the repo that was fetched.
The problem is the revision chosen is not represented in the do_fetch
task hash. It if were, the fetch would rerun first and the commit would be
present. It works when PV includes SRCPV since that does contain the chosen
commit from the AUTOREV.
The solution is to include the SRCPV value into the representation of AUTOREV
used for checksum calculation purposes.
Add a selftest for this issue.
(From OE-Core rev: 7b8ee9285a197784d51e339f1603240f49435846)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 15feb573db..93afb13166 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -663,6 +663,7 @@ FETCHCMD_hg = "/usr/bin/env hg" | |||
663 | SRCDATE = "${DATE}" | 663 | SRCDATE = "${DATE}" |
664 | SRCREV ??= "INVALID" | 664 | SRCREV ??= "INVALID" |
665 | AUTOREV = "${@bb.fetch2.get_autorev(d)}" | 665 | AUTOREV = "${@bb.fetch2.get_autorev(d)}" |
666 | AUTOREV[vardepvalue] = "${SRCPV}" | ||
666 | # Set Dynamically in base.bbclass | 667 | # Set Dynamically in base.bbclass |
667 | # SRCPV = "${@bb.fetch2.get_srcrev(d)}" | 668 | # SRCPV = "${@bb.fetch2.get_srcrev(d)}" |
668 | SRCPV[vardepvalue] = "${SRCPV}" | 669 | SRCPV[vardepvalue] = "${SRCPV}" |