From: Kristaps Dzonsons <kristaps@bsd.lv>
To: tech@mdocml.bsd.lv
Subject: Re: mandocdb: full set of search types
Date: Wed, 16 Nov 2011 01:52:14 +0100 [thread overview]
Message-ID: <4EC3093E.3030504@bsd.lv> (raw)
In-Reply-To: <20111116003919.GD30189@iris.usta.de>
On 16/11/2011 01:39, Ingo Schwarze wrote:
> Hi,
>
> we are close to going into production. I have talked to espie@,
> and he is d'accord with putting small pieces into
> /usr/src/libexec/makewhatis/Makewhatis.pm
> to call out to mandocdb(8) for automated updates of the mandoc.db
> files alongside the updates of the whatis.db files when installing
> and removing packages, such that people running -current can easily
> start testing the new apropos.
>
> We will keep the old makewhatis/apropos-combo in place until the new
> system is reasonably feature-complete and clearly better than the
> old one, then install the new apropos in place of the old one and
> finally remove the old components.
>
> Before enabling mandocdb in pkg_add(8), i'd like to get the database
> format complete, such that we don't force people to rebuild the
> databases after upgrading to new snapshots.
>
> Here is a patch defining TYPE_ flags for all macros that i can
> imagine might be worth searching for (maybe even a few more, but i'd
> rather have too many than too few). I have left out all obsolete
> macros and most physical formatting macros.
>
> This requires switching the mask to 64 bits. During the switch,
> i have replaced the very error-prone handling of the key database
> values by a new struct db_val; some memcpy() calls by normal
> assignments; and some magical constants by sizeof() constructs.
>
> OK to put this in, or do you see anything that is missing?
>
>
> Right now, i will start to implement the new search types.
Hi Ingo,
Just a word or two before I sleep. This approach is sound and I've no
issues with a quick look over the patch, but will wait til tomorrow to
do so in earnest. But first, before mandocdb gets production, the
database should be checked for endian-neutrality.
Second, we'd long ago mentioned splitting SYNOPSIS-invoked macros (Fl,
Fn, etc.) for querying on their SYNOPSIS or non-SYNOPSIS usage. I think
an elegant method is to encode the section within the keyword database,
which allows for
apropos Fn~mdoc -a -s SYNOPSIS
or whatever `-s' replacement operator. How does that sound? This
sounds a lot more reasonable than encoding separate Fn, Nm, etc. macros
for SYNOPSIS and non-SYNOPSIS invocation.
Thoughts?
Kristaps
--
To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv
next prev parent reply other threads:[~2011-11-16 0:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 0:39 Ingo Schwarze
2011-11-16 0:52 ` Kristaps Dzonsons [this message]
2011-11-16 1:50 ` Ingo Schwarze
2011-11-16 16:59 ` Ingo Schwarze
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=4EC3093E.3030504@bsd.lv \
--to=kristaps@bsd.lv \
--cc=tech@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).