From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 11 07:46:08 2020 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 To: Ludovic =?utf-8?Q?Court=C3=A8s?= , 45173@debbugs.gnu.org Subject: Re: bug#45173: =?utf-8?Q?=E2=80=98guix_search=E2=80=99?= traverses all the modules when extra channels are used 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45173 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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