]> code.ossystems Code Review - openembedded-core.git/commit
bitbake.conf: Set AUTOREV to have a vardepvalue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Jan 2018 15:14:35 +0000 (15:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 6 Jan 2018 10:13:39 +0000 (10:13 +0000)
commit7b8ee9285a197784d51e339f1603240f49435846
tree1847c239c45e0962833732f860f64680ad2f4cdb
parent2c27df943035b4df7c5d0be1ab8d0f4f3a31f4d2
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf
meta/lib/oeqa/selftest/cases/sstatetests.py