diff options
author | Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com> | 2021-11-29 14:46:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 14:46:51 +0100 |
commit | af0ba4e3efc238c4a0fb431997ac25489464e37d (patch) | |
tree | c318d12bd2e8386488e643e6621afdb147d53194 | |
parent | 5dce4d79bd19665bf547063d924c3701a1badcfe (diff) | |
download | spack-af0ba4e3efc238c4a0fb431997ac25489464e37d.tar.gz spack-af0ba4e3efc238c4a0fb431997ac25489464e37d.tar.bz2 spack-af0ba4e3efc238c4a0fb431997ac25489464e37d.tar.xz spack-af0ba4e3efc238c4a0fb431997ac25489464e37d.zip |
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.
-rw-r--r-- | var/spack/repos/builtin/packages/gtkplus/package.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |