[OE-core] [OE-Core][PATCH] python3-docutils: Fix shebang path to point at python3

Burton, Ross ross.burton at intel.com
Tue Dec 4 12:02:30 UTC 2018


Turns out we disable this functionality in distutils.  That patch
should be fixed to do the right thing instead.

Ross
On Tue, 4 Dec 2018 at 11:43, Burton, Ross <ross.burton at intel.com> wrote:
>
> Interestingly if you build docutils outside of bitbake, the hashbangs
> get rewritten automatically as part of the build...
> On Tue, 4 Dec 2018 at 10:49, Alex Kiernan <alex.kiernan at gmail.com> wrote:
> >
> > By default we get a shebang path pointing at python; when building the
> > python3 version, ensure we use python3.
> >
> > Signed-off-by: Alex Kiernan <alex.kiernan at gmail.com>
> > ---
> >
> >  meta/recipes-devtools/python/python3-docutils_0.14.bb | 5 ++++-
> >  1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-devtools/python/python3-docutils_0.14.bb b/meta/recipes-devtools/python/python3-docutils_0.14.bb
> > index 81a449d64604..a2880a9601d7 100644
> > --- a/meta/recipes-devtools/python/python3-docutils_0.14.bb
> > +++ b/meta/recipes-devtools/python/python3-docutils_0.14.bb
> > @@ -14,5 +14,8 @@ S = "${WORKDIR}/docutils-${PV}"
> >
> >  inherit distutils3
> >
> > -BBCLASSEXTEND = "native"
> > +do_install_append() {
> > +    sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' ${D}${bindir}/*
> > +}
> >
> > +BBCLASSEXTEND = "native"
> > --
> > 2.7.4
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list