From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OBZILd4nzF9UMQAA0tVLHw (envelope-from ) for ; Sun, 06 Dec 2020 00:37:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OCozKd4nzF84OgAA1q6Kng (envelope-from ) for ; Sun, 06 Dec 2020 00:37:50 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7DA3A9404FD for ; Sun, 6 Dec 2020 00:37:50 +0000 (UTC) Received: from localhost ([::1]:54696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kli3h-000174-FM for larch@yhetil.org; Sat, 05 Dec 2020 19:37:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kli3M-00016f-Em for guix-devel@gnu.org; Sat, 05 Dec 2020 19:37:28 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kli3D-0006QY-EQ; Sat, 05 Dec 2020 19:37:28 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1607215035; cv=none; d=zohomail.com; s=zohoarc; b=MW+tt/pP8e5nCLvXO7OGmA1nulMdPUV0QnGDJbs0T2yd4/93EdxSZy14uw4NEcFG8oApVpFKcuCgNf3arpH7/IBE7oLlJNnNgyf7OWaWwQlCYZbTK03T7z0BpsTn8o9MRSYgnKPkYm+j0x+he0khgDaDu6Ro0MUDVpP0D03RBTs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607215035; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=B2zfRO5YpUYbdEhADsa0gKcwKdyMTI8kAQb0vhYQ4sA=; b=BXiLwamltJivyZ58+J+8b9H/USGmcvJ10UXGPvgAgTn2ygkEKvL/stEVeeDPPIEeExh2jMxwFsLEPs2D9pi5JTZ843T3S/BhNGHN4u7lcwpyhdx83JC1PptQLN70hX2AfVOC5+c5RmL2mpoxWaWLIDvolOTMAre1zMd6TtARUFw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1607215035; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=B2zfRO5YpUYbdEhADsa0gKcwKdyMTI8kAQb0vhYQ4sA=; b=Lh0QkGi9L8TuqGAsFbMzFFDC2sAS/+H88Zw1Zr5WqFmZCI8i3Et7PS/oW2FIPgoq A8L2cXRTgHS0Jp+MsGiliRpoVGKnk8ZLq5nWjipnIZKV0vs/mjlWVkZ6FD41PTJJfQP DahGt7tX4GQlmIp04fjfNlBK2EYyI590A5f0fwDY= Received: from localhost (p54ad4ba5.dip0.t-ipconnect.de [84.173.75.165]) by mx.zohomail.com with SMTPS id 16072150331141019.6849708306289; Sat, 5 Dec 2020 16:37:13 -0800 (PST) References: <87k0tw3y15.fsf@inria.fr> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Getting rid of the mandb profile hook? In-reply-to: <87k0tw3y15.fsf@inria.fr> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 06 Dec 2020 01:37:10 +0100 Message-ID: <87blf77osp.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Lh0QkGi9; arc=pass (zohomail.com:s=zohoarc:i=1); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 7DA3A9404FD X-Spam-Score: -2.50 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: XEQyhuWJ0hn+ Ludovic Court=C3=A8s writes: > I=E2=80=99m thinking we could get rid of the mandb hook. Yes, please! > 1. Provide a =E2=80=98man=E2=80=99 wrapper or modify the =E2=80=98man-d= b=E2=80=99 package such that > the database gets built on the first use of =E2=80=98man -k=E2=80=99= , unless it=E2=80=99s > 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 =E2=80=9Cconcatenate=E2=80=9D 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=E2=80=99t need to modify =E2=80=9Cman=E2=80=9D and most of the work is = done ahead of time. I don=E2=80=99t 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. --=20 Ricardo