summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mijakovic <robert.mijakovic@gmail.com>2021-05-11 21:40:21 +0200
committerGitHub <noreply@github.com>2021-05-11 21:40:21 +0200
commit57ce5f390b57574372d10434891bed0048b63096 (patch)
tree279a9f35eddfddbfffa6f91bc90da36c154a67af
parent2a509ea0bf82dd5300a7e438733f0e1d5a37c519 (diff)
downloadspack-57ce5f390b57574372d10434891bed0048b63096.tar.gz
spack-57ce5f390b57574372d10434891bed0048b63096.tar.bz2
spack-57ce5f390b57574372d10434891bed0048b63096.tar.xz
spack-57ce5f390b57574372d10434891bed0048b63096.zip
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 <robert.mijakovic@lxp.lu>
-rw-r--r--var/spack/repos/builtin/packages/gobject-introspection/package.py8
1 files changed, 8 insertions, 0 deletions
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)