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 lists.yoctoproject.org
<ohnatiuk=cisco....@lists.yoctoproject.org> wrote:

> 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
> `subprocess.check_output`.
> The environment of that subprocess call doesn't have the MAGIC variable
> set so `file -b` fails.
> (It uses `file` from $BUILDDIR/tmp/hosttools/file)
> Verified this by providing a modified env with hardcoded MAGIC to
> `subprocess.check_output` after which the error is gone.
>
> What would the right solution for this look like?
>
> Regards,
> Oleksandr
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60461): https://lists.yoctoproject.org/g/yocto/message/60461
Mute This Topic: https://lists.yoctoproject.org/mt/99626082/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to