From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20255: 'search-paths' should respect both user and system profile. Date: Sat, 21 Nov 2015 09:57:48 +0100 Message-ID: <87ziy7d90z.fsf@gnu.org> 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> 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]:48990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a040g-0002MT-2e for bug-guix@gnu.org; Sat, 21 Nov 2015 03:59:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a040c-000244-Rm for bug-guix@gnu.org; Sat, 21 Nov 2015 03:59:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a040c-000240-OE for bug-guix@gnu.org; Sat, 21 Nov 2015 03:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a040c-0004rx-FR for bug-guix@gnu.org; Sat, 21 Nov 2015 03:59:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87h9kguwc4.fsf@gmail.com> (Alex Kost's message of "Sat, 21 Nov 2015 01:42:19 +0300") 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: Alex Kost Cc: 20255@debbugs.gnu.org Alex Kost skribis: > 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 fr= om the >> + # profiles' individual 'etc/profile'. Thus, combine both profiles wh= en >> + # 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.) > I would really like to have an option to avoid this. Is it possible? Not that I know of. Please read . Ludo=E2=80=99.