From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iJNIKNNiNV/cbwAA0tVLHw (envelope-from ) for ; Thu, 13 Aug 2020 15:57:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oEHwI9NiNV/McgAAbx9fmQ (envelope-from ) for ; Thu, 13 Aug 2020 15:57:07 +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 2DED394005D for ; Thu, 13 Aug 2020 15:57:06 +0000 (UTC) Received: from localhost ([::1]:40260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6FbF-0004HJ-QG for larch@yhetil.org; Thu, 13 Aug 2020 11:57:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6Fb6-0004Fq-84 for guix-devel@gnu.org; Thu, 13 Aug 2020 11:56:56 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:60811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6Fb4-0005g3-3U for guix-devel@gnu.org; Thu, 13 Aug 2020 11:56:55 -0400 Received: from bababa (lfbn-idf2-1-572-13.w86-246.abo.wanadoo.fr [86.246.37.13]) (Authenticated sender: mail@ambrevar.xyz) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 7C6A310000B; Thu, 13 Aug 2020 15:56:49 +0000 (UTC) From: Pierre Neidhardt To: Arun Isaac , Ricardo Wurmus Subject: Re: File search progress: database review and question on triggers In-Reply-To: <87r1sad0co.fsf@ambrevar.xyz> References: <87sgcuh8rb.fsf@ambrevar.xyz> <87y2ml429i.fsf@elephly.net> <87364tgja3.fsf@ambrevar.xyz> <87y2mlf4jw.fsf@ambrevar.xyz> <87pn7x3pyw.fsf@elephly.net> <87r1sbel4f.fsf@ambrevar.xyz> <87eeobh01d.fsf@systemreboot.net> <87d03uevdq.fsf@ambrevar.xyz> <875z9mhh3s.fsf@systemreboot.net> <87tux6d54k.fsf@ambrevar.xyz> <87zh6yfuin.fsf@systemreboot.net> <87r1sad0co.fsf@ambrevar.xyz> Date: Thu, 13 Aug 2020 17:56:48 +0200 Message-ID: <87o8neczen.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.178.231; envelope-from=mail@ambrevar.xyz; helo=relay11.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/13 11:56:50 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=1, PDS_OTHER_BAD_TLD=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Spam-Score: -0.61 X-TUID: BAfAzNzbJfIi --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I've pushed my experiment to the `wip-filesearch' branch. As of this writing it is not automatically triggered by "guix build". To test it: =2D Load the module from a REPL. =2D Run =2D-8<---------------cut here---------------start------------->8--- (test-index-git) =2D-8<---------------cut here---------------end--------------->8--- You should get a database at ~/.cache/guix/files.db. =2D Run =2D-8<---------------cut here---------------start------------->8--- (format-search (search-file-package "git perl5")) =2D-8<---------------cut here---------------end--------------->8--- to get some search results. =2D Run =2D-8<---------------cut here---------------start------------->8--- (persist-all-local-packages) =2D-8<---------------cut here---------------end--------------->8--- to build the database for all your local files. Warning, this takes some 30 seconds on my machine, could take minutes if you has a spinning drive or an old processor. I'll be away for a couple of days, feel free to experiment and send me some feedback in the meantime. What remains to be done: =2D Automatically index "guix build" result in database. Any idea where I can trigger the indexing from a "guix build"? =2D Sync the database data from a substitute server. Any pointer would be appreciated :) Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl81YsAACgkQm9z0l6S7 zH+hqgf/fP0eB67fpq/MZZ4LKqCdQufWlWQ8J7YakM5xsusa5jNJKqN16VAJNLLQ b8Kwo7T4wa4afJBSWyK4mAJZZ0dv6QMln6i/PPsJ9znD+NXdZ/UHTUQQ9RYErne+ HN0YqKs2zrOwGsIbWIdCLzzZsYNaVSrzsECEoPxHHggsMgqiIJCLsY0M3Ol7BRPV ERMisoybX++pR2DUd3ZVBOm1Mk3VTPQfNlX13Lz8pJcvDPr8kYsyApGPm9nLJkIQ o2rnb/2veewbTllI8sPmdPMHNzMCfSBcGoaWGKy2plBJ/QGnSERtcoG6xJ9sZ9wy u04Apz+1a/TX0f4ReEHfAbnadX13HQ== =AdXo -----END PGP SIGNATURE----- --=-=-=--