On 10/11/2014 05:20 PM, Rongqing Li wrote:


On 10/11/2014 05:07 PM, Hongxu Jia wrote:
"file" command in exported SDK doesn't work:
...
$ file sysroots/
file: could not find any valid magic files!
...

In commit 7943338d1fea2b9e49b02f1c9f68b4a47188b883, it added wrapper
to file-native. Do the same thing for nativesdk-file.

TA;
but please add commit title after commit id.

In poky, I could not find its 'From OE-Core rev',
and manually search in oe-core, I found:
...
commit 68d548cbae729eaea8ce1403dc95ff63c4a7375c
Author: Saul Wold <s...@linux.intel.com>
Date:   Fri Feb 25 16:18:50 2011 -0800

    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 <s...@linux.intel.com>
...

//Hongxu

and make sure the commit id can be found in oe-core.

-Roy



Signed-off-by: Hongxu Jia <hongxu....@windriver.com>
---
  meta/recipes-devtools/file/file_5.18.bb | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/meta/recipes-devtools/file/file_5.18.bb b/meta/recipes-devtools/file/file_5.18.bb
index f2f8d03..9068b93 100644
--- a/meta/recipes-devtools/file/file_5.18.bb
+++ b/meta/recipes-devtools/file/file_5.18.bb
@@ -27,4 +27,9 @@ do_install_append_class-native() {
          --magic-file ${datadir}/misc/magic.mgc
  }

+do_install_append_class-nativesdk() {
+    create_cmdline_wrapper ${D}/${bindir}/file \
+        --magic-file ${datadir}/misc/magic.mgc
+}
+
  BBCLASSEXTEND = "native nativesdk"



--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to