GNOME Bugzilla – Bug 756607
build fails during schema validation when using glib >= 1.45.1
Last modified: 2016-05-08 09:25:22 UTC
Using glib >- 1.45.1, the file-roller build fails during schema validation as follows Merging translations into org.gnome.FileRoller.gschema.xml. CREATED org.gnome.FileRoller.gschema.xml glib-compile-schemas --strict --dry-run --schema-file=org.gnome.FileRoller.gschema.xml && mkdir -p . && touch org.gnome.FileRoller.gschema.valid org.gnome.FileRoller.gschema.xml:41:31 Error on line 41 char 31: Only one <summary> element allowed inside <key>. --strict was specified; exiting. make[3]: *** [org.gnome.FileRoller.gschema.valid] Error 1 Per glib 1.45.1 NEWS item: The GSettings schema compiler, glib-compile-schemas has been changed to reject schema xml that has duplicate <summary> or <description> elements. Such elements typically occur when translations are merged into the schema, with xml:lang attributes. This is not the correct way to translate schemas. Instead keep the translations in the .mo file and set the gettext-domain attribute on the <schemalist> element. Please update the build to avoid this failure.
Removing --strict works around it. Here's how mate-utils fixed the same problem: https://github.com/mate-desktop/mate-utils/commit/c4df12f12d21ea7d4bc0d656bd5f93539c078d93
Yes, MacPorts has committed a similar fix: https://trac.macports.org/changeset/141302
Created attachment 327330 [details] [review] depend on newer intltool and fix validation errors
(In reply to David King from comment #3) > Created attachment 327330 [details] [review] [review] > depend on newer intltool and fix validation errors push to master, thank you.
Sorry, I meant: pushed to master