[gnome-online-accounts/wip/hadess/build-fix: 1/3] build: Don't compile schemas if none are installed




commit 5ffe1e89fd077e56d3a23d65c794ff330206408e
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 12 11:05:02 2022 +0200

    build: Don't compile schemas if none are installed
    
    If the backend isn't built, no schemas are installed, but we'd still try
    to compile the schemas.
    
    Running custom install script '/usr/bin/glib-compile-schemas /app/share/glib-2.0/schemas'
    Error opening directory “/app/share/glib-2.0/schemas”: No such file or directory
    FAILED: install script '/usr/bin/glib-compile-schemas /app/share/glib-2.0/schemas' exit code 1, stopped
    
    Fixes: 49daccd ("build: Use gnome.post_install() function")

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 562451be..dbb2e524 100644
--- a/meson.build
+++ b/meson.build
@@ -266,7 +266,7 @@ endif
 subdir('po')
 
 gnome.post_install(
-  glib_compile_schemas: true,
+  glib_compile_schemas: enable_goabackend,
   gtk_update_icon_cache: true,
 )
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]