From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2iXE-0006zp-Fv for guix-patches@gnu.org; Wed, 19 Sep 2018 15:53:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2iX9-0001CW-O9 for guix-patches@gnu.org; Wed, 19 Sep 2018 15:53:12 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g2iX0-00016A-8q for guix-patches@gnu.org; Wed, 19 Sep 2018 15:53:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g2iX0-0005yc-1E for guix-patches@gnu.org; Wed, 19 Sep 2018 15:53:02 -0400 Subject: [bug#32530] [PATCH] gnu: octave: Fix CA certificate use. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20180826004231.19350-1-kkebreau@posteo.net> <87o9czqhpo.fsf@fastmail.com> <87r2huzk8c.fsf@posteo.net> <87va74krsy.fsf@posteo.net> <875zz4oxil.fsf@fastmail.com> Date: Wed, 19 Sep 2018 21:52:32 +0200 In-Reply-To: <875zz4oxil.fsf@fastmail.com> (Marius Bakke's message of "Mon, 17 Sep 2018 19:16:02 +0200") Message-ID: <87k1nhfenz.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Marius Bakke Cc: Kei Kebreau , 32530@debbugs.gnu.org Hello, Marius Bakke skribis: > Kei Kebreau writes: [...] >> Here's the search path patch. With this, I needed both nss-certs and >> cURL installed alongside Octave to get certificates working. This is expected (see ), which is why I wrote it wouldn=E2=80=99t quite solve the issue; still, it=E2=80=99s = a step in the right direction. :-) >> diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm >> index 6d45dc0cc..8bdba8655 100644 >> --- a/gnu/packages/curl.scm >> +++ b/gnu/packages/curl.scm >> @@ -83,7 +83,10 @@ >> (variable "CURL_CA_BUNDLE") >> (file-type 'regular) >> (separator #f) ;single entry >> - (files '("etc/ssl/certs/ca-certificates.crt"))))) >> + (files '("etc/ssl/certs/ca-certificates.crt"))) >> + (search-path-specification >> + (variable "CURLOPT_CAPATH") >> + (files '("etc/ssl/certs"))))) > > Adding this native-search-path to the "octave" package should be > sufficient. I think we should avoid doing this though, because conceptually CURLOPT_CAPATH =E2=80=9Cbelongs=E2=80=9D to cURL, not to Octave. > Then you won't need curl in the profile, nor do we need to rebuild all > the things that depend on curl. Can you try that? The patch above can go to the next =E2=80=98core-updates=E2=80=99 IMO. Kei, what about the two other options we discussed? Namely: > 2. On GuixSD, we could define CURLOPT_CAPATH=3D/etc/ssl/certs in > /etc/profile, like we already do for other variables. >=20 > 3. We could document this variable under =E2=80=9CX.509 Certificates=E2= =80=9D in the > manual. Thank you! Ludo=E2=80=99.