file: add wrapper to nativesdk-file
cover file: add wrapper to nativesdk-file
The following changes since commit 0172cded27d73437784fe1578110937aede563eb:
build-appliance-image: Update to dizzy head revision (2014-10-10 22:40:57 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib hongxu/fix-nativesdk-file
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-nativesdk-file
Hongxu Jia (1):
file: add wrapper to nativesdk-file
meta/recipes-devtools/file/file_5.18.bb | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 1 line
1.9.1
PATCH 1/1 file: add wrapper to nativesdk-file
"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.
--- meta/recipes-devtools/file/file_5.18.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta/recipes-devtools/file/file_5.18.bb +5 -0
@@ -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"
Signature · 1 line
1.9.1
Quoted 8 lines · Hongxu Jia
"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. and make sure the commit id can be found in oe-core.
-Roy
Quoted 21 lines
Signed-off-by Hongxu Jia <[email protected]>--- meta/recipes-devtools/file/file_5.18.bb | 5 +++++ 1 file changed, 5 insertions(+)meta/recipes-devtools/file/file_5.18.bb +5
-0@@ -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"
Signature · 2 lines
Best Reagrds, Roy | RongQing Li
Quoted 9 lines · Rongqing Li
Quoted 6 lines · Hongxu Jia
"file" command in exported SDK doesn't work:
...$ file sysroots/ file: could not find any valid magic files! ...
Quoted 5 lines
Quoted 2 lines
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 <[email protected]> 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]
...
//Hongxu
Quoted 27 lines
and make sure the commit id can be found in oe-core.
-Roy
Quoted 21 lines
Signed-off-by Hongxu Jia <[email protected]>--- meta/recipes-devtools/file/file_5.18.bb | 5 +++++ 1 file changed, 5 insertions(+)meta/recipes-devtools/file/file_5.18.bb +5
-0@@ -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"
Quoted 9 lines · Rongqing Li
Quoted 6 lines · Hongxu Jia
"file" command in exported SDK doesn't work:
...$ file sysroots/ file: could not find any valid magic files! ...
Quoted 7 lines
Quoted 2 lines
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. and make sure the commit id can be found in oe-core.
Use oe-core commit to instead, update git:
git://git.pokylinux.org/poky-contrib hongxu/fix-nativesdk-file
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-nativesdk-file
//Hongxu
Quoted 25 lines
-Roy
Quoted 21 lines
Signed-off-by Hongxu Jia <[email protected]>--- meta/recipes-devtools/file/file_5.18.bb | 5 +++++ 1 file changed, 5 insertions(+)meta/recipes-devtools/file/file_5.18.bb +5
-0@@ -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"
Quoted 6 lines · Hongxu Jia
The following changes since commit
0172cded27d73437784fe1578110937aede563eb:build-appliance-image: Update to dizzy head revision (2014-10-10 22:40:57 +0100)
are available in the git repository at:
Quoted 9 lines
git://git.pokylinux.org/poky-contribhongxu/fix-nativesdk-file
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-nativesdk-fileHongxu Jia (1):
file: add wrapper to nativesdk-filemeta/recipes-devtools/file/file_5.18.bb | 5 +++++ 1 file changed, 5 insertions(+)
With my most recent oe build I'm getting an error when trying to use file from the SDK. My target machine is x86 and my SDK is x86_64.
Is anybody else seeing this?
[jmitchell@newvsbuild filetest]$ file test.txt
eng/jmitchell/oe-sensors/sdk/sysroots/x86_64-oecore-linux/usr/share/misc/magic.mgc, 1: Warning: offset `�
' invalid
/eng/jmitchell/oe-sensors/sdk/sysroots/x86_64-oecore-linux/usr/share/misc/magic.mgc, 1: Warning: type `�
' invalid
/eng/jmitchell/oe-sensors/sdk/sysroots/x86_64-oecore-linux/usr/share/misc/magic.mgc, 6: Warning: offset Firmware v' invalid /eng/jmitchell/oe-sensors/sdk/sysroots/x86_64-oecore-linux/usr/share/misc/magic.mgc, 6: Warning: type Firmware v' invalid
......
/eng/jmitchell/oe-sensors/sdk/sysroots/x86_64-oecore-linux/usr/share/misc/magic.mgc, 1916: Warning: type `.' invalid
file: Size of `/eng/jmitchell/oe-sensors/sdk/sysroots/x86_64-oecore-linux/usr/share/misc/magic.mgc' 3043460 is not a multiple of 248
Signature · 5 lines
Jack Mitchell ([email protected]) Embedded Systems Engineer Cambridgeshire, UK http://www.embed.me.uk --