[RFC PATCH] bitbake.conf/sanity: Add dependency on host xz

Richard Purdie
2016-01-09T16:42:08Z

Times change and xz is becoming the defacto compression format and
utility. Adapt to the times and assume that the system provides xz.

This leads into us being able to use xz for sstate instead of gzip.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 9f35558..ab28660 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -3,7 +3,7 @@
#

SANITY_REQUIRED_UTILITIES ?= "patch diffstat makeinfo git bzip2 tar \
- gzip gawk chrpath wget cpio perl file"
+ gzip gawk chrpath wget cpio perl file xz"

def bblayers_conf_file(d):
return os.path.join(d.getVar('TOPDIR', True), 'conf/bblayers.conf')
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 371af31..4088c22 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -178,6 +178,7 @@ ASSUME_PROVIDED = "\
texinfo-native \
bash-native \
sed-native \
+ xz-native \
"
# gzip-native should be listed above?