[bitbake-devel] [PATCH] fetch2: Sort file checksums by value, not path

Richard Purdie richard.purdie at linuxfoundation.org
Fri Jan 18 12:45:22 UTC 2013


On Wed, 2012-12-19 at 18:26 -0500, Tyler Hall wrote:
> Changing the path to a file could change the task hash even if the file
> still has the same checksum. This occurs when the task depends on
> multiple files and the sort order of their paths changes. Usually the
> sorting is consistent because layers tend to have the same relative
> paths, but this should take care of other configuations.
> 
> The problem arose when using a .bbappend to add files to a recipe in
> another layer. If the layer is located alongside the other layers and
> their parent directory is moved, the hash does not change. However,
> moving the .bbappend layer outside of the common directory can change
> the path sort order and the task hash.
> 
> Signed-off-by: Tyler Hall <tylerwhall at gmail.com>
> ---
>  lib/bb/fetch2/__init__.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Good catch, merged to master, thanks.

Richard





More information about the bitbake-devel mailing list