Bug#470457: yelp: ignores manpage section

Joop Stakenborg pa3aba at debian.org
Tue Mar 11 10:30:57 UTC 2008


Package: yelp
Version: 2.20.0-2
Severity: normal
Tags: patch

The latest yelp ignores manpage sections. Try 'yelp "man:man(7)"', it
will display man.1.

The reason for this seems to be commented out source code in 
src/yelp-utils.c function 'resolve_man_page', which totally ignores the 
section. The attached patch fixes this.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.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-3          GNOME configuration database syste
ii  gnome-doc-utils        0.12.2-1          a collection of documentation util
ii  libbz2-1.0             1.0.4-3           high-quality block-sorting file co
ii  libc6                  2.7-9             GNU C Library: Shared libraries
ii  libdbus-glib-1-2       0.74-1            simple interprocess messaging syst
ii  libgcc1                1:4.3.0-1         GCC support library
ii  libgconf2-4            2.20.1-3          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.6-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-2        GNOME Virtual File System (runtime
ii  libgtk2.0-0            2.12.8-1          The GTK+ graphical user interface 
ii  libpango1.0-0          1.18.4-1          Layout and rendering of internatio
ii  librarian0             0.6.0-1           Rarian is a documentation meta-dat
ii  libstartup-notificatio 0.9-1             library for program launch feedbac
ii  libstdc++6             4.3.0-1           The GNU Standard C++ Library v3
ii  libx11-6               2:1.0.3-7         X11 client-side library
ii  libxml2                2.6.31.dfsg-2     GNOME XML library
ii  libxslt1.1             1.1.22-1          XSLT processing library - runtime 
ii  libxul0d               1.8.1.12-4        Gecko engine library
ii  man-db                 2.5.1-2           on-line manual pager
ii  xml-core               0.11              XML infrastructure and XML catalog
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

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

-- no debconf information
-------------- next part --------------
diff -u -r yelp-2.20.0/src/yelp-utils.c yelp-2.20.0.pg4i/src/yelp-utils.c
--- yelp-2.20.0/src/yelp-utils.c	2007-09-17 22:49:09.000000000 +0200
+++ yelp-2.20.0.pg4i/src/yelp-utils.c	2008-03-11 11:21:38.000000000 +0100
@@ -217,7 +217,7 @@
     if (lbrace) {
 	rbrace = strrchr (name, ')');
 	if (rbrace) {
-	    /*sect = g_strndup (lbrace+1, rbrace - lbrace - 1);*/
+	    sect = g_strndup (lbrace+1, rbrace - lbrace - 1);
 	    real_name = g_strndup (name, lbrace - name);
 	} else {
 	    sect = NULL;
@@ -227,12 +227,12 @@
 	lbrace = strrchr (name, '.');
 	if (lbrace) {
 	    repeat = TRUE;
-	    /*sect = strdup (lbrace+1);*/
+	    sect = strdup (lbrace+1);
 	    real_name = g_strndup (name, lbrace - name);
 	} else {
 	    lbrace = strrchr (name, '#');
 	    if (lbrace) {
-		/*sect = strdup (lbrace+1);*/
+		sect = strdup (lbrace+1);
 		real_name = g_strndup (name, lbrace - name);
 	    } else {
 		real_name = strdup (name);


More information about the pkg-gnome-maintainers mailing list