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 qCJBK4lq01+JVwAA0tVLHw (envelope-from ) for ; Fri, 11 Dec 2020 12:48:09 +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 yNgeJ4lq018mAgAA1q6Kng (envelope-from ) for ; Fri, 11 Dec 2020 12:48:09 +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 15D10940416 for ; Fri, 11 Dec 2020 12:48:09 +0000 (UTC) Received: from localhost ([::1]:55828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knhqA-0001yB-RE for larch@yhetil.org; Fri, 11 Dec 2020 07:48:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knhpB-0001LY-Bs for bug-guix@gnu.org; Fri, 11 Dec 2020 07:47:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57034) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knhp7-0007yB-Rj for bug-guix@gnu.org; Fri, 11 Dec 2020 07:47:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knhp7-0007VD-QM for bug-guix@gnu.org; Fri, 11 Dec 2020 07:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45173: =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?search=E2=80=99?= traverses all the modules when extra channels are used Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 11 Dec 2020 12:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45173 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 45173@debbugs.gnu.org Received: via spool by 45173-submit@debbugs.gnu.org id=B45173.160769076828766 (code B ref 45173); Fri, 11 Dec 2020 12:47:01 +0000 Received: (at 45173) by debbugs.gnu.org; 11 Dec 2020 12:46:08 +0000 Received: from localhost ([127.0.0.1]:40347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knhoF-0007Tu-S2 for submit@debbugs.gnu.org; Fri, 11 Dec 2020 07:46:08 -0500 Received: from mail-wm1-f48.google.com ([209.85.128.48]:53761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knhoD-0007T8-Er for 45173@debbugs.gnu.org; Fri, 11 Dec 2020 07:46:06 -0500 Received: by mail-wm1-f48.google.com with SMTP id k10so7455870wmi.3 for <45173@debbugs.gnu.org>; Fri, 11 Dec 2020 04:46:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=2lZBWtC1aoDT27Y1lyt8Wi1MM+GDZc07pKA+KhuXOyc=; b=C0kFSneZoiqA2FIS5wldr7+PfYCBC5U/eQa8vzUsN/CvARBfkBvQ5HXyIZYO2TQTDv YcIqFi+mXsry86jdHcEXCO/E7f5eSQUFcJaueyPuMWYp3hSwOV+skUGmVIle+auLLZZz 5AcD0MNaIYqK4u10Y1BMPXjrcgIpZmvs8SiuyET8zdg2P+RFNlwy5R8VFMt1u/g5e3xD SDmBApOi2sXO4MV4vBC2oBRgSsrhU9HE2N2g1MzX7SrHyH9kjKc/aQTRR0gcL/lRdfnk wngHWy1dlXamEHUmdhEVmjS6w1fe9UINVqyzxP25lb6Qd+oMQmd2xpIeXLc2QB0obhjS LObA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=2lZBWtC1aoDT27Y1lyt8Wi1MM+GDZc07pKA+KhuXOyc=; b=nYgD3j5rohirqKSDvAHjKxo6EqpFnL5YfuNU4Q9W77DaVBjud2lunY9JOek/t7qJuU L/Su/W0W1LStcfZK0IOhXAnf3N/kEmM7L27bK1DFXCQ0zs2a+U6TXiDKTONKuINfPyyf GK54E86nLM5oDhyD5oi07ZJZWQrXiqjj8pYqoayo0suUTz/JwS3YPKjhkzOGhqQZmSV9 OAc00wE0VcShwUvid484Kdt5py8+tLnCh+ghrHRiUQh2055nxiaAIhyZkWaq/ExCC1xi I2149gcAtQ3ZjOgxGPajdYBbL2uLnbRlWj9bgDpB9xaZdgracdbiGarRY3onKGhDlQqs gsIg== X-Gm-Message-State: AOAM533WLIJS+LeFchbiGJJhEmQz07wzol6fSqXvqBWlqwr2vrLlJ+P0 9kAf+7qQf8zchWIt0v1jr63BpRj56Vg= X-Google-Smtp-Source: ABdhPJzvBWFa0uNEb7n8tonGAK+svBgC+XFklK1B0Jm3yd67u6O1/YBcynNq/FM8b+iWem8e9wH35Q== X-Received: by 2002:a1c:a185:: with SMTP id k127mr5605068wme.23.1607690759121; Fri, 11 Dec 2020 04:45:59 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id h9sm14326619wre.24.2020.12.11.04.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Dec 2020 04:45:58 -0800 (PST) From: zimoun In-Reply-To: <87ft4c8zcp.fsf@inria.fr> References: <87ft4c8zcp.fsf@inria.fr> Date: Fri, 11 Dec 2020 13:45:00 +0100 Message-ID: <86blf0h5pv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.20 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=C0kFSneZ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 15D10940416 X-Spam-Score: -1.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4JcisIoRnMi4 Hi Ludo, On Fri, 11 Dec 2020 at 10:29, Ludovic Court=C3=A8s wrote: > --8<---------------cut here---------------start------------->8--- > $ strace -o /tmp/,,s guix search sdfsdf > $ grep gnu/services /tmp/,,s > $ echo $? > 1 > --8<---------------cut here---------------end--------------->8--- I do not know what is the point of the strace command, but this file contains a lot: --8<---------------cut here---------------start------------->8--- $ guix describe Generation 50 Dec 01 2020 23:31:01 (current) guix f4450e8 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: f4450e8ca909530ee3432710b82f97e23acc7fef $ strace -o /tmp/,,s guix search sdfsdf=20=20=20=20 $ cat /tmp/,,s | grep ice-9 | wc -l 448 $ cat /tmp/,,s | grep srfi | wc -l 330 $ cat /tmp/,,s | grep 'guix/build' | wc -l 129 $ cat /tmp/,,s | grep 'guix/scripts' | wc -l 12 $cat /tmp/,,s | grep 'guix/import' | wc -l 9 --8<---------------cut here---------------end--------------->8--- But no =E2=80=99services=E2=80=99, indeed. The 3 first are expected since = they used somehow by files in =E2=80=99gnu/packages/=E2=80=99. I am surprised by =E2= =80=99guix/scripts=E2=80=99 or =E2=80=99guix/import=E2=80=99, the few I tried. And I note a variation with the option =E2=80=99-L=E2=80=99. --8<---------------cut here---------------start------------->8--- $ mkdir -p /tmp/foo $ ls /tmp/foo/ $ strace -o /tmp/,,l guix search sdfsdf -L /tmp/foo $ wc -l /tmp/,,l /tmp/,,s 10059 /tmp/,,l 8745 /tmp/,,s 18804 total $ grep services /tmp/,,l $ echo $? 1=20=20 --8<---------------cut here---------------end--------------->8--- Well, I am not sure to understand=E2=80=A6 And last, the bug: --8<---------------cut here---------------start------------->8--- $ strace -o /tmp/,,g guix search sdfsdf -L ~/src/guix/guix-past/modules $ cat /tmp/,,g | grep 'gnu/services' | wc -l 30 $ ag services ~/src/guix/guix-past/ $ echo $? 1 $ ls -1 ~/src/guix/guix/gnu/services/*.scm | wc -l 50 --8<---------------cut here---------------end--------------->8--- All the best, simon