Bug 706078 - missing schema ID causes warning on glib-compile-schemas invocation
Summary: missing schema ID causes warning on glib-compile-schemas invocation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gsettings-desktop-schemas
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Bžatek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-19 12:44 UTC by Stijn Hoop
Modified: 2015-03-03 23:00 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-01-23 16:02:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stijn Hoop 2011-05-19 12:44:37 UTC
Description of problem:

Install a package that invokes glib-compile-schemas, then witness this:

  Updating   : webkitgtk3-1.4.0-2.fc16.x86_64                            41/181 
warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/>

Version-Release number of selected component (if applicable):

gsettings-desktop-schemas-3.0.1-1.fc16.noarch

This seems to be because /usr/share/glib2/schemas/org.gnome.desktop.default-applications.gschema.xml contains a reference to child schema 'org.gnome.desktop.default-applications.at' while no such schema ID is then defined in the rest of the file.

Note that I have on clue whatsoever about gsettings schemas, so I might be 100% wrong here.

Comment 1 Eliah Kagan 2011-06-13 12:08:50 UTC
I have produced and reported this bug in Ubuntu oneiric (see https://bugs.launchpad.net/ubuntu/+source/gsettings-desktop-schemas/+bug/796578).

Comment 2 Michal Ambroz 2011-06-21 17:58:37 UTC
I can confirm the same issue is existing now in Fedora 15.

This command will fail and end with coredump:
gsettings list-recursively org.gnome.desktop.default-applications

Comment 3 Michal Ambroz 2011-06-21 18:02:16 UTC
I forgot the output of the command

$ gsettings list-recursively org.gnome.desktop.default-applications

GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.default-applications.at' is not installed

aborting...
Aborted (core dumped)

Best regards
Michal Ambroz

Comment 4 Michal Ambroz 2011-06-21 18:25:13 UTC
It seems that the "at" child was already removed in the upstream:
http://mail.gnome.org/archives/commits-list/2011-May/msg03106.html

After removing the child line and compiling the schemas the error goes away.

#glib-compile-schemas /usr/share/glib-2.0/schemas
# gsettings list-recursively org.gnome.desktop.default-applications
org.gnome.desktop.default-applications.terminal exec 'gnome-terminal'
org.gnome.desktop.default-applications.terminal exec-arg '-x'

I have also checked other schemas and none of the others suffers the same issue:
#!/bin/bash
SCHEMAS=`gsettings list-schemas`
for I in $SCHEMAS ; do 
	echo "=== $I ==="
	gsettings list-recursively $I

done

Best regards
Michal Ambroz

Comment 5 Michal Ambroz 2012-01-23 16:02:56 UTC
Seems to be fixed in current gsettings-desktop-schemas-3.2.0-1.fc16.noarch

Best regards
Michal Ambroz


Note You need to log in before you can comment on or make changes to this bug.