Re: [yocto] File magic/sdk relocation

2023-07-25 Thread Richard Purdie
On Sun, 2023-07-23 at 14:03 +0200, Alexander Kanavin wrote: > On Fri, 21 Jul 2023 at 19:11, Oleksandr Hnatiuk via > lists.yoctoproject.org > wrote: > > > > On Mon, Jun 19, 2023 at 08:27 PM, Alexander Kanavin wrote: > > > > On closer look, it should even say: > > export

Re: [yocto] File magic/sdk relocation

2023-07-23 Thread Alexander Kanavin
On Fri, 21 Jul 2023 at 19:11, Oleksandr Hnatiuk via lists.yoctoproject.org wrote: > > On Mon, Jun 19, 2023 at 08:27 PM, Alexander Kanavin wrote: > > On closer look, it should even say: > export MAGIC="\$OECORE_NATIVE_SYSROOT/usr/share/misc/magic.mgc" > > Hi Alexander, > > We have submitted the

Re: [yocto] File magic/sdk relocation

2023-07-21 Thread Oleksandr Hnatiuk via lists.yoctoproject.org
On Mon, Jun 19, 2023 at 08:27 PM, Alexander Kanavin wrote: > > On closer look, it should even say: > export MAGIC="\$OECORE_NATIVE_SYSROOT/usr/share/misc/magic.mgc" Hi Alexander, We have submitted the patch[1] which fixes the build for our case but doesn't change the contents of file.sh which

Re: [yocto] File magic/sdk relocation

2023-07-04 Thread Oleksiy Obitotskyy via lists.yoctoproject.org
Sdk could be build on different host platforms with slightly different OS versions. Some binaries could be missing, some have different behavior from version to version. Hence we prefer to share our own tool set, i.e. buildtools tarball to keep environment consistent. Another moment that

Re: [yocto] File magic/sdk relocation

2023-07-04 Thread Alexander Kanavin
It's fine to have both, you just need to write a good commit message explaining the issue. Also you need to explain why you need file binaries from oe-core in the sdk/tarball, instead of relying on file the host system. Alex On Tue, 4 Jul 2023 at 13:41, Oleksiy Obitotskyy via

Re: [yocto] File magic/sdk relocation

2023-07-04 Thread Oleksiy Obitotskyy via lists.yoctoproject.org
Hi Alexander. We already use temporary fix, like: > > > diff --git a/meta/recipes-devtools/file/file_5.44.bb > b/meta/recipes-devtools/file/file_5.44.bb > index 3090d346ed..3a23e7721d 100644 > --- a/meta/recipes-devtools/file/file_5.44.bb > +++ b/meta/recipes-devtools/file/file_5.44.bb > @@

Re: [yocto] File magic/sdk relocation

2023-07-03 Thread Alexander Kanavin
ion of `file` in > do_populate_sysroot > > Regards, > Oleksandr > > > From: Alexander Kanavin > Sent: Tuesday, June 27, 2023 7:46 PM > To: Oleksandr Hnatiuk -X (ohnatiuk - GLOBALLOGIC INC at Cisco) > > Cc: yocto@lists.yoctoproject.org > Subject: Re: [yocto

Re: [yocto] File magic/sdk relocation

2023-07-03 Thread Oleksandr Hnatiuk via lists.yoctoproject.org
t status 1. The same error is repeated for each invocation of `file` in do_populate_sysroot Regards, Oleksandr From: Alexander Kanavin Sent: Tuesday, June 27, 2023 7:46 PM To: Oleksandr Hnatiuk -X (ohnatiuk - GLOBALLOGIC INC at Cisco) Cc: yocto@lists.yoctoproject.org Subject: Re: [yocto] File

Re: [yocto] File magic/sdk relocation

2023-06-27 Thread Alexander Kanavin
Before we think of a solution, can you provide steps or a test case where the issue can be seen? It’s in one of the most important tasks, so I’d like to know why it hasn’t been a problem and what is the scenario where it is. Alex On Tue 27. Jun 2023 at 18.09, Oleksandr Hnatiuk via

Re: [yocto] File magic/sdk relocation

2023-06-27 Thread Oleksandr Hnatiuk via lists.yoctoproject.org
Hi. After debugging this, I found there is another issue apart from the way MAGIC is set in the recipe. The do_populate_sysroot task doesn't use the value of MAGIC variable that is available in tasks that build the code. `file -b` is invoked from is_elf function in meta/lib/oe/package.py via

Re: [yocto] File magic/sdk relocation

2023-06-21 Thread Oleksiy Obitotskyy via lists.yoctoproject.org
nux 4.18.0, stripped Regards, Oleksiy From: Alexander Kanavin Sent: Monday, June 19, 2023 19:27 To: alex.kana...@gmail.com Cc: Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco) ; yocto@lists.yoctoproject.org Subject: Re: [yocto] File magic/sdk relocation On

Re: [yocto] File magic/sdk relocation

2023-06-19 Thread Alexander Kanavin
On closer look, it should even say: export MAGIC="\$OECORE_NATIVE_SYSROOT/usr/share/misc/magic.mgc" If you can test this and confirm that it works, a patch would be welcome. Alex On Mon, 19 Jun 2023 at 18:55, Alexander Kanavin via lists.yoctoproject.org wrote: > > I think there is a mistake in

Re: [yocto] File magic/sdk relocation

2023-06-19 Thread Alexander Kanavin
I think there is a mistake in the file recipe (and rpm has the problem too): cat <<- EOF > ${D}${SDKPATHNATIVE}/environment-setup.d/file.sh export MAGIC="$OECORE_NATIVE_SYSROOT${datadir}/misc/magic.mgc" EOF $OECORE_NATIVE_SYSROOT should be prefixed with a \ to

[yocto] File magic/sdk relocation

2023-06-19 Thread Oleksiy Obitotskyy via lists.yoctoproject.org
Hi, I'm working on master oe core master branch and run into problem with file for nativesdk (buildtools tarball). File started to use MAGIC variable initialized from .../environment-setup.d/file.sh, like