GNU bug report logs - #45173
‘guix search’ traverses all the modules when extra channels are used

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Ludovic Courtès <ludovic.courtes@HIDDEN>; Keywords: notabug; Done: Ludovic Courtès <ludo@HIDDEN>; Maintainer for guix is bug-guix@HIDDEN.
bug closed, send any further explanations to 45173 <at> debbugs.gnu.org and Ludovic Courtès <ludovic.courtes@HIDDEN> Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) notabug. Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 45173 <at> debbugs.gnu.org:


Received: (at 45173) by debbugs.gnu.org; 26 Jan 2021 14:06:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 09:06:58 2021
Received: from localhost ([127.0.0.1]:41105 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1l4Ozh-00056t-Va
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2021 09:06:58 -0500
Received: from eggs.gnu.org ([209.51.188.92]:53990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1l4Ozh-00056g-6O
 for 45173 <at> debbugs.gnu.org; Tue, 26 Jan 2021 09:06:57 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50973)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>) id 1l4Ozc-0001Ql-3V
 for 45173 <at> debbugs.gnu.org; Tue, 26 Jan 2021 09:06:52 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38312 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1l4Ozb-0007Mx-Kb
 for 45173 <at> debbugs.gnu.org; Tue, 26 Jan 2021 09:06:51 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: 45173 <at> 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
References: <87ft4c8zcp.fsf@HIDDEN>
Date: Tue, 26 Jan 2021 15:06:49 +0100
In-Reply-To: <87ft4c8zcp.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?=
 =?utf-8?Q?'s?= message of "Fri, 11 Dec 2020 10:29:42 +0100")
Message-ID: <87pn1rztae.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 45173
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ludovic Court=C3=A8s <ludovic.courtes@HIDDEN> skribis:

> But with multiple channels, all of the guile-module-union directory is
> traversed, and that includes *everything*:
>
> $ /tmp/past/bin/guix describe
> Generacio 1     Dec 11 2020 10:26:58    (nuna)
>   guix-past 829923f
>     repository URL: https://gitlab.inria.fr/guix-hpc/guix-past
>     branch: master
>     commit: 829923f01f894f1e687735627025ada26230832f
>   guix f765577
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: f765577dec0340d035021d030f17b54a3a5fd6b1
> $ strace -o /tmp/,,s /tmp/past/bin/guix search sdfsdf
> $ grep gnu/services /tmp/,,s
> stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/share=
/guile/site/3.0/gnu/services.scm", {st_mode=3DS_IFREG|0444, st_size=3D41045=
, ...}) =3D 0
> stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/lib/g=
uile/3.0/site-ccache/gnu/services.go", {st_mode=3DS_IFREG|0444, st_size=3D4=
20021, ...}) =3D 0
> openat(AT_FDCWD, "/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module=
-union/lib/guile/3.0/site-ccache/gnu/services.go", O_RDONLY|O_CLOEXEC) =3D =
14
> stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/share=
/guile/site/3.0/gnu/services/shepherd.scm", {st_mode=3DS_IFREG|0444, st_siz=
e=3D23156, ...}) =3D 0

False alarm!  This was caused by a #:use-module (gnu) statement in one
of the Guix-Past modules, fixed here:

  https://gitlab.inria.fr/guix-hpc/guix-past/-/commit/4f5856f85578a04991dc6=
46a06279d51f85973bf

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#45173; Package guix. Full text available.

Message received at 45173 <at> debbugs.gnu.org:


Received: (at 45173) by debbugs.gnu.org; 11 Dec 2020 16:46:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 11 11:46:14 2020
Received: from localhost ([127.0.0.1]:42787 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1knlYc-0003yV-3l
	for submit <at> debbugs.gnu.org; Fri, 11 Dec 2020 11:46:14 -0500
Received: from mail-ej1-f46.google.com ([209.85.218.46]:43397)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1knlYa-0003yG-0n
 for 45173 <at> debbugs.gnu.org; Fri, 11 Dec 2020 11:46:12 -0500
Received: by mail-ej1-f46.google.com with SMTP id jx16so13206435ejb.10
 for <45173 <at> debbugs.gnu.org>; Fri, 11 Dec 2020 08:46:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:in-reply-to:references:date:message-id
 :mime-version:content-transfer-encoding;
 bh=iZhjABnWqBXyD684FQQIJpxAWa21v0XOxeVXtpAAbpU=;
 b=gFfJDI0Zwm2nqSZeAxpRWlsUQv+ieS7O89h8yV2QnzZEQKV2JHU7frGTxr83ALlc9f
 56yYHg3jFvnAnMWS5v4EB0Hy1odFX2Y62bsLHIxU7zmpNAbmIkScIDiXWJkqtglahY7i
 xKXHC5JlTjOcb6MondrUugzngT0v/P26JihZcGiDc7m6OdJNP7jVH8j0iIMaoqfPQ7Ti
 JIEmR7YZd85L5B/cXuKCMSkM0z404CQ7wpFuIC+wKrLo3VCkGvK1uP28MeTCkfyKXrzg
 WCGzh3XW6MKYGPSwUsL21chvpZILNgKY7rKfXndGn4dLahtbNgjkzcNco3zGtDMaZFd6
 peIw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date
 :message-id:mime-version:content-transfer-encoding;
 bh=iZhjABnWqBXyD684FQQIJpxAWa21v0XOxeVXtpAAbpU=;
 b=g7qevOC64aDBPF1TUA+LzVrLpqYQCm6sCGbGbLqSwCpuRe0vzU6REYuag0CI51009T
 jOetQApIfHIq+nFcA+wQVLbnZm1DYi0GyjUVACD7hapdCpo6yaC4uCFz7KD2V3jyGoxe
 pwxll0V/FKxdeY+2+ctVAtFpHh6s8ohk/2G/XvTkLmqLUMl9xfkcGR9p0EC+zdOReZUF
 piSNedhfvHmheCPP3gF5HLYduxGpPqFLwqSWSUCpfIGHDWgnJkSP+nC73p9ZbBlHuTcc
 u94L+qsPitYWrC21KK6BomJQASdMM5IsliL8dlD+QeOtzI36jupMluPZzGZSyu3zxekd
 Qk/g==
X-Gm-Message-State: AOAM5302zfCdodqo9oo6KvNXGvZhLFkyLO4HUvoDbe5odIICb9x1vKVW
 OlOKSyhyejc4+PUEVtIkSBhaWSPaWrw=
X-Google-Smtp-Source: ABdhPJy1Fi5TRgCBfdxj6zeKKE74eP1opGidu8TInKyDH+k282Qaz3T0prdzRSteh0cB0x5gonGEmw==
X-Received: by 2002:a17:906:1199:: with SMTP id
 n25mr11459734eja.293.1607705165950; 
 Fri, 11 Dec 2020 08:46:05 -0800 (PST)
Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id cb21sm8293840edb.57.2020.12.11.08.46.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 11 Dec 2020 08:46:05 -0800 (PST)
From: zimoun <zimon.toutoune@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludovic.courtes@HIDDEN>
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: <875z5872vv.fsf@HIDDEN>
References: <87ft4c8zcp.fsf@HIDDEN> <86blf0h5pv.fsf@HIDDEN>
 <875z5872vv.fsf@HIDDEN>
Date: Fri, 11 Dec 2020 17:44:12 +0100
Message-ID: <86zh2kfg2r.fsf@HIDDEN>
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
Cc: 45173 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hey,

On Fri, 11 Dec 2020 at 16:56, Ludovic Court=C3=A8s <ludovic.courtes@HIDDEN=
r> wrote:

> The point :-) is to show that things that should definitely not be
> loaded, such as gnu/services/*, are getting loaded when multiple
> channels are in use.

What I have tried to show is that even with the default, =C2=ABthings that
should definitely not be loaded, such as guix/scripts/* or
guix/import/*=C2=BB are getting loaded.  And worse, adding an empty
=E2=80=9C--load-path=E2=80=9D adds burden.  Multiple channels seems only on=
e part of the
story. :-)

Cheers,
simon




Information forwarded to bug-guix@HIDDEN:
bug#45173; Package guix. Full text available.

Message received at 45173 <at> debbugs.gnu.org:


Received: (at 45173) by debbugs.gnu.org; 11 Dec 2020 15:56:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 11 10:56:31 2020
Received: from localhost ([127.0.0.1]:42726 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1knkmU-0002e6-Qn
	for submit <at> debbugs.gnu.org; Fri, 11 Dec 2020 10:56:31 -0500
Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:15084)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1knkmT-0002dk-27
 for 45173 <at> debbugs.gnu.org; Fri, 11 Dec 2020 10:56:30 -0500
X-IronPort-AV: E=Sophos;i="5.78,411,1599516000"; d="scan'208";a="367375600"
Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201])
 by mail3-relais-sop.national.inria.fr with
 ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2020 16:56:21 +0100
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: bug#45173: =?utf-8?Q?=E2=80=98guix_search=E2=80=99?= traverses
 all the modules when extra channels are used
References: <87ft4c8zcp.fsf@HIDDEN> <86blf0h5pv.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 21 Frimaire an 229 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Fri, 11 Dec 2020 16:56:20 +0100
In-Reply-To: <86blf0h5pv.fsf@HIDDEN> (zimoun's message of "Fri, 11 Dec 2020
 13:45:00 +0100")
Message-ID: <875z5872vv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 45173
Cc: 45173 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi!

zimoun <zimon.toutoune@HIDDEN> skribis:

> On Fri, 11 Dec 2020 at 10:29, Ludovic Court=C3=A8s <ludovic.courtes@inria=
.fr> 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:

The point :-) is to show that things that should definitely not be
loaded, such as gnu/services/*, are getting loaded when multiple
channels are in use.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#45173; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 45173 <at> debbugs.gnu.org:


Received: (at 45173) by debbugs.gnu.org; 11 Dec 2020 12:46:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 11 07:46:08 2020
Received: from localhost ([127.0.0.1]:40347 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1knhoF-0007Tu-S2
	for submit <at> 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 <zimon.toutoune@HIDDEN>) id 1knhoD-0007T8-Er
 for 45173 <at> 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 <at> 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 <zimon.toutoune@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludovic.courtes@HIDDEN>,
 45173 <at> 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@HIDDEN>
References: <87ft4c8zcp.fsf@HIDDEN>
Date: Fri, 11 Dec 2020 13:45:00 +0100
Message-ID: <86blf0h5pv.fsf@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Ludo,

On Fri, 11 Dec 2020 at 10:29, Ludovic Court=C3=A8s <ludovic.courtes@HIDDEN=
r> 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




Information forwarded to bug-guix@HIDDEN:
bug#45173; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Dec 2020 09:29:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 11 04:29:53 2020
Received: from localhost ([127.0.0.1]:39973 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1knekL-0006eu-6D
	for submit <at> debbugs.gnu.org; Fri, 11 Dec 2020 04:29:53 -0500
Received: from lists.gnu.org ([209.51.188.17]:39352)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1knekK-0006en-4B
 for submit <at> debbugs.gnu.org; Fri, 11 Dec 2020 04:29:52 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:55746)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1knekJ-0002F7-Mn
 for bug-guix@HIDDEN; Fri, 11 Dec 2020 04:29:51 -0500
Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:56317)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1knekG-00045j-1b
 for bug-guix@HIDDEN; Fri, 11 Dec 2020 04:29:51 -0500
X-IronPort-AV: E=Sophos;i="5.78,411,1599516000"; d="scan'208";a="367317631"
Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201])
 by mail3-relais-sop.national.inria.fr with
 ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2020 10:29:43 +0100
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: bug-guix@HIDDEN
Subject: =?utf-8?Q?=E2=80=98guix_search=E2=80=99?= traverses all the modules
 when extra channels are used
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 21 Frimaire an 229 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Fri, 11 Dec 2020 10:29:42 +0100
Message-ID: <87ft4c8zcp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=192.134.164.104;
 envelope-from=ludovic.courtes@HIDDEN;
 helo=mail3-relais-sop.national.inria.fr
X-Spam_score_int: -41
X-Spam_score: -4.2
X-Spam_bar: ----
X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

When a single channel is in use, =E2=80=98guix search=E2=80=99 understandab=
le traverses
nothing but gnu/packages/*.scm:

--8<---------------cut here---------------start------------->8---
$ strace -o /tmp/,,s guix search sdfsdf
$ grep gnu/services /tmp/,,s
$ echo $?
1
--8<---------------cut here---------------end--------------->8---

But with multiple channels, all of the guile-module-union directory is
traversed, and that includes *everything*:

--8<---------------cut here---------------start------------->8---
$ /tmp/past/bin/guix describe
Generacio 1     Dec 11 2020 10:26:58    (nuna)
  guix-past 829923f
    repository URL: https://gitlab.inria.fr/guix-hpc/guix-past
    branch: master
    commit: 829923f01f894f1e687735627025ada26230832f
  guix f765577
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: f765577dec0340d035021d030f17b54a3a5fd6b1
$ strace -o /tmp/,,s /tmp/past/bin/guix search sdfsdf
$ grep gnu/services /tmp/,,s
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/share/g=
uile/site/3.0/gnu/services.scm", {st_mode=3DS_IFREG|0444, st_size=3D41045, =
...}) =3D 0
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/lib/gui=
le/3.0/site-ccache/gnu/services.go", {st_mode=3DS_IFREG|0444, st_size=3D420=
021, ...}) =3D 0
openat(AT_FDCWD, "/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-u=
nion/lib/guile/3.0/site-ccache/gnu/services.go", O_RDONLY|O_CLOEXEC) =3D 14
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/share/g=
uile/site/3.0/gnu/services/shepherd.scm", {st_mode=3DS_IFREG|0444, st_size=
=3D23156, ...}) =3D 0
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/lib/gui=
le/3.0/site-ccache/gnu/services/shepherd.go", {st_mode=3DS_IFREG|0444, st_s=
ize=3D405997, ...}) =3D 0
openat(AT_FDCWD, "/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-u=
nion/lib/guile/3.0/site-ccache/gnu/services/shepherd.go", O_RDONLY|O_CLOEXE=
C) =3D 14
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/share/g=
uile/site/3.0/gnu/services/herd.scm", {st_mode=3DS_IFREG|0444, st_size=3D10=
387, ...}) =3D 0
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/lib/gui=
le/3.0/site-ccache/gnu/services/herd.go", {st_mode=3DS_IFREG|0444, st_size=
=3D188509, ...}) =3D 0
openat(AT_FDCWD, "/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-u=
nion/lib/guile/3.0/site-ccache/gnu/services/herd.go", O_RDONLY|O_CLOEXEC) =
=3D 14
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/share/g=
uile/site/3.0/gnu/services/base.scm", {st_mode=3DS_IFREG|0444, st_size=3D11=
0305, ...}) =3D 0
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/lib/gui=
le/3.0/site-ccache/gnu/services/base.go", {st_mode=3DS_IFREG|0444, st_size=
=3D2203613, ...}) =3D 0
openat(AT_FDCWD, "/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-u=
nion/lib/guile/3.0/site-ccache/gnu/services/base.go", O_RDONLY|O_CLOEXEC) =
=3D 14
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/share/g=
uile/site/3.0/gnu/services/admin.scm", {st_mode=3DS_IFREG|0444, st_size=3D1=
2494, ...}) =3D 0
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/lib/gui=
le/3.0/site-ccache/gnu/services/admin.go", {st_mode=3DS_IFREG|0444, st_size=
=3D416133, ...}) =3D 0
openat(AT_FDCWD, "/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-u=
nion/lib/guile/3.0/site-ccache/gnu/services/admin.go", O_RDONLY|O_CLOEXEC) =
=3D 14
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/share/g=
uile/site/3.0/gnu/services/mcron.scm", {st_mode=3DS_IFREG|0444, st_size=3D7=
667, ...}) =3D 0
stat("/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-union/lib/gui=
le/3.0/site-ccache/gnu/services/mcron.go", {st_mode=3DS_IFREG|0444, st_size=
=3D187549, ...}) =3D 0
openat(AT_FDCWD, "/gnu/store/3jnlvi2akawnxd1jq6m58kxc7nj07phc-guix-module-u=
nion/lib/guile/3.0/site-ccache/gnu/services/mcron.go", O_RDONLY|O_CLOEXEC) =
=3D 14
--8<---------------cut here---------------end--------------->8---

This was reported by bdju on #guix, who were getting the new SSH
password warning while running =E2=80=98guix search=E2=80=99.

Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludovic.courtes@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#45173; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 26 Jan 2021 14:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.