From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#25422: GIT_SSL_CAINFO set incorrectly Date: Fri, 10 Feb 2017 21:51:57 +0100 Message-ID: <87fujl7or6.fsf@gnu.org> References: <20170111203631.GA30202@jasmine> <20170120052747.5759c31b@gmail.com> <87lgu1x4in.fsf@gnu.org> <20170210172201.017a2cf4@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]:32918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccIBl-00087Z-4S for bug-guix@gnu.org; Fri, 10 Feb 2017 15:53:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccIBi-0005ms-2W for bug-guix@gnu.org; Fri, 10 Feb 2017 15:53:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:36840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ccIBh-0005mo-Vq for bug-guix@gnu.org; Fri, 10 Feb 2017 15:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ccIBh-0005RJ-Ol for bug-guix@gnu.org; Fri, 10 Feb 2017 15:53:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170210172201.017a2cf4@gmail.com> (Mekeor Melire's message of "Fri, 10 Feb 2017 17:22:01 +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" To: Mekeor Melire Cc: 25422@debbugs.gnu.org Mekeor Melire skribis: >> > Adding an option to `search-path-specification' seems like a good idea. >> > Still, I wonder what this snippet from (gnu system) does: >> > >> > (define (operating-system-environment-variables os) >> > "Return the environment variables of OS for >> > @var{session-environment-service-type}, to be used in @file{/etc/e= nvironment}." >> > `(("LANG" . ,(operating-system-locale os)) >> > ("TZ" . ,(operating-system-timezone os)) >> > ("TZDIR" . ,(file-append tzdata "/share/zoneinfo")) >> > ;; Tell 'modprobe' & co. where to look for modules. >> > ("LINUX_MODULE_DIRECTORY" . "/run/booted-system/kernel/lib/mod= ules") >> > ;; These variables are honored by OpenSSL (libssl) and Git. >> > ("SSL_CERT_DIR" . "/etc/ssl/certs") >> > ("SSL_CERT_FILE" . "/etc/ssl/certs/ca-certificates.crt") >> > ("GIT_SSL_CAINFO" . "/etc/ssl/certs/ca-certificates.crt")=20=20 >>=20 >> It defines the content of /etc/environment. > > Is there any reason why GIT_SSL_CAINFO has to be set without Git being in= stalled? > > I mean, I think the variable just shouldn't be set in /etc/environment by= default. It should be set as soon as Git is installed, IMHO. You are right in principle. This variable was added in 78ab0746a5, and I think the justification was convenience and to have things that work out of the box: https://lists.gnu.org/archive/html/guix-devel/2015-03/msg00128.html That=E2=80=99s also an important property. :-) Ludo=E2=80=99.