From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 14:20:42 2020 Received: (at 42286) by debbugs.gnu.org; 9 Jul 2020 18:20:42 +0000 Received: from localhost ([127.0.0.1]:41667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtbA2-0002Ud-57 for submit@debbugs.gnu.org; Thu, 09 Jul 2020 14:20:42 -0400 Received: from mail-qv1-f43.google.com ([209.85.219.43]:36020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtbA0-0002UQ-13 for 42286@debbugs.gnu.org; Thu, 09 Jul 2020 14:20:40 -0400 Received: by mail-qv1-f43.google.com with SMTP id h18so1397068qvl.3 for <42286@debbugs.gnu.org>; Thu, 09 Jul 2020 11:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ExIRKTUhENiyLuwr3kogbED/VlsbwTFGZRjH6xPQtLw=; b=rDkV08f+wLIG63tNkCPpBYZntU0FmVGR/dBtI2G3RwAc7c0G7HDTKs4rra/D2ypKtb 0Wfs8gLP/PARvL+rznbtKB6ODRkUNLchVcIVc/hMoQJm2t3+BD5MjfAYajgDyY+qctML tzdu4JRqqeGgr1GruXZ1HwOdGqzzzXWEj+zKkPcu/4XYlXRnpenqiQAUJCWQtMphevJg Bo+ivi9BfDWyhL7lXn8FwxkxpumH3KPK+RSLg+6RTsnWWHAWhmHzEXfGoTzIPCWRYPHc v6JdPMwjttQgN6UD+WCRFCY5J6FenNwQ9Z6zyMMBbU0SoFUJ4x6droeEHilmKulYwi70 55jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ExIRKTUhENiyLuwr3kogbED/VlsbwTFGZRjH6xPQtLw=; b=Mg5EGSSnORAE2NP2GOMturpgDq9wCz+A5OF8yvcxDoLQyxmtSW44ojX/UetW4Ervea SuOCUcAS50ayzkPayX7EpzU8gxNygma5DT7EIACByGgCT3C4Wrx/OGbqFqd7MLA5lCXI 6Y8XFJV0HgyvFFna8rtatvPTu1/GLByKYPADYCzfUad/HKxbmycwIHxVaLtxf5jKsiA7 ZO5qJrj5WD/yQ6HJGx7qbzuLPCicIhasAnOpM3uM6YzLmZsu7qOdtSlPIV6TBArYhktA y2GKcC+LeU3JMbxgMxcY4Oj1FY7Y3oPbfyIJiUjPJMoSJMESzO9w7EWcihQnU44WukS6 Yb6g== X-Gm-Message-State: AOAM530iGJ25xgZV+1e+hrkNZSe9hmoBNPrtuex7Ma12wUq03wUIlxJK J7uuYPR9KuruvQ9T+ygJboUxK6QboaErgonAFoIx4L+1dRQ= X-Google-Smtp-Source: ABdhPJxYflHpk3RMyTH8MRm9VJ003na9+rZeOL/cU0zJKmBt8X7D+tig8f3X/e6Le7jY8N8usTxNnGCV7seeTp6anSE= X-Received: by 2002:a05:6214:5a3:: with SMTP id by3mr63784784qvb.201.1594318834090; Thu, 09 Jul 2020 11:20:34 -0700 (PDT) MIME-Version: 1.0 References: <86imexcymw.fsf@gmail.com> In-Reply-To: <86imexcymw.fsf@gmail.com> From: zimoun Date: Thu, 9 Jul 2020 20:20:23 +0200 Message-ID: Subject: Re: bug#42286: SWH fallback fails (git-fetch) To: 42286@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 42286 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On Thu, 9 Jul 2020 at 02:39, zimoun wrote: Well, "swh-download" perfectly works directly from the REPL. > --8<---------------cut here---------------start------------->8--- > guix build -L . hi [...] > Trying to download from Software Heritage... > Backtrace: > 4 (primitive-load "/gnu/store/s56y8npabah6jc1bqrhsac6wqb1?") > In ./guix/swh.scm: > 573:13 3 (swh-download "https://github.com/zimoun/hello-example?" ?) > 224:22 2 (call "https://archive.softwareheritage.org/api/1/revi?" ?) > In web/client.scm: > 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) > 231:6 0 (tls-wrap # _ # _) > > web/client.scm:231:6: In procedure tls-wrap: > --8<---------------cut here---------------end--------------->8--- The error is definitively something related to TLS and the gexp. In (guix git-download) "git-fetch", the "define build" returns a gexp and here something is missing, even if the extension gnutls (module-ref (resolve-interface '(gnu packages tls)) 'gnutls) is provided. Hum, I am not sure to understand what. BTW, if in "git-fetch" from (guix git), I add these lines: --8<---------------cut here---------------start------------->8--- (setenv "GIT_SSL_NO_VERIFY" "true") (format #t "git-fetch~%") (http-get "https://archive.softwareheritage.org/api/1/content/sha256:31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b/") (format #t "ok~%") (mkdir-p directory) --8<---------------cut here---------------end--------------->8--- Then I also hit: --8<---------------cut here---------------start------------->8--- The following derivations will be built: /gnu/store/wam9fca6vj3rifvqlix9c874vpwn5k82-hi-2.10.drv /gnu/store/cvp65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv building /gnu/store/cvp65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv... guile: warning: failed to install locale environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc5wa3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/bin' git-fetch Backtrace: 4 (primitive-load "/gnu/store/gcr6v6p6c5gwr4l6xzqcy6wln33?") In ice-9/eval.scm: 293:34 3 (_ #) In ./guix/build/git.scm: 44:2 2 (git-fetch "https://github.com/zimoun/hello-example.git" ?) In web/client.scm: 563:0 1 (http-get "https://archive.softwareheritage.org/api/1/?" ?) 231:6 0 (tls-wrap # _ # _) web/client.scm:231:6: In procedure tls-wrap: Error while printing exception. builder for `/gnu/store/cvp65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv' failed with exit code 1 build of /gnu/store/cvp65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv failed View build log at '/var/log/guix/drvs/cv/p65m4wzmzd8pqdfvah4mrl4zkcw3vz-git-checkout.drv.bz2'. cannot build derivation `/gnu/store/wam9fca6vj3rifvqlix9c874vpwn5k82-hi-2.10.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/wam9fca6vj3rifvqlix9c874vpwn5k82-hi-2.10.drv' failed --8<---------------cut here---------------end--------------->8--- Then I have tried to turn off the certificate verification with "#:verify-certification #f" for example in "vault-fetch" or "call" used by "define-query" but nothing works. Well, I am a bit circumspect. Therefore, I am waiting for a hint or the fix. :-) Cheers, simon