summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-02-25 16:18:50 -0800
committerSaul Wold <sgw@linux.intel.com>2011-02-25 16:20:31 -0800
commit7943338d1fea2b9e49b02f1c9f68b4a47188b883 (patch)
tree60bdaca2a11838a4d9fb6af04a9cd04689133579 /meta/recipes-devtools/file
parent9c63e3fd295e4fceb196baadd53801bba3e3e1b3 (diff)
downloadpoky-7943338d1fea2b9e49b02f1c9f68b4a47188b883.tar.gz
file: add wrapper to file-native
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>
Diffstat (limited to 'meta/recipes-devtools/file')
-rw-r--r--meta/recipes-devtools/file/file_5.04.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-devtools/file/file_5.04.bb b/meta/recipes-devtools/file/file_5.04.bb
index b7451372f5..1f9c78eb7b 100644
--- a/meta/recipes-devtools/file/file_5.04.bb
+++ b/meta/recipes-devtools/file/file_5.04.bb
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=6a7382872edb68d33e1a9398b6e03
10 10
11DEPENDS = "zlib file-native" 11DEPENDS = "zlib file-native"
12DEPENDS_virtclass-native = "zlib-native" 12DEPENDS_virtclass-native = "zlib-native"
13PR = "r1" 13PR = "r2"
14 14
15SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \ 15SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \
16 file://stringb-compat.patch \ 16 file://stringb-compat.patch \
@@ -30,4 +30,10 @@ do_configure_prepend() {
30 30
31FILES_${PN} += "${datadir}/misc/*.mgc" 31FILES_${PN} += "${datadir}/misc/*.mgc"
32 32
33do_install_append_virtclass-native() {
34 create_cmdline_wrapper ${D}/${bindir}/file \
35 --magic-file ${datadir}/misc/magic.mgc
36}
37
38
33BBCLASSEXTEND = "native" 39BBCLASSEXTEND = "native"