]> code.ossystems Code Review - openembedded-core.git/commit
python: fix parse dependencies
authorRoss Burton <ross.burton@intel.com>
Fri, 26 Jan 2018 10:44:35 +0000 (10:44 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Jan 2018 08:49:44 +0000 (08:49 +0000)
commita321b28c8dafc9775f465ce7c0f6bcbe8ccc2945
tree80c927c15a5d8dffbeda8d837e9c4e34a1b20500
parent8644d7bde6a30aec4e666ad59ff148f04c616a21
python: fix parse dependencies

Adding a file-checksums flag for the manifest to do_split_packages doesn't
achieve anything as do_split_packages isn't a task.  Changing this to tha task
do_package shows that the path is wrong, but we also know that as the manifest
is in SRC_URI any changes to it would result in a rebuild anyway, so this line
can be deleted.

However there is a problem of the recipe not being reparsed when it needs to be,
if the JSON has changed.  The main bitbake process can hash the recipe and use
stale data from the cache as it hasn't considered the manifest file changing.  This
results in non-determinism warnings when the worker parses the recipe again and
comes to a different hash (as the manifest has changed, so the packaging
changed).

Solve this by calling bb.parse.mark_dependency() to declare the dependency on
the manifest.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/python/python3_3.5.3.bb
meta/recipes-devtools/python/python_2.7.13.bb