From 57ce5f390b57574372d10434891bed0048b63096 Mon Sep 17 00:00:00 2001 From: Robert Mijakovic Date: Tue, 11 May 2021 21:40:21 +0200 Subject: gobject-introspection: fix for Python 3.9. (#22869) * gobject-introspection: fix for Python 3.9. * Fixes the too long line formatting issue. * gobject-introspection: limits the scope of the patch Co-authored-by: Robert Mijakovic --- var/spack/repos/builtin/packages/gobject-introspection/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/var/spack/repos/builtin/packages/gobject-introspection/package.py b/var/spack/repos/builtin/packages/gobject-introspection/package.py index 4cfb8deae9..98d0774b57 100644 --- a/var/spack/repos/builtin/packages/gobject-introspection/package.py +++ b/var/spack/repos/builtin/packages/gobject-introspection/package.py @@ -53,6 +53,14 @@ class GobjectIntrospection(Package): # inserted into the scripts as they're generated. patch("sbang.patch") + # Drop deprecated xml.etree.ElementTree.Element.getchildren() which leads + # to compilation issues with Python 3.9. + # https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/325 + patch('https://gitlab.gnome.org/GNOME/gobject-introspection/-/commit/' + '1f9284228092b2a7200e8a78bc0ea6702231c6db.patch', + sha256='7700828b638c85255c87fcc317ea7e9572ff443f65c86648796528885e5b4cea', + when='@:1.63.1') + def url_for_version(self, version): url = 'http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/{0}/gobject-introspection-{1}.tar.xz' return url.format(version.up_to(2), version) -- cgit v1.2.3-70-g09d2