GNOME Bugzilla – Bug 656301
glib-compile-schemas should not create an empty gschemas.compiled file
Last modified: 2012-01-19 03:17:05 UTC
After running 'make uninstall' on a package installed in /usr/local, I had an empty /usr/local/share/glib-2.0/schemas/gschemas.compiled This led to the gsettings tool failing: sam@candylion:~$ gsettings list-schemas ** GLib-GIO:ERROR:/build/buildd/glib2.0-2.28.6/./gio/gsettingsschema.c:125:ensure_schema_lists: assertion failed: (list != NULL) Aborted
Created attachment 193606 [details] [review] Give detailed warning instead of assert()
I am completely unable to reproduce this now. However, somehow it occurred that I got an empty gschemas.compiled file, so I think it makes sense to replace the assert() with a warning so nobody else loses half an hour trying to debug the problem. The error occurred with glib 2.28.6 (ubuntu natty) which doesn't have any obvious bugs in glib-compile-schemas that I can see causing this.
Pushed a patch to just silently ignore the empty files. They're harmless. Sorry I didn't see this one earlier.