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.
This commit is contained in:
Bernhard Kaindl 2021-11-29 14:46:51 +01:00 committed by GitHub
parent 5dce4d79bd
commit af0ba4e3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ def patch(self):
'', '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 @@ def build(self, spec, prefix):
@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