Subject: Re: Useless dependency with X11 in toplevel Makefile ?
To: Xavier HUMBERT <xavier@xavhome.fr.eu.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: current-users
Date: 03/10/2002 21:43:01
Xavier HUMBERT wrote:
> I just updated my src tree (cvs update at 14:00 GMT), and got this
> error_:
> 
> >(cd /usr/src/share/man && /usr/tools/bin/nbmake makedb)
> >/usr/tools/bin/nbmakewhatis /usr/build//usr/share/man
> >nbmakewhatis: Error reading `/usr/X11R6/man': No such file or directory
> >*** Error code 1
> 
> No harm, mkdir -p /usr/X11R6/man fixes the problem, but I wonder why
> there is a need for buidin whatis db for X, in src ? This is xsrc job,
> isn't it ?

There was off-by-one error in libexec/makewhatis/makewhatis.c,
which made makewhatis ignore arguments if exactly one directory
was specified (as it's the case with the call in make build).

Recently, makewhatis was changed to regenerate all whatis databases
specified in /etc/man.conf if called without args, and this bug caused
this to happen even when one directory was specified.

It's fixed in revision 1.24 of basesrc/libexec/makewhatis/makewhatis.c

Thanks for report,

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-