file-native needs a wrapper to pass the correct path to the magic.mgc file
This was found to be the case when sstate-cache is used because file hardcodes
the path to the magic.mgc file.
[BUGID #775]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
DEPENDS = "zlib file-native"
DEPENDS_virtclass-native = "zlib-native"
-PR = "r1"
+PR = "r2"
SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \
file://stringb-compat.patch \
FILES_${PN} += "${datadir}/misc/*.mgc"
+do_install_append_virtclass-native() {
+ create_cmdline_wrapper ${D}/${bindir}/file \
+ --magic-file ${datadir}/misc/magic.mgc
+}
+
+
BBCLASSEXTEND = "native"