Bug 706078

Summary: missing schema ID causes warning on glib-compile-schemas invocation
Product: [Fedora] Fedora Reporter: Stijn Hoop <stijn>
Component: gsettings-desktop-schemasAssignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: degeneracypressure, rebus, tbzatek, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-23 16:02:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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