From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ACEVBq8IiWDxGAAAgWs5BA (envelope-from ) for ; Wed, 28 Apr 2021 09:03:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eA2wAa8IiWAsRAAA1q6Kng (envelope-from ) for ; Wed, 28 Apr 2021 07:03:11 +0000 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 69E1A228F1 for ; Wed, 28 Apr 2021 09:03:10 +0200 (CEST) Received: from localhost ([::1]:50444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbeE1-0001ZJ-7F for larch@yhetil.org; Wed, 28 Apr 2021 03:03:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbeDu-0001Yx-Ca for guix-patches@gnu.org; Wed, 28 Apr 2021 03:03:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbeDu-0005S4-5V for guix-patches@gnu.org; Wed, 28 Apr 2021 03:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbeDu-0006Fs-39 for guix-patches@gnu.org; Wed, 28 Apr 2021 03:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47336] Disarchive as a fallback for downloads Resent-From: Timothy Sample Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 28 Apr 2021 07:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47336 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: control@debbugs.gnu.org, 47336@debbugs.gnu.org Received: via spool by 47336-submit@debbugs.gnu.org id=B47336.161959332523960 (code B ref 47336); Wed, 28 Apr 2021 07:03:02 +0000 Received: (at 47336) by debbugs.gnu.org; 28 Apr 2021 07:02:05 +0000 Received: from localhost ([127.0.0.1]:51583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbeCz-0006EO-4R for submit@debbugs.gnu.org; Wed, 28 Apr 2021 03:02:05 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:55273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbeCw-0006Dp-3A; Wed, 28 Apr 2021 03:02:03 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B99DC5C00BD; Wed, 28 Apr 2021 03:01:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 28 Apr 2021 03:01:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=73wGy0hp+Ms9wxJ0OS/8kZyUHxq2hBRI86EwfbO2J r0=; b=HElWpid1QUvLXjr5widnlf9WrYsJxxlpXpeyv320R5gGrr+hO2jwvJzQH YJCUsKt1tmiwdnjHRyr3c6TuW2p2Zd8fiQLeu35Dvz+nHfF3sztWCrY/Rp8tIM1W 0rH46o8C0+da6KXnID89d2pV3ptgSam4Yrvmk2dZ92xX7Dd+5d7UOL2Aq9Y8X+Y8 31xIqXrPR/IH6qUCC84azZuzUYQowvveYzB8f5TqlmeiX2RoSNiQTBhnXF9dkA2W wlaMyu24IJk5St/pcyY2XXpnvLCP6FoIqz8KLAOuuLw8y4vIeZoTEpn9HVRZw8OX 2d9E1YhUbj9u/TSaq6IzDs7dK0g8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvuddguddufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufhffjgfkfgggtgfgsehtqhertddtreejnecuhfhrohhmpefvihhm ohhthhihucfurghmphhlvgcuoehsrghmphhlvghtsehnghihrhhordgtohhmqeenucggtf frrghtthgvrhhnpeeiudeuhfeggeelleevheegudfguefhieekffdtveeilefglefhvddt gfeiheetgfenucfkphepjeegrdduudeirddukeeirdeggeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmphhlvghtsehnghihrhhordgt ohhm X-ME-Proxy: Received: from mrblack (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Apr 2021 03:01:56 -0400 (EDT) From: Timothy Sample References: <87eeg6o50b.fsf@ngyro.com> <20210323045213.9419-1-samplet@ngyro.com> <87a6qo2835.fsf_-_@gnu.org> <87v989e5oc.fsf_-_@gnu.org> <87o8dzkunk.fsf_-_@ngyro.com> Date: Wed, 28 Apr 2021 03:01:55 -0400 In-Reply-To: <87o8dzkunk.fsf_-_@ngyro.com> (Timothy Sample's message of "Tue, 27 Apr 2021 22:30:39 -0400") Message-ID: <87h7jqlwnw.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619593390; 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=73wGy0hp+Ms9wxJ0OS/8kZyUHxq2hBRI86EwfbO2Jr0=; b=JlWFUVaTsUHV6QjJd8h45o63SMwO+M/KTxTc4DZwzPckjm84XR6VG5KbEHkUILP8Qg0Lco 0QpXF6aoMJWyews1rFKRHxpQnekmCoL9gUbgCaar9F551AGRj06YEzpDaC703RjLwweY3u +POqCfP7cEFvD5OS+yw27l7995VjrDbnvAX1Kgbec30YFVsPY8mGHRCwiLfcGBVEktzy+x Wa8iCHU04akwvZcl+3MdQHBKitEg12WE2sDZ4Zr02UGqQAwP5MN9RcQyQygon7N4WrLmW+ mbmrHhlD2W27g3PQBX3it9eQQUNuDg3Mv5SUoC/kJnOkK+MoaFTpVyandk4CHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619593390; a=rsa-sha256; cv=none; b=oWvGO/gYpMEuBM6K/lHiKcG/Ys2gadOZQ3TO4jp/7UhYqCVbAiOTL9xPW9sjFLSGMjqBHX cXSqfHSWRjbMEUbCSzG1P+EgoLUStMVrB5WVU0VPZcrn/eyJ5xZkb+ruyPcc2vsnVrkCLc IoUWBnGisSs6LrcE4eyJbdlUzDyQV20RLE+dXdJTYuuJnHitYob61oggZEMbVsJTj7W3og CJ4vU2zVqxHrC+WaqsKarhFf7GHuEOtpemg6wovJM0MI4RzoVEq5qJFMfKAUXirLj4TEjR CL40znU5OZMtenLS7isCOReeGaOPKwADa4YWEzaj9MiZxYiNjZeA5qh7iwZyaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=HElWpid1; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=HElWpid1; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 69E1A228F1 X-Spam-Score: -1.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: UrUZxe5pH5cK reopen 47336 thanks Hi again, Timothy Sample writes: > I just pushed this series [...] And broke =E2=80=9Cguix pull=E2=80=9D!! (I somehow fooled myself into thin= king that I had already tested with =E2=80=9Cguix pull --url=3D...=E2=80=9D locally.) = I reverted the offending commit. It turns out that adding a reference from =E2=80=9C(guix build download)=E2= =80=9D to =E2=80=9C(guix swh)=E2=80=9D breaks =E2=80=9Ccompute-guix-derivation=E2=80= =9D in =E2=80=9Cbuild-aux/build-self.scm=E2=80=9D. This is because =E2=80=9C(guix= swh)=E2=80=9D references =E2=80=9C(json)=E2=80=9D, which is not available in the =E2=80=9Ccompute-gu= ix-derivation=E2=80=9D environment. I tried mimicking the =E2=80=9Cfake-git=E2=80=9D trick, but i= t didn=E2=80=99t work (I guess it needs the =E2=80=9Cdefine-json-mapping=E2=80=9D macro at compil= e time). Everything works if I remove the #:autoload for =E2=80=9C(guix swh)=E2=80= =9D and put ;; If we import (guix swh) directly, we introduce a compile-time ;; dependency on Guile-JSON. This breaks the "build-self" code, which ;; needs to build this module without Guile-JSON. Hence, we track ;; down the following procedure at runtime. (define swh-download-directory (module-ref (resolve-module '(guix swh)) 'swh-download-directory)) inside of =E2=80=9Cdisarchive-fetch/any=E2=80=9D (just before it=E2=80=99s = needed). Does this approach look okay? -- Tim