From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#37371: =?UTF-8?Q?CMake=E2=80=99s_?= =?UTF-8?Q?=E2=80=9Cctest=E2=80=9D_?= =?UTF-8?Q?doesn=E2=80=99t?= know about X.509 certificates Date: Tue, 10 Sep 2019 18:35:03 +0200 Message-ID: <877e6gqfd4.fsf@elephly.net> References: <87tv9k17so.fsf@inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52877) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7j7b-0004CL-AV for bug-guix@gnu.org; Tue, 10 Sep 2019 12:36:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7j7a-0001qE-Ao for bug-guix@gnu.org; Tue, 10 Sep 2019 12:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32837) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7j7Z-0001q8-W3 for bug-guix@gnu.org; Tue, 10 Sep 2019 12:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i7j7Z-0002Yk-Sx for bug-guix@gnu.org; Tue, 10 Sep 2019 12:36:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87tv9k17so.fsf@inria.fr> 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: 37371@debbugs.gnu.org Ludovic Court=C3=A8s writes: > The =E2=80=98ctest=E2=80=99 command uses libcurl to submit reports to CDa= sh servers. > However, it does not =E2=80=9Cgetenv=E2=80=9D anything related to CA cert= s, and it does > not either look at /etc/ssl/certs. [=E2=80=A6] > > For now I propose to provide a patched =E2=80=98cmake=E2=80=99 package th= at does the > right thing. This is the correct way, in my opinion. The user of libcurl is supposed to handle environment variable lookup. > On #guix, Tobias also rightfully suggested adding a =E2=80=98getenv=E2=80= =99 call > directly in libcurl, which may be the better long-term solution (though > it=E2=80=99s unclear whether that could interfere with application logic.) This idea has been around for a pretty long time. I don=E2=80=99t really l= ike it, but it would solve so many problems where users of libcurl don=E2=80=99= t do env var lookups and fall back to the default, which is not guaranteed to exist when using Guix on foreign distros or even on Guix System. -- Ricardo