"buildhistory_list_files" generates text files containing list of files that go into various packages/images. The file list contains file sizes as well. However, the listed "file size" of a directory entry depends on the file system of the build host. So, for example, building on EXT4 the folder size is always listed as 4096 bytes. The same folder is listed with different size when building on tmpfs. This can make direct comparison of two build histories difficult. Considering that the listed folder size is meaningless anyway (it has no relation to the size of the package/image), this patch addresses the problem by removing the directory entry sizes entirely from the generated text files.
Signed-off-by: Juro Bystricky <juro.bystri...@intel.com> --- meta/classes/buildhistory.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 601b29f..1cc7c44 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -508,9 +508,11 @@ buildhistory_list_files() { # List the files in the specified directory, but exclude date/time etc. # This awk script is somewhat messy, but handles where the size is not printed for device files under pseudo if [ "$3" = "fakeroot" ] ; then - ( cd $1 && ${FAKEROOTENV} ${FAKEROOTCMD} find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 ) + ( cd $1 && ${FAKEROOTENV} ${FAKEROOTCMD} find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' | \ + awk '{if (substr($0,1,1) =="d"){split($0,a," ",b); print b[0]a[1]b[1]a[2]b[2]a[3]" "b[4]a[5]}else print}' > $2 ) else - ( cd $1 && find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 ) + ( cd $1 && find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' | \ + awk '{if (substr($0,1,1) =="d"){split($0,a," ",b); print b[0]a[1]b[1]a[2]b[2]a[3]" "b[4]a[5]}else print}' > $2) fi } -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core