Hi Fabian,

Fabian Raetz wrote on Thu, Apr 24, 2014 at 12:08:51PM +0200:

> while updating my packages with 'pkg_add -u' i noticed
> some lines like:
> 
> /usr/local/jdk-1.6.0/man//mandoc.db: unable to open database file
> jdk-1.6.0.32p6->1.6.0.32p6: ok
> /usr/local/jdk-1.7.0/man//mandoc.db: unable to open database file
> jdk-1.7.0.21p2v0->1.7.0.21p2v0: ok

Not a bug, that's expected behaviour.

The jdk packages install manuals outside the normal /usr/local/man/
manual tree, in this case (see the message above!)
/usr/local/jdk-1.6.0/man/ and /usr/local/jdk-1.7.0/man/.
In case you add these paths to man.conf(5), pkg_add(1) tries to
add the new files to the mandoc databases in these directories,
called (see the message above!) /usr/local/jdk-1.6.0/man/mandoc.db
and /usr/local/jdk-1.7.0/man/mandoc.db.  Now, as you just upgraded
past the makewhatis(8)/apropos(1) switch, such databases do not yet
exist.  Consequently, makewhatis(8) warns you about that fact - and
initializes the databases for you.  To witness, run

  apropos -M /usr/local/jdk-1.6.0/man:/usr/local/jdk-1.7.0/man tool

> I've seen these 'mandoc' lines last week for the first time 
> after updating packages. The same message showed up for some 
> other packages too. Don't ask me which pkg's especially :)

 devel/jdk       -> jdk-1.{6,7}.0/man
 devel/jre       -> jre-1.{6,7}.0/man
 devel/mingw     -> mingw32/man
 lang/erlang     -> lib/erlang/man
 lang/node       -> lib/node_modules/npm/man
 lang/STk        -> lib/stk/${STK_VERSION}/man
 lang/tcl        -> lib/tcl/tcl8.{5,6}/man
 plan9/plan9port -> plan9/man
 x11/qt3         -> lib/qt3/man
 x11/tk          -> lib/tcl/tk8.{5,6}/man

> Someone else seeing this?

No doubt.

Yours,
  Ingo

Reply via email to