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 (#60460): https://lists.yoctoproject.org/g/yocto/message/60460
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