On Wed, Mar 10, 2021 at 04:33:02AM -1000, Steve Sakoman wrote:
> On Wed, Mar 10, 2021 at 2:54 AM Martin Jansa <[email protected]> wrote:
> >
> > From: Richard Leitner <[email protected]>
> >
> > This fixes [1] the following build error for nativesdk on Fedora 33
> > which is caused by the removal of fractions.gcd() in favor of math.gcd()
> > in python 3.9 [2]:
> >
> > ImportError: cannot import name 'gcd' from 'fractions' 
> > (/usr/lib64/python3.9/fractions.py)
> >
> > Furthermore the SRC_URI is adapted as the old one doesn't provide the
> > 1.14.1 archive.
> >
> > [1] 
> > https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/commit/426ae35bee1fa0fdb8b5120b1dcd20cee6e34512
> > [2] https://bugs.python.org/issue39350
> >
> > It's needed in gatesgarth and possibly dunfell as well to support
> > distributions with python-3.9 as we build libxcb-native, which is
> > failing with xcb-proto-1.14.
> >
> > 1.14.1 is a bug fix release:
> > https://lists.x.org/archives/xorg-announce/2020-October/003061.html
> 
> Dunfell is still at version 1.13, so this wouldn't be a bug fix version bump.

I see, well luckily 1.14 doesn't look too scary as well:
https://lists.x.org/archives/xorg-announce/2020-February/003038.html
https://git.openembedded.org/openembedded-core/commit/?h=gatesgarth&id=bf4ef2e3b376744b16c2f57725104207d23c28c6

If this is the only issue for building dunfell with host distro with
python-3.9 then I think it should be considered.

Isn't autobuilder using some new host distro with python-3.9 already?

FYI: I was seeing this with ubuntu 21.04, I'll trigger dunfell build on
it now.

> > Signed-off-by: Richard Leitner <[email protected]>
> > Signed-off-by: Richard Purdie <[email protected]>
> > ---
> >  .../xorg-proto/{xcb-proto_1.14.bb => xcb-proto_1.14.1.bb}     | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >  rename meta/recipes-graphics/xorg-proto/{xcb-proto_1.14.bb => 
> > xcb-proto_1.14.1.bb} (84%)
> >
> > diff --git a/meta/recipes-graphics/xorg-proto/xcb-proto_1.14.bb 
> > b/meta/recipes-graphics/xorg-proto/xcb-proto_1.14.1.bb
> > similarity index 84%
> > rename from meta/recipes-graphics/xorg-proto/xcb-proto_1.14.bb
> > rename to meta/recipes-graphics/xorg-proto/xcb-proto_1.14.1.bb
> > index 6de30098d6..52e474a2e9 100644
> > --- a/meta/recipes-graphics/xorg-proto/xcb-proto_1.14.bb
> > +++ b/meta/recipes-graphics/xorg-proto/xcb-proto_1.14.1.bb
> > @@ -11,8 +11,8 @@ LICENSE = "MIT"
> >  LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7 \
> >                      
> > file://src/dri2.xml;beginline=2;endline=28;md5=f8763b13ff432e8597e0d610cf598e65"
> >
> > -SRC_URI = "http://xcb.freedesktop.org/dist/${BP}.tar.xz";
> > -SRC_URI[sha256sum] = 
> > "186a3ceb26f9b4a015f5a44dcc814c93033a5fc39684f36f1ecc79834416a605"
> > +SRC_URI = 
> > "https://xorg.freedesktop.org/archive/individual/proto/${BP}.tar.xz";
> > +SRC_URI[sha256sum] = 
> > "f04add9a972ac334ea11d9d7eb4fc7f8883835da3e4859c9afa971efdf57fcc3"
> >
> >  inherit autotools pkgconfig python3native
> >
> > --
> > 2.30.1
> >
> >
> > 
> >

Attachment: signature.asc
Description: PGP signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#149274): 
https://lists.openembedded.org/g/openembedded-core/message/149274
Mute This Topic: https://lists.openembedded.org/mt/81226192/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to