gtk3.24.33 meson config broken for want of gtk4-update-icon-cache
When building gtk+-3.24.33 from the tarball using meson:
Program gtk4-update-icon-cache found: NO
Program gtk4-update-icon-cache found: NO
../../src/gtk+-3.24.33/meson.build:1013:10: ERROR: Program 'gtk4-update-icon-cache' not found or not executable
Because in meson 0.62.0's mesonbuild/modules/gnome.py
post_install`:
if kwargs['gtk_update_icon_cache'] and not self.install_gtk_update_icon_cache:
self.install_gtk_update_icon_cache = True
prog = state.find_program('gtk4-update-icon-cache', required=False)
found = isinstance(prog, build.Executable) or prog.found()
if not found:
prog = state.find_program('gtk4-update-icon-cache')
icondir = os.path.join(datadir_abs, 'icons', 'hicolor')
script = state.backend.get_executable_serialisation([prog, '-q', '-t', '-f', icondir])
script.skip_if_destdir = True
rv.append(script)
and in gtk+-3.24.33's meson.build
if not meson.is_cross_build()
if meson.version().version_compare('>=0.57.0')
gnome.post_install(
glib_compile_schemas: true,
gio_querymodules: gio_module_dirs,
gtk_update_icon_cache: get_option('demos'),
)
ISTM either the call to gnome.post_install
shouldn't include include the gtk_update_icon_cache
argument or meson.build should set gnome.py's install_gtk_update_icon_cache
property.
Edited by John Ralls