GNU bug report logs

#20255 'search-paths' should respect both user and system profile.

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #94 received at 20255@debbugs.gnu.org (full text, mbox, reply):

Received: (at 20255) by debbugs.gnu.org; 26 Jun 2021 02:37:11 +0000
From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 25 22:37:11 2021
Received: from localhost ([127.0.0.1]:46989 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1lwyBz-0005vt-10
	for submit@debbugs.gnu.org; Fri, 25 Jun 2021 22:37:11 -0400
Received: from mail-qt1-f181.google.com ([209.85.160.181]:36653)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@gmail.com>) id 1lwyBx-0005vb-9M
 for 20255@debbugs.gnu.org; Fri, 25 Jun 2021 22:37:09 -0400
Received: by mail-qt1-f181.google.com with SMTP id r20so9055833qtp.3
 for <20255@debbugs.gnu.org>; Fri, 25 Jun 2021 19:37:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=kS2QpeLsQgmYGHaoCmiZ5bmu/9XDZe1nabV6COYMHdA=;
 b=O5J/CBcWojQJUzZG5F+HF4ObEVeg40Q8UxWDN0n7jh4QADNEM+67VcjvtegG5Eg1Fj
 1f+bGRjxP/iVTfoBY7rt22K6hHuPv8+hBwS8cdGNbYwetDYNBv7ZHFxuRwrxn7b1h89z
 IB3tSU//NcVAKAXxEWdKex3zQCkHCvZqJghOb9vQL6d1oKoAbxftH1qoDQS9u7rvluX4
 8A4IlzTwdnrAQYqNVPGxM3/XHNolLzvUzHKmWRDKVpjxf/oW0As/p5s/wAOO2p8klkzU
 xKnA6+37OLeQAimHJBMzWH+BjyYpSDG7Qxne1OI8Bw5UXNneyA6SVEOTp96oAOmUnEwW
 r6HA==
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:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=kS2QpeLsQgmYGHaoCmiZ5bmu/9XDZe1nabV6COYMHdA=;
 b=fGZ9zM+VLVSwqcQ8JcnM/EIPtBWALlqai4gakLBNTrOCqhfxNPWxVnxz3RbaEcE9cC
 YzGbyL4HeXcqK9iFMlnJgHM/zzUchAyR7Es8Flb5Yu7E5rKjrTpqHctTJzCElAn7XCf/
 olNWhuUsrLTeyo+uccV4Aqqv2mviITxzUFJNylzASaNIc0cLLbXE+yvWXhOpBKDsaV7q
 kvW9GlQaByGxpcyr3CrWL99AuUrspzbgKcMSSVzqUiHGUGJRYDPgM2PfieObkE7fDPc7
 oCR8au7gZTSHp3bKSH/KED7clVIh8RkcsLLqCk5LHHe7xJwA0ucgyCT2Cd//5oJvGoW5
 2DGw==
X-Gm-Message-State: AOAM532CmHvgBopgK5uqaR4iaYjOaQa4EdLgxhMLF8FMDyQ4Hmx7UAgq
 1fVq2kf6oGCb+kdBUki72E0=
X-Google-Smtp-Source: ABdhPJzyXyXX3ZW68bWLWcgW2NcQVrCNiMRnfHBGs2uRylTY1DYoxnkQt8cn0BZ0EnGzj5wOo9XGxA==
X-Received: by 2002:ac8:5901:: with SMTP id 1mr11851967qty.45.1624675023650;
 Fri, 25 Jun 2021 19:37:03 -0700 (PDT)
Received: from hurd (dsl-10-149-111.b2b2c.ca. [72.10.149.111])
 by smtp.gmail.com with ESMTPSA id y18sm4792638qtx.6.2021.06.25.19.37.02
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Jun 2021 19:37:03 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Alex Kost <alezost@gmail.com>
Subject: Re: bug#20255: 'search-paths' should respect both user and system
 profile.
References: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@mail.gmail.com>
 <87eeun97ur.fsf@gmail.com>
Date: Fri, 25 Jun 2021 22:37:02 -0400
In-Reply-To: <87eeun97ur.fsf@gmail.com> (Alex Kost's message of "Fri, 21 Feb
 2020 20:18:52 +0300")
Message-ID: <874kdlxsfl.fsf_-_@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20255
Cc: mhw@netris.org, iyzsong@gmail.com,
 Ludovic Courtès <ludo@gnu.org>, 20255@debbugs.gnu.org,
 zimoun <zimon.toutoune@gmail.com>
X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Hello,

Alex Kost <alezost@gmail.com> writes:

> zimoun (2020-02-21 16:53 +0100) wrote:
>
>> Dear,
>>
>> What is the status of the bug#20255 [1]?
>> It is old; the last activity seems back on 2015, November. So let resume.
>>
>> The issue is, e.g.:
>>  - perl installed into the system profile
>>  - perl-xml-parser installed into an user profile
>> Then "guix package --search-paths" does not set correctly XML::Parser.
>>
>>
>> Fixes had been pushed: dedb17a and b2a7223 and cc3de1d.
>>
>> The final fix is still missing. Because it is a controversial patch
>> [2] :-) i.e., running 'guix' in '/etc/profile'; see these lines of the
>> patch:
>>
>> +  eval `/run/current-system/profile/bin/guix package \\
>> +          -p /run/current-system/profile             \\
>> +          -p \"$HOME/.guix-profile\" --search-paths`
>>
>>
>> The friendly "protest" [3] is about turning these lines optional via
>> an environment variable. I am not sure to follow where the discussion
>> had been going then.
>
> As for me, I am OK with any default setting as long as there is a way to
> change it.  I recall Ludovic proposed a patch that allowed to customize
> "/etc/profile" and I was happy about it, but he changed his mind on that
> patch so it was never committed.

Do you still have a vetted interest in the issue at hand?  This is a
serious usability problem that's been in limbo for 6 years, apparently
for reasons of purity (not wanting to run a command in /etc/profile).
While I share the sentiment that /etc/profile would better be 'inert' or
static, it seems we haven't been able to come up with a better solution
than calling 'guix package --search-paths'.  Like Ludovic, I also don't
find the idea of allowing users to override /etc/profile very appealing;
even if undocumented, its mere presence in the operating-system field
would be an invitation for problems.  An environment variable to disable
such basic functionality also seems backward to me.

I would personally be in favor of committing the fix as-is.  If < 1 s of
wasted time on boot is an issue, I suggest to look into GNU Shepherd to
offset it; optimization opportunities should abound :-).

Thank you,

Maxim




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Sep 7 12:54:16 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.