discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Ingo Schwarze <schwarze@usta.de>
To: discuss@mdocml.bsd.lv
Subject: Re: mdocml version 1.12.0 available
Date: Mon, 10 Oct 2011 19:14:33 +0200	[thread overview]
Message-ID: <20111010171433.GA28687@iris.usta.de> (raw)
In-Reply-To: <4E92F1B7.8030605@bsd.lv>

Hi Thomas,

Kristaps Dzonsons wrote on Mon, Oct 10, 2011 at 03:23:03PM +0200:
> On 10/10/2011 03:05 PM, Thomas Klausner wrote:
>> On Sat, Oct 08, 2011 at 10:23:12PM +0200, Kristaps Dzonsons wrote:

>>> Among many output improvements, this release features -Tman,
>>> allowing distribution of -man UNIX manuals for legacy systems;
>>> significant upgrades to the reference manual pages; and an
>>> experimental apropos(1) working with mandocdb(8) (imported from
>>> mandoc-tools for in-tree work).

>> Very cool, thanks.
>> I wonder why apropos(1) is not installed by default though?

It's just not ready for production at this time and
might possibly clobber the apropos(1) existing on the system.

The user interface (option naming) is still completely different
from any other apropos(1), and all of the MANPATH handling is
still missing.  We have to fix that before we can install it.

See also the commit message at:
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mandoc/apropos.c#rev1.1

> Because I forgot to modify the install hook in the Makefile.  Gah.

Gah indeed...  Be thankful that you forgot it!  ;-)


> Anyway, where would mandocdb go?  makewhatis, on OpenBSD, is in
> /usr/libexec, but this doesn't seem right.

Well, for makewhatis on OpenBSD, it does seem right, because it
is not supposed to be called manually and needs not be in the PATH,
it is just called internally from /etc/weekly and from the pkg
tools.

Regarding full mandocdb(8) integration, one thing is still missing:
Parsing of preformatted manuals.  At first we will probably go the
way of keeping the old makewhatis(8), letting it do the tree walks,
letting it process the preformatted manuals itself, letting it
remember the installed source manuals and call out to mandocdb(8)
to process the latter at the end.  So from that perspective,
mandocdb(8) could be in libexec just like makewhatis(8).

The reason i put it into /usr/bin/ is that it's a hardlink to mandoc(1)
on OpenBSD, so having the two as close together as possible helps
the admin to understand what's going on and minimizes the risk of
breaking things when people start splitting filesystems.  Besides,
when as user puts his own (special-purpose, maybe smallish) man tree
into his home directory, the user might wish to generate a mandoc.db
there.  So it's not necessarily a "system utility" only, it can
also be a user utility - compare to stuff like accton, adduser,
bgpctl, chown, chroot, edquota, lpc, pkg_add, ...

Well ok, nslookup is also in /usr/sbin/, so apparently, the rules
aren't that strict.

Yours,
  Ingo
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

  parent reply	other threads:[~2011-10-10 17:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <sfid-H20111008-222347-+063.46-1@spamfilter.osbf.lua>
2011-10-08 20:23 ` Kristaps Dzonsons
2011-10-10 13:05   ` Thomas Klausner
2011-10-10 13:23     ` Kristaps Dzonsons
2011-10-10 14:31       ` Thomas Klausner
2011-10-10 17:14       ` Ingo Schwarze [this message]
2011-10-11 14:56   ` Joerg Sonnenberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111010171433.GA28687@iris.usta.de \
    --to=schwarze@usta.de \
    --cc=discuss@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).