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

Received: (at 20255) by debbugs.gnu.org; 21 Nov 2015 18:41:48 +0000
From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 21 13:41:48 2015
Received: from localhost ([127.0.0.1]:47286 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1a0D6Z-0005Ek-N8
	for submit@debbugs.gnu.org; Sat, 21 Nov 2015 13:41:48 -0500
Received: from mail-lf0-f41.google.com ([209.85.215.41]:34920)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <alezost@gmail.com>) id 1a0D6X-0005Eb-9M
 for 20255@debbugs.gnu.org; Sat, 21 Nov 2015 13:41:45 -0500
Received: by lfdl133 with SMTP id l133so5784790lfd.2
 for <20255@debbugs.gnu.org>; Sat, 21 Nov 2015 10:41:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type:content-transfer-encoding;
 bh=NACuNREA4/mLCU/oYkkHrW/OVuCq+G/NUC/NpjmXVDA=;
 b=MCz79d7Gsey9NtkeMtH2kdTfgyMdUEz/Xmp4hMhs5wwPHRuifOPUPZ+bD7qKa2uax0
 FwvCTjkGte7uYEUl3Bt0KEz2ydtleL8MYKoOQhOrjB3eEyueDAA699RPwI+7WZDp8ziY
 rfVcXUSCL5K5PtehJjBpjEzdvdTRhl+ARg75IZSgpxd1a5SDTJBKL58+gO+HFPN9kJC9
 qYOtQ//mdQJNohfnJ/9ihER7+89ZDmc6m6/96Gj/8mDwWnl3FAoRdCOtdZ8P86wq9oOa
 kcrbz5l1XF922MmYaPMtappLXfsYlwN3SsE9cuGQ3P7+IzSVd/l9ms8W/LVui6BeH+l0
 GgMA==
X-Received: by 10.25.169.212 with SMTP id s203mr6723036lfe.134.1448131304252; 
 Sat, 21 Nov 2015 10:41:44 -0800 (PST)
Received: from leviafan ([217.107.192.146])
 by smtp.gmail.com with ESMTPSA id 42sm723778lfv.29.2015.11.21.10.41.43
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 21 Nov 2015 10:41:43 -0800 (PST)
From: Alex Kost <alezost@gmail.com>
To: ludo@gnu.org (Ludovic Courtès)
Subject: Re: bug#20255: 'search-paths' should respect both user and system
 profile.
References: <877ftschjt.fsf@gmail.com> <87fv8fip01.fsf@gnu.org>
 <87d23j1bxk.fsf@gmail.com> <871tjyfnl8.fsf@gnu.org>
 <876199q4z1.fsf@gmail.com> <87ioca4ojo.fsf@gnu.org>
 <87lh9tvcws.fsf@gnu.org> <87h9kguwc4.fsf@gmail.com>
 <87ziy7d90z.fsf@gnu.org>
Date: Sat, 21 Nov 2015 21:41:45 +0300
In-Reply-To: <87ziy7d90z.fsf@gnu.org> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Sat, 21 Nov 2015 09:57:48 +0100")
Message-ID: <874mgfkxee.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 20255
Cc: 20255@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)
Ludovic Courtès (2015-11-21 11:57 +0300) wrote:

> Alex Kost <alezost@gmail.com> skribis:
>
>> Ludovic Courtès (2015-11-20 01:32 +0300) wrote:
>>
>>> -# Load the system profile's settings.
>>> +if [ -x /run/current-system/profile/bin/guix ]
>>> +then
>>> +  # Crucial variables such as 'MANPATH' or 'INFOPATH' may be missing from the
>>> +  # profiles' individual 'etc/profile'.  Thus, combine both profiles when
>>> +  # computing the search paths.
>>> +  #
>>> +  # This may take a few hundred milliseconds, but it's OK because this is
>>> +  # performed for log-in shells only.
>>> +  eval `/run/current-system/profile/bin/guix package \\
>>> +          -p /run/current-system/profile             \\
>>> +          -p \"$HOME/.guix-profile\" --search-paths`
>>
>> Sorry, but it's not OK for me.  As a user, I'm *strongly* against
>> running 'guix' (or any other program) in /etc/profile.
>
> Why?  (Honest question.)

At first, because of the slowdown: it may be a few hundred milliseconds
for you, but it's several seconds for me.  But actually, even if it was
several milliseconds, I still wouldn't like it, as (IMHO) /etc/profile
should only set variables, and not run external programs.

>> I would really like to have an option to avoid this.  Is it possible?
>
> Not that I know of.  Please read <http://bugs.gnu.org/20255>.

What about making some environment variable which will be honored by
'operating-system-etc-service' procedure.  So depending on this variable
that 'eval ...' command will or will not be added to "/etc/profile"
during 'guix system ...' process.

For example, when I do:

  GUIX_IGNORE_SYSTEM_PROFILE_ENV=1 guix system build my-config.scm

the "etc/profile" of the built system will not contain those 'eval ...'
lines.  WDYT?

-- 
Alex




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Sep 7 12:54:15 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.