Stephen Hahn wrote:
> * Roland Mainz <roland.mainz at nrubsig.org> [2007-06-18 17:23]:
> > "Dennis A. Evans" wrote:
> > > > Well, I hate that packages that install man pages
> > > > don't bother to run catman -w -M $dir
> > > > on the directory (and again when they're removed).
> > >
> > > This was always viewed as a performance problem. Maybe
> > > it should be revisited but the objection was that if
> > > each man page package ran catman -w the full install
> > > of Solaris could be seriously delayed.
> >
> > 9xx. Create a script which can be called by package postinstall scripts
> > which builds the matching "windex"/etc. files automatically (note that
> > this is not part of the "postinstall" script itself to make sure that
> > modification to the index generation scripts are decoupled from the
> > "postinstall" script)
> 
>   We're already working on something that achieves the equivalent in the
>   sfwnv project, for manual pages, the infodoc directory file, and (I
>   suppose) the locate DB, if someone were to integrate findutils.
> 
>   See
> 
>   http://blogs.sun.com/sch/entry/bespoke_services_application_catman
> 
>   for a naive first approach.

Grumpf... and how should this work ? AFAIK it's relying on MANPATH being
set (which is not always the case), covering all manual page directories
(which is not the case, e.g. /usr/dt/man/ or /opt/SUNWspro/man/ are not
always part of MANPATH (e.g. /usr/dt/man/ is only added at CDE login
time)) and AFAIK doesn't make the "windex" files available immediately
after a package has been installed (and IMO the usage of a cronjob-like
"refresh" is not what you want... the SuSE bug DB is full of issues
caused by the storm of disk activity every 24h).

IMO it may be better to have something like
/usr/doc/sbin/generatepkgmanindex which is called by a "postinstall"
script - the script could generate the "windex" file immediately and
"log" the directory of the manual pages to something like
/var/doc/mandirs (which contains a list of dirs with manual pages) that
calls to /usr/doc/sbin/generatepkgmanindex without an argument refresh
all manual page dirs which have been registered in /var/doc/mandirs ...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to