From dd0bd179c52e5edcce4382b8628dc625e3ea02ec Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Thu, 27 May 2021 22:17:13 +0200 Subject: gtkplus: add 3.24.29 (#23896) This also fixes the build with %gcc@11:. According to upstream, the proper solution is to disable -Werror=array-bounds since the stable branch will not receive a patch for newer compilers. --- var/spack/repos/builtin/packages/gtkplus/package.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/gtkplus/package.py b/var/spack/repos/builtin/packages/gtkplus/package.py index eb6b6de671..e31df25075 100644 --- a/var/spack/repos/builtin/packages/gtkplus/package.py +++ b/var/spack/repos/builtin/packages/gtkplus/package.py @@ -13,6 +13,7 @@ class Gtkplus(MesonPackage): homepage = "https://www.gtk.org/" url = "https://download.gnome.org/sources/gtk+/3.24/gtk+-3.24.26.tar.xz" + version('3.24.29', sha256='f57ec4ade8f15cab0c23a80dcaee85b876e70a8823d9105f067ce335a8268caa') version('3.24.26', sha256='2cc1b2dc5cad15d25b6abd115c55ffd8331e8d4677745dd3ce6db725b4fff1e9') version('3.20.10', sha256='e81da1af1c5c1fee87ba439770e17272fa5c06e64572939814da406859e56b70', deprecated=True) version('2.24.32', sha256='b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e', deprecated=True) @@ -59,6 +60,11 @@ class Gtkplus(MesonPackage): filter_file(r'CFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CFLAGS"', '', 'configure', string=True) + # https://gitlab.gnome.org/GNOME/gtk/-/issues/3776 + if self.spec.satisfies('%gcc@11:'): + filter_file(" '-Werror=array-bounds',", + '', 'meson.build', string=True) + def setup_run_environment(self, env): env.prepend_path("GI_TYPELIB_PATH", join_path(self.prefix.lib, 'girepository-1.0')) -- cgit v1.2.3-60-g2f50