All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] file: add wrapper to nativesdk-file
@ 2014-10-11  9:07 Hongxu Jia
  2014-10-11  9:07 ` [PATCH 1/1] " Hongxu Jia
  2015-01-06 12:48 ` [PATCH 0/1] " Jack Mitchell
  0 siblings, 2 replies; 6+ messages in thread
From: Hongxu Jia @ 2014-10-11  9:07 UTC (permalink / raw)
  To: openembedded-core, ross.burton

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(+)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/1] file: add wrapper to nativesdk-file
  2014-10-11  9:07 [PATCH 0/1] file: add wrapper to nativesdk-file Hongxu Jia
@ 2014-10-11  9:07 ` Hongxu Jia
  2014-10-11  9:20   ` Rongqing Li
  2015-01-06 12:48 ` [PATCH 0/1] " Jack Mitchell
  1 sibling, 1 reply; 6+ messages in thread
From: Hongxu Jia @ 2014-10-11  9:07 UTC (permalink / raw)
  To: openembedded-core, ross.burton

"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.

Signed-off-by: Hongxu Jia <hongxu.jia@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"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] file: add wrapper to nativesdk-file
  2014-10-11  9:07 ` [PATCH 1/1] " Hongxu Jia
@ 2014-10-11  9:20   ` Rongqing Li
  2014-10-11  9:24     ` Hongxu Jia
  2014-10-11 10:25     ` Hongxu Jia
  0 siblings, 2 replies; 6+ messages in thread
From: Rongqing Li @ 2014-10-11  9:20 UTC (permalink / raw)
  To: Hongxu Jia; +Cc: openembedded-core



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.
and make sure the commit id can be found in oe-core.

-Roy


>
> Signed-off-by: Hongxu Jia <hongxu.jia@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"
>

-- 
Best Reagrds,
Roy | RongQing Li


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] file: add wrapper to nativesdk-file
  2014-10-11  9:20   ` Rongqing Li
@ 2014-10-11  9:24     ` Hongxu Jia
  2014-10-11 10:25     ` Hongxu Jia
  1 sibling, 0 replies; 6+ messages in thread
From: Hongxu Jia @ 2014-10-11  9:24 UTC (permalink / raw)
  To: Rongqing Li; +Cc: openembedded-core

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

//Hongxu

> and make sure the commit id can be found in oe-core.
>
> -Roy
>
>
>>
>> Signed-off-by: Hongxu Jia <hongxu.jia@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"
>>
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] file: add wrapper to nativesdk-file
  2014-10-11  9:20   ` Rongqing Li
  2014-10-11  9:24     ` Hongxu Jia
@ 2014-10-11 10:25     ` Hongxu Jia
  1 sibling, 0 replies; 6+ messages in thread
From: Hongxu Jia @ 2014-10-11 10:25 UTC (permalink / raw)
  To: Rongqing Li; +Cc: openembedded-core

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.
> 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

> -Roy
>
>
>>
>> Signed-off-by: Hongxu Jia <hongxu.jia@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"
>>
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/1] file: add wrapper to nativesdk-file
  2014-10-11  9:07 [PATCH 0/1] file: add wrapper to nativesdk-file Hongxu Jia
  2014-10-11  9:07 ` [PATCH 1/1] " Hongxu Jia
@ 2015-01-06 12:48 ` Jack Mitchell
  1 sibling, 0 replies; 6+ messages in thread
From: Jack Mitchell @ 2015-01-06 12:48 UTC (permalink / raw)
  To: openembedded-core

On 11/10/14 10:07, Hongxu Jia wrote:
> 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(+)
> 

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 `\x1c\x04\x1e�
    ' invalid
/eng/jmitchell/oe-sensors/sdk/sysroots/x86_64-oecore-linux/usr/share/misc/magic.mgc,
1: Warning: type `\x1c\x04\x1e�
  ' 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


-- 
  Jack Mitchell (jack@embed.me.uk)
  Embedded Systems Engineer
  Cambridgeshire, UK
  http://www.embed.me.uk
-- 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-06 13:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-11  9:07 [PATCH 0/1] file: add wrapper to nativesdk-file Hongxu Jia
2014-10-11  9:07 ` [PATCH 1/1] " Hongxu Jia
2014-10-11  9:20   ` Rongqing Li
2014-10-11  9:24     ` Hongxu Jia
2014-10-11 10:25     ` Hongxu Jia
2015-01-06 12:48 ` [PATCH 0/1] " Jack Mitchell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.