XDG_DATA_DIRS env var conflicting usage in gobject-introspection and glib
Hello
-
in
g-ir-scanner
(gobject-introspection) this environement variable is used to get .igr file contained in igr-1.0 directory from non usaual directories -
in
glib-compile-resources
iths environnement variable is used to locateschemas
dirs doc says:
At runtime, GSettings looks for schemas in the
glib-2.0/schemas subdirectories of all directories
specified in the XDG_DATA_DIRS environment variable.
while dealing with gtk+ I spotted a problem with the use of XDG_DATA_DIRS
see:
/opt/gensoft/lib/glib/2.66.7/bin/glib-compile-resources gtk/gtk.gresources.xml --sourcedir /tmp/build/gtk+/3.24.25/gtk --sourcedir /opt/gensoft/src/gtk+/gtk+-3.24.25/gtk --sourcedir ../../../../opt/gensoft/src/gtk+/gtk+-3.24.25/gtk --c-name _gtk --internal --generate --target gtk/gtkresources.h --manual-register
failed to load "/opt/gensoft/src/gtk+/gtk+-3.24.25/gtk/theme/Adwaita/assets/bullet-symbolic.symbolic.png": Couldn?t recognize the image file format for file ?/opt/gensoft/src/gtk+/gtk+-3.24.25/gtk/theme/Adwaita/assets/bullet-symbolic.symbolic.png?
gtk/gtk.gresources.xml: Child process exited with code 1.
some of the modulefiles loaded for this build set XDG_DATA_DIRS to specific locations if I unset XDG_DATA_DIRS buid succed for this step by obviously fail later when trying to locate the .igr files
[218/720] Generating Gdk-3.0.gir with a custom command
FAILED: gdk/Gdk-3.0.gir
Couldn't find include 'GdkPixbuf-2.0.gir' (search path: '['/opt/gensoft/lib/gobject-introspection/1.66.1/share/gir-1.0', '/opt/gensoft/lib/gobject-introspection/1.66.1/share', 'gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/opt/gensoft/lib/gobject-introspection/1.66.1/share/gir-1.0', '/usr/share/gir-1.0']')
NB buid system: meson/0.57.0 ninja/1.10.0 gobject-introspection/1.66.1 glib/2.66.7
regards
Eric
Edited by Emmanuele Bassi