From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Read /etc/environment first to allow changing environment from user profile Date: Wed, 27 Jul 2016 23:11:41 +0200 Message-ID: <87invqwzua.fsf@gnu.org> References: <7t60rrmf9j.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]:38635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSW7L-0007P7-0Q for guix-devel@gnu.org; Wed, 27 Jul 2016 17:11:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSW7F-0004l6-TB for guix-devel@gnu.org; Wed, 27 Jul 2016 17:11:50 -0400 In-Reply-To: <7t60rrmf9j.fsf@gmail.com> ("Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama"'s message of "Wed, 27 Jul 2016 14:34:00 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama Cc: guix-devel@gnu.org Hi, csanchezdll@gmail.com (Carlos S=C3=A1nchez de La Lama) skribis: > as reported in bug #22175, lshd does not honor /etc/environment. This > was fixed here: > > http://git.savannah.gnu.org/cgit/guix.git/commit/gnu/system.scm?id=3D2a5f= 0db4c45679cac6a747a48993fe73982cadca > > However, the order in /etc/profile is problematic: some variables are > set up by "$HOME/.guix-profile/etc/profile", but then they get (wrongly) > overriden by the values in /etc/environment. In my case, this happens > with SSL_CERT_DIR, which has the value > > /home/csanchez/.guix-profile/etc/ssl/certs:/etc/ssl/certs > > then logging in locally, but only > > /etc/ssl/certs > > when logging in from lshd. Indeed, good catch! > I attach the proposed patch (just a change of order in /etc/profile). As > 'cat' and 'cut' ar most surely available at system-level, it should not > be dangerous to use them before setting up the user profile. Yes. Tobias: if you want to avoid the =E2=80=98cut=E2=80=99 invocation, feel fre= e to send another patch. :-) > From 474e8980ee933e6694cc55ca61607adae86dacf1 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Carlos=3D20S=3DC3=3DA1nchez=3D20de=3D20La=3D20Lama?=3D > > Date: Wed, 27 Jul 2016 14:27:00 +0200 > Subject: [PATCH] Read /etc/environment first to allow changing environment > from user profile. > I tested in =E2=80=98guix system vm=E2=80=99 and it seems to work as expect= ed. Pushed as cad7e6abafc14de220265e09a0fc4bbd96664599 with a commit log that follows our conventions. Thank you! Ludo=E2=80=99.