From: "Ludovic Courtès" <ludo@gnu.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: Getting rid of the mandb profile hook?
Date: Tue, 08 Dec 2020 11:47:16 +0100 [thread overview]
Message-ID: <87o8j4wp57.fsf@gnu.org> (raw)
In-Reply-To: <87blf77osp.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 06 Dec 2020 01:37:10 +0100")
Hi,
Ricardo Wurmus <rekado@elephly.net> skribis:
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> I’m thinking we could get rid of the mandb hook.
>
> Yes, please!
I see consensus against that hook. :-)
>> 1. Provide a ‘man’ wrapper or modify the ‘man-db’ package such that
>> the database gets built on the first use of ‘man -k’, unless it’s
>> already up-to-date.
>>
>> 2. Add a phase in gnu-build-system.scm that creates a per-package
>> database. Change the mandb profile hook such that all it needs to
>> do is “concatenate” all these GDBM databases (which should be much
>> faster than browsing all the man pages as it currently does).
>
> Either of these seem fine to me. I think option 2 would be nicer as we
> don’t need to modify “man” and most of the work is done ahead of time.
> I don’t know if these individual mandb database *can* simply be
> concatenated. If this turns out to be much more complicated I think we
> should just go with option 1.
It’s “concatenated” in the sense of building the union of all the
key/value entries. So it’s not for free either but certainly much less
expensive than what we’re doing.
I’ll probably take a look at some point, but if another person tired of
waiting for the hook would like to give it a try, please do! :-)
Ludo’.
next prev parent reply other threads:[~2020-12-08 10:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-05 18:31 Getting rid of the mandb profile hook? Ludovic Courtès
2020-12-05 18:51 ` Pierre Neidhardt
2020-12-05 20:18 ` Ryan Prior
2020-12-06 0:37 ` Ricardo Wurmus
2020-12-08 10:47 ` Ludovic Courtès [this message]
2021-02-27 13:05 ` Maxim Cournoyer
2021-03-03 14:13 ` Ludovic Courtès
2021-03-03 20:50 ` Brice Waegeneire
2021-03-10 10:20 ` Ludovic Courtès
2021-04-02 16:56 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8j4wp57.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).