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.
This commit is contained in:
parent
f92b7eca5e
commit
dd0bd179c5
@ -13,6 +13,7 @@ class Gtkplus(MesonPackage):
|
|||||||
homepage = "https://www.gtk.org/"
|
homepage = "https://www.gtk.org/"
|
||||||
url = "https://download.gnome.org/sources/gtk+/3.24/gtk+-3.24.26.tar.xz"
|
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.24.26', sha256='2cc1b2dc5cad15d25b6abd115c55ffd8331e8d4677745dd3ce6db725b4fff1e9')
|
||||||
version('3.20.10', sha256='e81da1af1c5c1fee87ba439770e17272fa5c06e64572939814da406859e56b70', deprecated=True)
|
version('3.20.10', sha256='e81da1af1c5c1fee87ba439770e17272fa5c06e64572939814da406859e56b70', deprecated=True)
|
||||||
version('2.24.32', sha256='b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e', deprecated=True)
|
version('2.24.32', sha256='b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e', deprecated=True)
|
||||||
@ -59,6 +60,11 @@ def patch(self):
|
|||||||
filter_file(r'CFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CFLAGS"',
|
filter_file(r'CFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CFLAGS"',
|
||||||
'', 'configure', string=True)
|
'', '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):
|
def setup_run_environment(self, env):
|
||||||
env.prepend_path("GI_TYPELIB_PATH",
|
env.prepend_path("GI_TYPELIB_PATH",
|
||||||
join_path(self.prefix.lib, 'girepository-1.0'))
|
join_path(self.prefix.lib, 'girepository-1.0'))
|
||||||
|
Loading…
Reference in New Issue
Block a user