Bug#452005: Does not display gnumeric's help

J.H.M. Dassen (Ray) fsmla at xinara.org
Mon Nov 19 18:45:51 UTC 2007


Package: yelp
Version: 2.20.0-1
Severity: important

With gnumeric and gnumeric-doc 1.7.14-1 installed, doing Help -> Contents
(which performs a "yelp ghelp:gnumeric"), a popup is produced:
	Unable to load page
	The requested URI "ghelp: gnumeric" is invalid.

After changing the order of the attributes to the "format" element in 
/usr/share/omf/gnumeric/gnumeric-C.omf like this:

--- /tmp/gnumeric-C.omf	2007-11-04 20:41:11.000000000 +0100
+++ /usr/share/omf/gnumeric/gnumeric-C.omf	2007-11-19 19:36:31.000000000 +0100
@@ -57,7 +57,7 @@
       User's Guide
     </type>
 
-    <format dtd="-//OASIS//DTD DocBook XML V4.2//EN" mime="text/xml"/>
+    <format mime="text/xml" dtd="-//OASIS//DTD DocBook XML V4.2//EN"/>
     <identifier url="file:/usr/share/gnome/help/gnumeric/C/gnumeric.xml"/>
     <language code="C"/>
     <relation seriesid="c5e3db84-64c3-11d6-85a3-a3e50590e6d1"/>

"yelp ghelp:gnumeric" works as expected. The order of attributes to an xml
tag should not be relevant though, and both versions of the OMF file are
shown to be valid through "xmllint --noout --valid".

The problem appears to be in src/yelp-utils.c's resolve_process_ghelp. When
the "dtd" attribute is put in first, its value gets dupped (but is not
understood by the remainder of the code, resulting in a YELP_RRN_TYPE_ERROR
being returned), whereas when the "mime" attribute comes first, its value
goes through gnome_vfs_get_mime_type and is recognised.

As a workaround, the next upstream gnumeric release will have the order
changed. Still, the underlying issue is a real one that should be addressed.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing-proposed-updates'), (500, 'stable'), (400, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23.8 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages yelp depends on:
ii  docbook-xml             4.5-5            standard XML documentation system,
ii  gconf2                  2.20.1-1         GNOME configuration database syste
ii  gnome-doc-utils         0.12.0-1         a collection of documentation util
ii  libbz2-1.0              1.0.3-7          high-quality block-sorting file co
ii  libc6                   2.6.1-6          GNU C Library: Shared libraries
ii  libdbus-glib-1-2        0.74-1           simple interprocess messaging syst
ii  libgcc1                 1:4.2.2-3        GCC support library
ii  libgconf2-4             2.20.1-1         GNOME configuration database syste
ii  libglade2-0             1:2.6.2-1        library to load .glade files at ru
ii  libglib2.0-0            2.14.3-1         The GLib library of C routines
ii  libgnome2-0             2.20.1.1-1       The GNOME 2 library - runtime file
ii  libgnomeui-0            2.20.1.1-1       The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0          1:2.20.1-1       GNOME Virtual File System (runtime
ii  libgtk2.0-0             2.12.1-3         The GTK+ graphical user interface 
ii  libpango1.0-0           1.18.3-1         Layout and rendering of internatio
ii  librarian0              0.6.0-1          Rarian is a documentation meta-dat
ii  libstartup-notification 0.9-1            library for program launch feedbac
ii  libstdc++6              4.2.2-3          The GNU Standard C++ Library v3
ii  libx11-6                2:1.0.3-7        X11 client-side library
ii  libxml2                 2.6.30.dfsg-2    GNOME XML library
ii  libxslt1.1              1.1.22-1         XSLT processing library - runtime 
ii  libxul0d                1.8.1.9-2        Gecko engine library
ii  xml-core                0.11             XML infrastructure and XML catalog
ii  zlib1g                  1:1.2.3.3.dfsg-7 compression library - runtime

Versions of packages yelp recommends:
ii  ttf-dejavu                    2.21-1     Metapackage to pull in ttf-dejavu-

-- no debconf information






More information about the pkg-gnome-maintainers mailing list