From af0ba4e3efc238c4a0fb431997ac25489464e37d Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com> Date: Mon, 29 Nov 2021 14:46:51 +0100 Subject: gtkplus: fix build of GTK2 versions with gcc-11, skip X tests (#26970) Fix to not attempt to patch a nonexisting file for old versions when building with gcc-11. Skip the build-time tests as all access the X DISPLAY and open many windows on the screen. --- var/spack/repos/builtin/packages/gtkplus/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/gtkplus/package.py b/var/spack/repos/builtin/packages/gtkplus/package.py index 8bb2a781eb..8c768a51c9 100644 --- a/var/spack/repos/builtin/packages/gtkplus/package.py +++ b/var/spack/repos/builtin/packages/gtkplus/package.py @@ -61,7 +61,7 @@ class Gtkplus(MesonPackage): '', 'configure', string=True) # https://gitlab.gnome.org/GNOME/gtk/-/issues/3776 - if self.spec.satisfies('%gcc@11:'): + if self.spec.satisfies('@3:%gcc@11:'): filter_file(" '-Werror=array-bounds',", '', 'meson.build', string=True) @@ -123,3 +123,7 @@ class Gtkplus(MesonPackage): @when('@:3.20.10') def install(self, spec, prefix): make('install') + + def check(self): + """All build time checks open windows in the X server, don't do that""" + pass -- cgit v1.2.3-60-g2f50