From a5363b9e5dea21226ee8224cb9c2e80a60c03dc6 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 23 Aug 2017 18:53:59 +0100 Subject: [PATCH] build: Create input method module cache directory Before running gtk-query-immodules, the cache output directory may not actually exist. Make sure it does before we try to write into it. https://bugzilla.gnome.org/show_bug.cgi?id=793182 Signed-off-by: Daniel Stone --- build-aux/meson/post-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-aux/meson/post-install.sh b/build-aux/meson/post-install.sh index c7390fae9b..da564a5b29 100755 --- a/build-aux/meson/post-install.sh +++ b/build-aux/meson/post-install.sh @@ -17,5 +17,7 @@ if [ -z "$DESTDIR" ]; then gtk-update-icon-cache -q -t -f ${gtk_datadir}/icons/hicolor echo Updating input method modules cache... - gtk4-query-immodules > ${gtk_libdir}/gtk-${gtk_api_version}/${gtk_abi_version}/immodules.cache + gtk_imdir=${gtk_libdir}/gtk-${gtk_api_version}/${gtk_abi_version} + mkdir -p ${gtk_imdir} + gtk4-query-immodules > ${gtk_imdir}/immodules.cache fi