From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#20255: 'search-paths' should respect both user and system profile. Date: Sat, 21 Nov 2015 01:42:19 +0300 Message-ID: <87h9kguwc4.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzuOY-0000p1-I9 for bug-guix@gnu.org; Fri, 20 Nov 2015 17:43:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzuOU-0006D4-Ev for bug-guix@gnu.org; Fri, 20 Nov 2015 17:43:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzuOU-0006Cx-CC for bug-guix@gnu.org; Fri, 20 Nov 2015 17:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZzuOU-0006zN-61 for bug-guix@gnu.org; Fri, 20 Nov 2015 17:43:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87lh9tvcws.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 19 Nov 2015 23:32:03 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 20255@debbugs.gnu.org Ludovic Court=C3=A8s (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 fro= m 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. I would really like to have an option to avoid this. Is it possible? --=20 Thanks, Alex