[OE-core] [PATCH] scripts/oe-init-bashrc: add more user-friendly oe-setup utility

Christopher Larson kergoth at gmail.com
Tue May 22 15:37:19 UTC 2018


I agree, there are a ton of build dir and project management tools, without
information about the use cases satisfied and why it's superior to
alternatives, much less why you think it belongs in oe-core as opposed to
all the other tools folks use, which would imply tactit approval as the
official method, particularly going into scripts instead of contrib, I
doubt this is going anywhere.

On Mon, May 21, 2018 at 12:04 PM Alexander Kanavin <
alexander.kanavin at linux.intel.com> wrote:

> On 05/21/2018 06:55 PM, Jens Rehsack wrote:
> > Move scripts/bashrc from meta-jens/scripts to oe-core to share
> user-friendly
> > oe builddir management with community. Using this script will help manage
> > multiple BSPs and targets like perl developers using perlbrew.
>
> Please explain in detail what this does, and why is it superior to
> existing tools. What are the typical usage scenarios? Where and how this
> should be documented and tested? It is not a good idea to just add
> something into scripts/, as no one will know or use it, and so it will
> just quietly bitrot.
>
> > +__oe_check_py () {
> > +    # Make sure we're not using python v3.x. This check can't go into
> > +    # sanity.bbclass because bitbake's source code doesn't even pass
> > +    # parsing stage when used with python v3, so we catch it here so we
> > +    # can offer a meaningful error message.
> > +    py_v3_check=`/usr/bin/env python --version 2>&1 | grep "Python 3"`
> > +    if [ "$py_v3_check" != "" ]; then
> > +        echo >&2 "Bitbake is not compatible with python v3"
> > +        echo >&2 "Please set up python v2 as your default python
> interpreter"
> > +        return 1
> > +    fi
>
> Bitbake has in fact been compatible with Python 3.x for several
> releases. The above check is not particularly useful, as /usr/bin/python
> nearly always points to a 2.x version.
>
> Alex
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>


-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180522/2d307f48/attachment-0002.html>


More information about the Openembedded-core mailing list