[OE-core] [PATCH 2/4] scons.bbclass: use python3-scons

Adrian Bunk bunk at stusta.de
Mon Jun 24 08:20:53 UTC 2019


On Sun, Jun 23, 2019 at 07:41:05PM -0700, Alistair Francis wrote:
> On Thu, Jun 20, 2019 at 5:22 PM Tim Orling <ticotimo at gmail.com> wrote:
> >
> >
> >
> > On Thu, Jun 20, 2019 at 6:37 AM Khem Raj <raj.khem at gmail.com> wrote:
> >>
> >> On Fri, Jun 7, 2019 at 5:50 PM Tim Orling
> >> <timothy.t.orling at linux.intel.com> wrote:
> >> >
> >> > SCons has supported python3 since 3.0.0 release, use it.
> >> >
> >> > [YOCTO #13381]
> >> >
> >> > Signed-off-by: Tim Orling <timothy.t.orling at linux.intel.com>
> >> > ---
> >> >  meta/classes/scons.bbclass | 2 +-
> >> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >> >
> >> > diff --git a/meta/classes/scons.bbclass b/meta/classes/scons.bbclass
> >> > index 9ee7d1587d..a8ddae35f7 100644
> >> > --- a/meta/classes/scons.bbclass
> >> > +++ b/meta/classes/scons.bbclass
> >> > @@ -1,4 +1,4 @@
> >> > -DEPENDS += "python-scons-native"
> >> > +DEPENDS += "python3-scons-native"
> >> >
> >>
> >> some packages haven't upgraded to py3 but use scons see
> >> https://errors.yoctoproject.org/Errors/Details/249271/
> >
> >
> >
> > Thank you for reporting this. I was of course expecting some breakage and am committed to fixes. Please do report any other issues.
> 
> This also breaks the gpsd install, I tried upgrading to the latest
> release and that didn't help. I am going to send a patch for the
> upgrade which I tested with this patch reverted.

This is already workarounded:
http://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=22bfe06d15e07cac0df3f34566a9d33007663bae

There are post-3.18.1 changes required for Python 3 scons,
but I went for this hack after seeing that a proper fix
would involve all of:
1. upgrading to 3.18.1
2. rebasing oe-only patches to 3.18.1
3. adding post-3.18.1 patches

> Alistair

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



More information about the Openembedded-core mailing list