After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 658102 - The default value of a gschema key is invalid.
The default value of a gschema key is invalid.
Status: RESOLVED FIXED
Product: at-spi
Classification: Platform
Component: at-spi2-atk
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Li Yuan
Depends on: 645321
Blocks:
 
 
Reported: 2011-09-03 00:10 UTC by Jiro Matsuzawa
Modified: 2011-09-05 02:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix the format of the default value in the schema (1.07 KB, patch)
2011-09-04 20:36 UTC, Matthias Clasen
committed Details | Review

Description Jiro Matsuzawa 2011-09-03 00:10:27 UTC
The default value of atk-bridge-location key in org.a11y.atspi.gschema.xml is invalid.
Or, the type of the key is invalid.
Although the type is "ay" (byte array), the default value is a string.

    <key name="atk-bridge-location" type="ay">
      <default>'@libdir@/gtk-3.0/modules/libatk-bridge.so'</default>
      <summary>Atk-bridge location</summary>
      <description>The path to the atk-bridge module; useful for non-GTK applications/toolkits that want to load it.</description>
    </key>

This problem is relevant to Bug 645321.


The following is a part of messages of compile error:
----
make[2]: Entering directory `/home/jiro/work/dev/gnome/source/at-spi2-atk/schemas'
sed -e "s|@libdir[@]|/home/jiro/work/dev/gnome/install/lib64|" org.a11y.atspi.gschema.xml.in > org.a11y.atspi.gschema.xml
if test -f "org.a11y.atspi.gschema.xml"; then d=; else d="./"; fi; /home/jiro/work/dev/gnome/install/bin/glib-compile-schemas --strict --dry-run  --schema-file=${d}org.a11y.atspi.gschema.xml && touch org.a11y.atspi.gschema.valid
org.a11y.atspi.gschema.xml: Error on line 6 char 1: 0-74:can not parse as value of type `ay'.  --strict was specified; exiting.
make[2]: *** [org.a11y.atspi.gschema.valid] Error 1
make[2]: Leaving directory `/home/jiro/work/dev/gnome/source/at-spi2-atk/schemas'
---


The following is contents of org.a11y.atspi.gschema.xml on my build-environment:
----
<?xml version="1.0"?>
<schemalist>
  <schema id="org.a11y.atspi" path="/a11y/atspi/">
    <key name="atk-bridge-location" type="ay">
      <default>'/home/jiro/work/dev/gnome/install/lib64/gtk-3.0/modules/libatk-bridge.so'</default>
      <summary>Atk-bridge location</summary>
      <description>The path to the atk-bridge module; useful for non-GTK applications/toolkits that want to load it.</description>
    </key>
  </schema>
</schemalist>
----
Comment 1 Matthias Clasen 2011-09-04 20:36:54 UTC
The following fix has been pushed:
7cad3d5 Fix the format of the default value in the schema
Comment 2 Matthias Clasen 2011-09-04 20:36:57 UTC
Created attachment 195638 [details] [review]
Fix the format of the default value in the schema

Bytestrings (ay) are formatted as b'...'.
Comment 3 Mike Gorse 2011-09-05 02:36:46 UTC
Thanks, Matthias.  Was on my list but wasn't sure off-hand how to fix.