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 #106 received at 20255@debbugs.gnu.org (full text, mbox, reply):

Received: (at 20255) by debbugs.gnu.org; 28 Jun 2021 04:48:13 +0000
From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 28 00:48:13 2021
Received: from localhost ([127.0.0.1]:50625 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1lxjBs-0006MN-WA
	for submit@debbugs.gnu.org; Mon, 28 Jun 2021 00:48:13 -0400
Received: from mail-qk1-f174.google.com ([209.85.222.174]:40719)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@gmail.com>) id 1lxjBq-0006MA-Ah
 for 20255@debbugs.gnu.org; Mon, 28 Jun 2021 00:48:12 -0400
Received: by mail-qk1-f174.google.com with SMTP id b2so177895qka.7
 for <20255@debbugs.gnu.org>; Sun, 27 Jun 2021 21:48:10 -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=/pzpqWoFy4bmhB+iX8z+JZp4S8PzMBjaDMIS/9AvI3s=;
 b=INw5sri4DnRK3MLjX15IjzfojOY5TFjLTWT1E7yc1ty8o6I8ijnSAmELJPHFiTfbDA
 Kb2q6I2f74Yzx8wQ8A4TPsXTVU3ea/GeE7ZNem+KzomwQWodVz0tPaIYu294psKk1bND
 IpOeM7qGSVDRipx5Sg1hYVnr8+7ioPUebw1PqSLgmlrUDOKM31Lg8Da6yXLJUkFyDN27
 yjgOeTMrRrSOWUy6VeBjcuPlJ9fS8oYkNjGwxlhnaNKGumozUBa6movp61s5xeHat5Nn
 mSBzthk4JY4lnz+63oTWPgLNWp1XBAf/xFaomheI9kWYH+GLzkcOsiDlnTkTuNm1pG8p
 Ig+w==
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=/pzpqWoFy4bmhB+iX8z+JZp4S8PzMBjaDMIS/9AvI3s=;
 b=DEzbNlM+o2qkXCcLwjGZAPaQVx6m4qUHHfS26xhFlWuCQG6oG+r4Qbdb+5MvEPYhDH
 jHPAh/n1IWvZi/h9Fx83ZuTCPcNd8LFFIs5Z8KwWg5XuIdhxtZGQop/Ob/Q2ozUXcEmk
 2hPDRzzMueJqFKw5eNSwjFr0espay65h4Bi5ZfwuIpRpYkkXDBWrDX436LDg/HXTPOhn
 567pC/82ZxjmtddJV+Yiqe6HxO1RnIgZyb/OAJKbBlsZax/ZRowdbOJUtVWMgUKuPPCu
 gtMlhsDdssW5ivhytAAFeEQgboHHyxMUszkaOvw6Kg5T2xrrc6jaqIaoSPjBk5vWuVm7
 x5qQ==
X-Gm-Message-State: AOAM530BefSVGC4Ucccpl8k7a010H0uDRSH+4kYZvY+haEh+MosQuXiL
 Dx6q8IktoTDeC5i6PFFWzJg=
X-Google-Smtp-Source: ABdhPJygNQl4uzcigHYlt8c2sPxGOl/F/a+UneeZX4CNsetnj8uHIuPo2v2gu0XNsIZuPwHgt6kfHA==
X-Received: by 2002:ae9:e310:: with SMTP id v16mr11886872qkf.169.1624855684835; 
 Sun, 27 Jun 2021 21:48:04 -0700 (PDT)
Received: from hurd ([207.35.94.165])
 by smtp.gmail.com with ESMTPSA id d20sm7689187qtw.92.2021.06.27.21.48.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 27 Jun 2021 21:48:04 -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> <874kdlxsfl.fsf_-_@gmail.com>
 <8735t3d3wf.fsf@gmail.com>
Date: Mon, 28 Jun 2021 00:48:03 -0400
In-Reply-To: <8735t3d3wf.fsf@gmail.com> (Alex Kost's message of "Sun, 27 Jun
 2021 12:59:28 +0300")
Message-ID: <87im1ywq64.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: iyzsong@gmail.com, 20255@debbugs.gnu.org
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 (-)
Hi Alex,

Alex Kost <alezost@gmail.com> writes:

> Maxim Cournoyer (2021-06-25 22:37 -0400) wrote:
>
> [...]
>> 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 :-).
>
> I can modify /etc/profile with any "normal" linux distribution but I
> cannot do it with the Guix System.  And I find it awful that you think
> it should stay like that.  I am for providing as much freedom for a user
> (to configure their system) as possible.
> The current /etc/profile is bearable for me, but if you add a "guix ..."
> call there without providing a way to modify that file, I will probably
> stop using the Guix System.
>
> Or maybe there is a hacky way to change /etc/profile ?  If so, please
> share a code how this can be done.  (Then I will not complain anymore)

Thanks for the reply!  I just wanted to make sure the extra energy to be
spent on the search & implementation of a better solution would not be
in vain; now I that know that it won't!

I like the idea proposed by Leo Prikler; the one about giving the
possibility to users to override the list of default profiles considered
under a file such as ~/.config/guix/default-profiles.

The default would be to load both combine the environment variables of
the system and user profiles using 'guix package --search-paths', but a
user could opt-out of that by providing an empty file, or customize the
list of profiles the way they'd like.

Would that be an acceptable solution from your point of view?

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 09:14:12 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.