tags 503472 fixed-upstream
thanks

On Wed, May 19, 2010 at 06:00:27PM -0400, Mike Frysinger wrote:
> the classic man package will automatically locate compressed man pages that 
> it 
> can handle.  so since the classic man can handle gzip/bzip/etc..., it'll 
> search for the .so target with compression extensions automatically.  e.g. if 
> the man page is actually foo.5.gz and there is a man page moo.5 that contains 
> just ".so foo.5", then man is able to automatically find the foo.5.gz when 
> asked to look for moo(5).

This is true of man-db too.

> not sure what the preference order is though without testing.  i.e. if both 
> foo.5 and foo.5.gz exist, then what does ".so foo.5" select by default ?

I'm not concerned about the fine detail there; as far as I'm concerned
that's undefined and man is entitled to randomly pick one or the other.

Anyway, I've now committed a fix for this bug upstream, which will be in
man-db 2.6.0:

Wed Dec  1 22:24:51 GMT 2010  Colin Watson  <cjwat...@debian.org>

        Improve .so searching (Debian bug #503472).

        * src/Makefile.am (zsoelim_SOURCES): Add manp.c and manp.h.
        * src/zsoelim.l (zsoelim_parse_file): Take manpathlist and
          parent_path arguments, and save those to pass on to
          zsoelim_open_file.
          (try_compressed): New function, split out from zsoelim_open_file.
          (zsoelim_open_file): Take manpathlist and parent_path arguments.
          Rearrange search logic as follows: (1) if there is no parent_path,
          try opening directly; (2) look up filename within each manpath
          entry, treating filenames without directory parts as full manual
          page lookups; (3) if there is a parent_path, try opening directly.
          (zsoelim_stdin): Pass path and manpathlist from input data to
          zsoelim_open_file and zsoelim_parse_file.
          (zsoelim_stdin_data_new, zsoelim_stdin_data_free): New functions.
        * src/zsoelim.h (zsoelim_open_file, zsoelim_parse_file): Update
          prototypes.
          (zsoelim_stdin_data_new, zsoelim_stdin_data_free): Add prototypes.
        * src/zsoelim_main.c (main): Initialise locale and manpath.  Pass
          manpath to zsoelim_open_file and zsoelim_parse_file.
        * src/man.c (main): Calculate manpath before handling -l option.
          (make_roff_command): Pass dir and manpathlist to zsoelim_stdin.
        * src/tests/zsoelim-1: New test.
        * src/tests/Makefile.am (ALL_TESTS): Add zsoelim-1.
        * NEWS: Document this.

        * src/manp.c (get_def): If not setuid, make this identical to
          get_def_user.
        * src/manp.h (get_def): Likewise.

Thanks,

-- 
Colin Watson                                       [cjwat...@debian.org]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to