From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MMGCBJ0F2WPpYgEAbAwnHQ (envelope-from ) for ; Tue, 31 Jan 2023 13:12:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mJVBBJ0F2WPYYAAAauVa8A (envelope-from ) for ; Tue, 31 Jan 2023 13:12:13 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 88B38174E0 for ; Tue, 31 Jan 2023 13:12:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMowj-0000HQ-AG; Tue, 31 Jan 2023 06:37:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMowg-0000Fn-VM for bug-guix@gnu.org; Tue, 31 Jan 2023 06:37:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMowg-000700-Nk for bug-guix@gnu.org; Tue, 31 Jan 2023 06:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMowg-0005KJ-J6 for bug-guix@gnu.org; Tue, 31 Jan 2023 06:37:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#61121: Cannot import IJulia in Julia Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 31 Jan 2023 11:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61121 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Theodore Ehrenborg Cc: 61121@debbugs.gnu.org, Efraim Flashner Received: via spool by 61121-submit@debbugs.gnu.org id=B61121.167516501220440 (code B ref 61121); Tue, 31 Jan 2023 11:37:02 +0000 Received: (at 61121) by debbugs.gnu.org; 31 Jan 2023 11:36:52 +0000 Received: from localhost ([127.0.0.1]:51735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMowW-0005Jc-9R for submit@debbugs.gnu.org; Tue, 31 Jan 2023 06:36:52 -0500 Received: from mail-wr1-f49.google.com ([209.85.221.49]:34654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMow7-0005Ia-C4 for 61121@debbugs.gnu.org; Tue, 31 Jan 2023 06:36:27 -0500 Received: by mail-wr1-f49.google.com with SMTP id t18so13934956wro.1 for <61121@debbugs.gnu.org>; Tue, 31 Jan 2023 03:36:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=73nE1OGN3cX8ujLhtyZhE/AevLnmpiTTMXVsEBTy/BM=; b=loL4I57hbHysPnlGByzpeZhkjZh6/g3eFo9XBwh0NFahtgySQ5gznZIie7sKhSjYx5 Cl11FZsYwKz56jgSG4oB3iZ1lprDMwzvqjUSZ5B3RfBFn+3vZdvcWWhlPiCi29NYODFI Kwo+j4aL4wA0wuqFbXv6ou5B8ZoFC2kAwau374xJ6EoWuXXyH0DmnHXwliTi7VMefDTx 0xqiqJTJSuocOQMOaFy0BtWSdxj0Wtd4e71qaRgJDhC2gQaQ4L3KqhyYUCBDBUiRcDCt ItkYCCJZjEkJ1Z+LWQ0PC9uv+W0nM/tmArEtF0wtKcwuD5LI5P0jpLzqzLIKMD9CrDWP aWEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=73nE1OGN3cX8ujLhtyZhE/AevLnmpiTTMXVsEBTy/BM=; b=VLg7LMoq3hpn/Q0ZKM6fpnBGYjFEY+cGXbXivVDB450YBnqLVfNt0wQjjtuUNnsxpW XmxnpnLMVC25nbo35tRB9zLGuU/9qJ4UuloHaTgiqDFPvOWfMMeTl/dFo/FAPj1LmJu0 P+OxlcUg9JLh/isgawRFR+s+PoDMVbD0j30S+A9EboJH84PQ98s3vjMoYCxHABG2DBou zP0f3dkpROiFQbX6KOmFPT/1zxYoGzJE/RHvgRvFVB+R2yptOQtu9bh75ORanaaO2mt2 jUwZyuEM7ExhsQpdMn+uHyGWTnEZ+K/WWKHjz0ugfU0KneDEssSL1isrJbBgzFfdhxzb MH5g== X-Gm-Message-State: AO0yUKXICZTxxr2dwH8ZpspOfSWQXtUTzRrZ0cYmiZC69HQMD/psmGZU /c33BmGRctwgfqpsZ+l8plSA23exgTI= X-Google-Smtp-Source: AK7set/ZENXQwy5nYEN+BfYBNNU9N1cF3HF8788B9mJdZKd07i46nv0L8z9r8Dyjsql+K7bnc8N8AA== X-Received: by 2002:adf:e609:0:b0:2bf:d7bc:cd15 with SMTP id p9-20020adfe609000000b002bfd7bccd15mr2223524wrm.4.1675164981892; Tue, 31 Jan 2023 03:36:21 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id b14-20020a05600010ce00b0029e1aa67fd2sm14591650wrx.115.2023.01.31.03.36.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 03:36:21 -0800 (PST) From: Simon Tournier In-Reply-To: References: <87bkmgky0p.fsf@gmail.com> Date: Tue, 31 Jan 2023 12:34:16 +0100 Message-ID: <86o7qfuedj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675167132; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=73nE1OGN3cX8ujLhtyZhE/AevLnmpiTTMXVsEBTy/BM=; b=SA3ZL4YPMel4ARMDukTF5szjI7ofHI/LgRXdGo5g+eq7lmxOhXw6ApheEIpSuAS+y1L/PQ zghZNJEJF7w5GtLniKZpeeSGw4cZJSdtjTI5BmkIPh6iSWm5tFbHLHWr8kQwrT+EaNdkui aA9dlmuveZ3CjciTVJHNQPVH7lx6kn6pwjRXwpCBngL33WOz2AOxAaqo48/V64LfnqT4QI DuanQzCqVFC4dc37f34EceFwos6BW2KjM7xJ88pDsOwdv4QlPR0IWXMR+/qibNxfSTS5s+ k0izI37ICi442dB3x8tnil9hXWSGe2dP40+xJxMrmoIb3nPfvyPE4V9WN1/y/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=loL4I57h; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675167132; a=rsa-sha256; cv=none; b=jP0tS843t4Tdb04EpUEMFD19fNS4Cvy5Wja6sVVS8Ez6VXCL1JpQnQfchP5BOJSKn9ZNSy s/Mi2HK18Elv2ym28oRXvOiedcG51nkbbLXZ3toTPDod4ljh/kIjVZPwq6CCt9Vt71ZAPO xP4zDGoYupFGKnSsQY9y13RQ/LiYSY5SubYOp7QPV6d9uL+JHIB/JGzKQY5bYORYvOND91 B8aecTycPwa3d0Miy2royQ85sGfW+rpmkGzafM90rmnZkRzTnQHGN89Jqu9mAT964q5yur zwID21ibnk+5Qu4DT6fTjobgdS3mSXxuCjFV8P+uj6uWTkqDrM+fq0DQY5ROBA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=loL4I57h; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Scanner: scn0.migadu.com X-Spam-Score: -2.08 X-Migadu-Queue-Id: 88B38174E0 X-Migadu-Spam-Score: -2.08 X-TUID: TikTg88/5OWF Hi, On Mon, 30 Jan 2023 at 21:55, Theodore Ehrenborg wrote: > Gentoo appears to have fixed this bug by linking julia/cert.pem to the > system's ca-certificates.crt. > https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3D26b59330b5222996de= fa4536237e62404bf21168 This trick is not possible, IIUC. > Is there a way I could rebuild my own slightly modified Julia with a link > like that? Maybe, by adding the package nss-certs as propagated-inputs in the definition of julia. > I understand that there's probably a good reason that Guix's Julia doesn't > by default have cert.pem, but I would be pleased with a hacky custom > solution if it made Jupyter notebooks work. The reason is security. ;-) It=E2=80=99s Julia that does poorly here. As pointed with the upstream package MbedTLS.jl, the fix should come from Julia itself; therefore, it could be worth to open an issue, if it is not already the case. ;-) >From my understanding, the culprit is this [1]: --8<---------------cut here---------------start------------->8--- function __init__() global artifact_dir =3D dirname(Sys.BINDIR) global cacert =3D normpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "cert= .pem") end --8<---------------cut here---------------end--------------->8--- And it is not clear for me if NetworkOptions.jl [2] provides the option of not, and I am missing why Julia itself does not depend on it. 1: https://github.com/JuliaLang/julia/blob/master/stdlib/MozillaCACerts_jll= /src/MozillaCACerts_jll.jl#L20 2: https://github.com/JuliaLang/NetworkOptions.jl Efraim, do you think it would be possible to patch Julia to point to some certificates via bundled_ca_roots or ca_roots_path? Well, somehow turn back these tests: --8<---------------cut here---------------start------------->8--- ;; julia embeds a certificate, we are not doing that (substitute* "stdlib/MozillaCACerts_jll/test/runtests.jl" (("@test isfile\\(MozillaCACerts_jll.cacert\\)") "@test_broken isfile(MozillaCACerts_jll.cacert)")) ;; since certificate is not present some tests are failing in = network option (substitute* "usr/share/julia/stdlib/v1.8/NetworkOptions/test/= runtests.jl" (("@test isfile\\(bundled_ca_roots\\(\\)\\)") "@test_broken isfile(bundled_ca_roots())") (("@test ispath\\(ca_roots_path\\(\\)\\)") "@test_broken ispath(ca_roots_path())") (("@test ca_roots_path\\(\\) \\!=3D bundled_ca_roots\\(\\)") "@test_broken ca_roots_path() !=3D bundled_ca_roots()")) --8<---------------cut here---------------end--------------->8--- Cheers, simon