[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#156497: xbase-clients: [xman] apropos does not work



tags 156497 - unreproducible
thanks

On Tuesday 24 April 2007 10:45, Michelle Konzack wrote:
> Am 2007-04-10 21:50:28, schrieb Ken Bloom:
> > This bug still occurs with the current version in sid. I'm not sure
> > what must be done special to reproduce, since it's broken by
> > default on my system. The problem is still that in vendor.h,
> > SYSMANPATH is being set to /usr/man. On my system, /usr/man is a
> > nonexistant directory. If you guys have old symlinks lying around
> > then this would explain why you can't reproduce the issue.
> > SYSMANPATH is passed to man(1) when running apropos. man searches
> > all zero man pages in /usr/man and consequently returns no results.
>
> I hink, this has nothing to do with the pathes since:
>
> ----8<---------------------------------------------------------------
>-- 3794  stat64("/home/michelle.konzack/man", {st_mode=S_IFDIR|0775,
> st_size=1024, ...}) = 0 3794  stat64("/usr/share/man",
> {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 3794 
> stat64("/usr/X11R6/man", 0xbfffee4c) = -1 ENOENT (No such file or
> directory) 3794  stat64("/usr/man", 0xbfffee4c)    = -1 ENOENT (No
> such file or directory) 3794  stat64("/usr/X11R6/man", 0xbfffee4c) =
> -1 ENOENT (No such file or directory) 3794  stat64("/usr/local/man",
> {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0 3794 
> stat64("/usr/man", 0xbfffee6c)    = -1 ENOENT (No such file or
> directory)
>
> <snip>
>
> 3794  write(1, "ls: nichts passendes.\n", 22) = 22
> 3793  <... read resumed> "ls: nichts passendes.\n", 4096) = 22
> ----8<---------------------------------------------------------------
>--
>
> which mean, /usr/share/man IS searched and /usr/man at last.

The relevant line of your broken strace is this one:
3794  execve("/usr/bin/apropos", ["apropos", "-M", "/usr/man", "ls"], 
[/* 75 vars */]) = 0

I'm not sure why apropos is scanning those other directories when it's 
been given a command-line option telling it not to, but clearly it's 
not reporting anything it finds in those directories.

In your working strace, however,
xman.strace.26546:11:43:24.044047 [400b0a7d] execve("/usr/bin/apropos", 
["apropos", "-M", "/home/michelle.konzack/man:/usr/share/man:/usr/local/man", "directory"], 
[...,"MANPATH=/home/michelle.konzack/man:/usr/share/man:/usr/local/man",...])=0

Is it possible that you've got $MANPATH set only when running from 
inside an xterm (e.g. if your .bashrc is setting $MANPATH)? I find that 
xman works for me when I run it with $MANPATH set. It seems xman calls 
apropos with -M $MANPATH when $MANPATH is set, and -M /usr/man 
otherwise.

So you're seeing the same thing I am.

--Ken

-- 
Ken Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/

Attachment: pgpUgHwQPOm0y.pgp
Description: PGP signature


Reply to: