Hi Ross,
Thank you for your quick response!
That makes sense now.

Regarding your statement:
"That dependency in btrfs-tools might be actually not required, or you
might want to make the recipe depend on python3-native."
May I know if something has to be fixed from the meta-openembedded or
generic yocto build?
If not, what would be the best way to approach it?

Thanks again.

Best Regards,
Sheng


On Thu, 25 Apr 2024 at 18:34, Ross Burton <[email protected]> wrote:

> On 25 Apr 2024, at 13:29, Sheng Lean Tan via lists.openembedded.org
> <[email protected]> wrote:
> >
> > Hi,
> > Good day to openembedded community!
> >
> > This is my first post - hope this is the right place to ask for help
> regarding a build issue, as refer from here:
> >
> https://gerrit.openbmc.org/c/openbmc/openbmc/+/71017/comment/195b742f_6cf8da09/
> >
> > Currently, we saw this issue when building this on openBMC which is
> based on Yocto:-
> > The error found when manually run bitbake btrfs-tools-native is as
> follows:
> >  checking for a Python interpreter with version >= 3.4... python3
> >  checking for python3...
> /home/apwillia/local/builds/lf-build-yosemite4/tmp/hosttools/python3
> >  checking for python3 version... 3.11
> >  checking for python3 platform... linux
> >  checking for GNU default python3 prefix... ${prefix}
> >  checking for GNU default python3 exec_prefix... ${exec_prefix}
> >  checking for python3 script directory (pythondir)...
> ${libdir}/python3.11/site-packages
> >  checking for python3 extension module directory (pyexecdir)...
> ${libdir}/python3.11/site-packages
> >  checking for python-3.11... no
> >  configure: error: Package requirements (python-3.11) were not met:
> >
> >  No package 'python-3.11' found
> >
> > To bypass this, we have to manually remove in OpenBMC with this tweak:
> > PACKAGECONFIG:remove:pn-btrfs-tools-native = "python"
> >
> > May I know if this is a real bug, or if we did miss something from our
> configuration?
>
> It looks like the native btrfs-tools is trying to build against the host
> python:
>
> >  checking for python3...
> /home/apwillia/local/builds/lf-build-yosemite4/tmp/hosttools/python3
>
> So the problem is that your build host doesn’t have python3-dev or similar
> installed.
>
> That dependency in btrfs-tools might be actually not required, or you
> might want to make the recipe depend on python3-native.
>
> Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198706): 
https://lists.openembedded.org/g/openembedded-core/message/198706
Mute This Topic: https://lists.openembedded.org/mt/105729019/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to