From unknown Sat Jun 21 05:18:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#70339 <70339@debbugs.gnu.org> To: bug#70339 <70339@debbugs.gnu.org> Subject: Status: Constructing hg-fetch fixed-output derivation requires Mercurial Reply-To: bug#70339 <70339@debbugs.gnu.org> Date: Sat, 21 Jun 2025 12:18:11 +0000 retitle 70339 Constructing hg-fetch fixed-output derivation requires Mercur= ial reassign 70339 guix submitter 70339 Simon Tournier severity 70339 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 11 09:16:58 2024 Received: (at submit) by debbugs.gnu.org; 11 Apr 2024 13:16:58 +0000 Received: from localhost ([127.0.0.1]:55279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruuIT-0000jm-Jp for submit@debbugs.gnu.org; Thu, 11 Apr 2024 09:16:57 -0400 Received: from lists.gnu.org ([2001:470:142::17]:59032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruuIS-0000jL-Dj for submit@debbugs.gnu.org; Thu, 11 Apr 2024 09:16:56 -0400 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 1ruuID-000875-LT for bug-guix@gnu.org; Thu, 11 Apr 2024 09:16:41 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ruuIA-0004IM-Uy for bug-guix@gnu.org; Thu, 11 Apr 2024 09:16:40 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-346407b8c9aso1110945f8f.0 for ; Thu, 11 Apr 2024 06:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712841396; x=1713446196; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Pg+K4W8Pv9e73ru5/P3OYTQW59GzJO7Pz03l2DC+pfk=; b=Fq8CfAWLhr/flPEdLU64eG/fNICnJOtgkI+wbql+BD4ZucV/IIc8E5k3Q85x8P3TjV NT6wyJKH6gs0GSB0t8zM8H2XDIfmpEpL/u7yzEMg8XbtDFCifDAoX+LHe8gAWmnka9c1 2mDu7EJuxIuSvtBhZR5AJkOODfR16ATK+yAOfJ6PsFS6NIdFb5+8wd/9pp4hnbn18sQE 9R+YyPjH+fnZ1vnaThXSgmCZP8T7YsedA9X/q1AYGXUgC88AuxoPGHpkGL8lzoyYsmSu wsrxXnJ3kjDhQDbR/K7lRPQ/5qejvXVeV2dJ6zSLTONhVIpRXj2erSqPOYB0xg8VvTjJ ojNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712841396; x=1713446196; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Pg+K4W8Pv9e73ru5/P3OYTQW59GzJO7Pz03l2DC+pfk=; b=NtXUS4B3BCkdwM2nNydpV3BJHr6Xj9cFXTYRW6l2dKzgq6LLGQmgPycpaGz2zM9WvE 7NANNLLiF+17K0fP77DkPv+dqeEJOhHPIRL2oFQZWo+lZnKE3L9S1R35sD+B20P5Zlp6 lCDi0gzJ4GEJWwVbs480Knx16wjaB9oDVczSb33uphr6OedbgxKXssXD1p+ZMpnHegxO TPWDLZiefNkfskU8AA6mMVB2wEukoFLGFTqOcSxuMN2CUYzc9NvsijaCBlgM8ukRnnBB LSABg+hmXUWCAuGO+BpDRTSe9E4SE2Kbn3oVY8EiVJdDBrY/kGvOr9Ef0SOMFrz+KnGo 6d2A== X-Gm-Message-State: AOJu0YzVmfXISvRImu0iEFzRocAK0oEVAYFOnpvz+SuJMakDatHQqrya BYAZU/Aai2W1rdiDd6ezcaWolGEwxFWXtEulb7FPImNDzApJETGllnFNWw== X-Google-Smtp-Source: AGHT+IEt7s9Wj+ZLCmJsLROefw8Kq/y8yvrSCSpArvBSe2CMO9qvm/DuHzvUrocPfn8m7LBd6N+TXg== X-Received: by 2002:a05:600c:510d:b0:417:29a3:3f4f with SMTP id o13-20020a05600c510d00b0041729a33f4fmr3237079wms.2.1712841396470; Thu, 11 Apr 2024 06:16:36 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:9204:3045:1131:5cf7]) by smtp.gmail.com with ESMTPSA id u14-20020a05600c19ce00b0041772ec5d18sm4777113wmq.0.2024.04.11.06.16.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 06:16:36 -0700 (PDT) From: Simon Tournier To: bug-guix@gnu.org Subject: Constructing hg-fetch fixed-output derivation requires Mercurial Date: Wed, 10 Apr 2024 18:18:14 +0200 Message-ID: <87h6g9w5rt.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x435.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, For instance, --88--- $ guix build -S -d hg-commitsigs substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% 3,7 MB will be downloaded: [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zimon.toutoune[at]gmail.com) 0.8 DATE_IN_PAST_12_24 Date: is 12 to 24 hours before Received: date 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Debbugs-Envelope-To: submit 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.8 (/) Hi, For instance, --8<---------------cut here---------------start------------->8--- $ guix build -S -d hg-commitsigs substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% 3,7 MB will be downloaded: /gnu/store/6fya762sz5hjdj04vdn5g3v6zii6f11d-mercurial-6.2.2 substituting /gnu/store/6fya762sz5hjdj04vdn5g3v6zii6f11d-mercurial-6.2.2... downloading from https://ci.guix.gnu.org/nar/lzip/6fya762sz5hjdj04vdn5g3v6z= ii6f11d-mercurial-6.2.2 ... mercurial-6.2.2 3.5MiB = 529KiB/s 00:07 =E2=96=95=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=8F 100.0% /gnu/store/pkb6zd9xfmxx6rsh4p7w3glh7xqg5sqy-hg-commitsigs-0.1.0-0.b53eb68-c= heckout.drv --8<---------------cut here---------------end--------------->8--- and it is unexpected. The construction of the fixed-output derivation does not need to download stuff; it only needs to compose stuff detailing how to do. Any download (or build) must happen when running the derivation itself. The issue: later =E2=80=93 say 1 or 2 years from now =E2=80=93 the command: guix time-machone --commit=3D929ddec -- build -S -d hg-commitsigs will start to build all what Mercurial needs (python etc.). If for some reasons*, only one of Mercurial dependencies fails then we are doomed. ( Context: I am working on a fixed-output translator; rely on current strategies for downloading and do not require all the past stack just for downloading source code. ) I think it comes from this part: --8<---------------cut here---------------start------------->8--- (hg-fetch '#$(hg-reference-url ref) '#$(hg-reference-changeset ref) #$output #:hg-command (string-append #+hg "/bin/hg"))) --8<---------------cut here---------------end--------------->8--- from =E2=80=99hg-fetch=E2=80=99 in (guix hg-download). Here the #+hg is no= t required because just before there is: (set-path-environment-variable "PATH" '("bin") (match '#+inputs (((names dirs outputs ...) ...) dirs))) So relying on string "hg" should be enough; as it is done in =E2=80=99git-fetch/in-band*=E2=80=99 for one example. Do I miss something? Cheers, simon *reasons of failures: See https://guix.gnu.org/en/blog/2024/adventures-on-the-quest-for-long-term-re= producible-deployment From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 12 05:30:30 2024 Received: (at 70339) by debbugs.gnu.org; 12 Apr 2024 09:30:30 +0000 Received: from localhost ([127.0.0.1]:57885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvDEo-0002DJ-FQ for submit@debbugs.gnu.org; Fri, 12 Apr 2024 05:30:30 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:54528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvDEf-0002BU-F0 for 70339@debbugs.gnu.org; Fri, 12 Apr 2024 05:30:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=9uhgvJz5PibzQtsgSmqKAetAF02yFnNBZTVWD41VOGI=; b=ZckfSQiXufTUie/Sk7/XVOEyot/vszNrHmBrpQwQ404i8QD8r8L76MCh E5xiJzOQvejWizs9O9+5YunKjgmugrwYuOPYCNziRnx66qBnKOekGRji/ Xz1Wciiq55jtz0OKEStwMjWt0LrcyMRTM0a1a4LaiI8O2p8HbdUX5btWW s=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.07,195,1708383600"; d="scan'208";a="84584746" Received: from unknown (HELO ribbon) ([193.50.110.177]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 11:30:02 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Tournier Subject: Re: bug#70339: Constructing hg-fetch fixed-output derivation requires Mercurial In-Reply-To: <87h6g9w5rt.fsf@gmail.com> (Simon Tournier's message of "Wed, 10 Apr 2024 18:18:14 +0200") References: <87h6g9w5rt.fsf@gmail.com> Date: Fri, 12 Apr 2024 11:30:00 +0200 Message-ID: <87r0fbexnr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70339 Cc: 70339@debbugs.gnu.org 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: -1.0 (-) Hello! Simon Tournier skribis: > $ guix build -S -d hg-commitsigs > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% > 3,7 MB will be downloaded: > /gnu/store/6fya762sz5hjdj04vdn5g3v6zii6f11d-mercurial-6.2.2 > substituting /gnu/store/6fya762sz5hjdj04vdn5g3v6zii6f11d-mercurial-6.2.2.= .. > downloading from https://ci.guix.gnu.org/nar/lzip/6fya762sz5hjdj04vdn5g3v= 6zii6f11d-mercurial-6.2.2 ... > mercurial-6.2.2 3.5MiB = 529KiB/s 00:07 =E2=96=95=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=8F 100.0% > > /gnu/store/pkb6zd9xfmxx6rsh4p7w3glh7xqg5sqy-hg-commitsigs-0.1.0-0.b53eb68= -checkout.drv > > > and it is unexpected. That running =E2=80=98hg clone=E2=80=99 requires Mercurial isn=E2=80=99t to= tally unexpected to me. :-) > I think it comes from this part: > > (hg-fetch '#$(hg-reference-url ref) > '#$(hg-reference-changeset ref) > #$output > #:hg-command (string-append #+hg "/bin/hg"= ))) > > from =E2=80=99hg-fetch=E2=80=99 in (guix hg-download). Here the #+hg is = not required > because just before there is: > > (set-path-environment-variable "PATH" '("bin") > (match '#+inputs > (((names dirs outputs ...) .= ..) > dirs))) Maybe, but one way or another, Mercurial is necessary. Now, the =E2=80=98guix recover=E2=80=99 tool (or whatever you call it) you= =E2=80=99re working on could create a different fixed-output derivation producing the same result but without using Mercurial; typically, the builder of that derivation would download from SWH. Does that make sense? HTH, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 12 08:43:05 2024 Received: (at 70339) by debbugs.gnu.org; 12 Apr 2024 12:43:05 +0000 Received: from localhost ([127.0.0.1]:58091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvGFF-0003Xd-0i for submit@debbugs.gnu.org; Fri, 12 Apr 2024 08:43:05 -0400 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:37894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvGFD-0003X9-0W for 70339@debbugs.gnu.org; Fri, 12 Apr 2024 08:43:03 -0400 Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-78ebd2d5762so22672285a.0 for <70339@debbugs.gnu.org>; Fri, 12 Apr 2024 05:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712925767; x=1713530567; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ndEyj6Q1mb98tsxsF7CiDQiJgnzC9kEUJwR8ICzQxMs=; b=erDQ8olw5/XArUruc0XcV7ALHrNBUgCNUc/7U0mXHCxkR2WTrrxpvoopR7/mi+ZZ0d RDv+OYA1c25p2gmobiV3clvSERyvnhcdsiDMDHvt3dthmdPNDHy15lwlN+XBxE1nZKb5 q7MY5rKAfMiPjPxjtj6HtN9m4AY9rhJ+xdiwYlRwicc2tys5m1h6Gz21aluf1rPMF5Dq 5lqGktyXFcTb0W6U1YDyYLsqjagtEr0PnaO85/Y/2eIDTMboEvsBknzxjuk8nb6L6iQX xVrCJBOqtaaDZNMyExi8VSbraNWtuCBN4+HziJPNaSCra+UQIz9fTzW8eGFH7g/of++P G4ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712925767; x=1713530567; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ndEyj6Q1mb98tsxsF7CiDQiJgnzC9kEUJwR8ICzQxMs=; b=KamjZypXNp+ggO1IgYa9RDN3xk8Sz/jIds9IEoTq+VdnyW/j0ZpiKwLHtgsDZygGjm gdgeNFlUvk9BCcjFXsP5YmDSTVqPnuBRK9Zm6TqZqxJSS1mMLj0PR7KmQyQaa8fqVl+5 Ua3ax+RgVvZ9z5RIkFcdbZARPZ/AL/nk46l2y+2QpbPz9s4VMk+xCobf3k8HnbDIHvIS d+x2f+tJW58bijXTaflH9Pibx1lF2W/PuzZ8mx6TIFYzDzTPVJ7rIAkPJbeWqR0Am4jZ HqvaA9iZKNJ0l9Tx3XnmsrmvpLchGn8xOyP6qc2gQ8AvJw2vg9h8Y4LHhvCo2WoK8ZHA Fhfg== X-Gm-Message-State: AOJu0Yx5GBDGROxh2rcoMu4aBpeJmJOur1d6xqSMXK/+/Jqvh4aPposv WoJAVTwV43yTp90KZFMw5r6AuUQkyTT+d/dOfsuuOuYtZSib81y6YJh9FKwrL+BX37mfoyB+xr/ Du2X8BPF73KdnlmXnZHvdPpwrJ+4= X-Google-Smtp-Source: AGHT+IGqBLk0+DtFPfo2VeniZ/hF1Y7/s2rVFJOvKF3pSMU52a4bAeXShlGuK4vAjZWFtwfP6H3DzIbpc+ol79DBRyc= X-Received: by 2002:ad4:5fca:0:b0:69b:3bd5:240d with SMTP id jq10-20020ad45fca000000b0069b3bd5240dmr2682431qvb.2.1712925767131; Fri, 12 Apr 2024 05:42:47 -0700 (PDT) MIME-Version: 1.0 References: <87h6g9w5rt.fsf@gmail.com> <87r0fbexnr.fsf@gnu.org> In-Reply-To: <87r0fbexnr.fsf@gnu.org> From: Simon Tournier Date: Fri, 12 Apr 2024 14:42:35 +0200 Message-ID: Subject: Re: bug#70339: Constructing hg-fetch fixed-output derivation requires Mercurial To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70339 Cc: 70339@debbugs.gnu.org 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: -1.0 (-) Hi Ludo, On Fri, 12 Apr 2024 at 11:30, Ludovic Court=C3=A8s wrote: > > $ guix build -S -d hg-commitsigs > > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.= 0% > > 3,7 MB will be downloaded: > > /gnu/store/6fya762sz5hjdj04vdn5g3v6zii6f11d-mercurial-6.2.2 > > substituting /gnu/store/6fya762sz5hjdj04vdn5g3v6zii6f11d-mercurial-6.2.= 2... > > downloading from https://ci.guix.gnu.org/nar/lzip/6fya762sz5hjdj04vdn5g= 3v6zii6f11d-mercurial-6.2.2 ... > > mercurial-6.2.2 3.5MiB = 529KiB/s 00:07 =E2=96=95=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=8F 100.0% > > > > /gnu/store/pkb6zd9xfmxx6rsh4p7w3glh7xqg5sqy-hg-commitsigs-0.1.0-0.b53eb= 68-checkout.drv > > > > and it is unexpected. > > That running =E2=80=98hg clone=E2=80=99 requires Mercurial isn=E2=80=99t = totally unexpected to > me. :-) There is a misunderstanding, I guess. Running 'hg clone' requires to have a local copy of Mercurial, yes for sure= . :-) However, just ask what it will run (please note the dash d in guix build -S -d hg-commitsigs) must not require to have a local copy of Mercurial (binary). If you still think yes, why is it not the case for fixed-output derivations relying on the old Git builder? > > I think it comes from this part: > > > > (hg-fetch '#$(hg-reference-url ref) > > '#$(hg-reference-changeset ref) > > #$output > > #:hg-command (string-append #+hg "/bin/h= g"))) > > > > from =E2=80=99hg-fetch=E2=80=99 in (guix hg-download). Here the #+hg i= s not required > > because just before there is: [...] > Maybe, but one way or another, Mercurial is necessary. Again, I think it is a bug from #+hg instead of plain "hg". Having a local copy of Mercurial (binary) must not be required to just display the fixed-output derivation. For running this fixed-output derivation, yes for sure. > Now, the =E2=80=98guix recover=E2=80=99 tool (or whatever you call it) yo= u=E2=80=99re working on > could create a different fixed-output derivation producing the same > result but without using Mercurial; typically, the builder of that > derivation would download from SWH. > > Does that make sense? Yes, it makes sense; see my very first attempt in [1] :-). But you cannot apply this strategy for fixed-output derivations relying on Mercurial. You need first to build Mercurial (and thus all the Python stack) just to display the fixed-output derivation. Then, yes once you have this fixed-output derivation, it is possible to manipulate it for getting another one. This report is about #+hg that needs to be fixed for the future. And because of that, the strategy above for fixed-output derivations relying on Mercurial is doomed for the past, IMHO. Except if you have an idea. ;-) Cheers, simon 1: https://gitlab.com/zimoun/guix-drv From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 12 10:05:46 2024 Received: (at 70339) by debbugs.gnu.org; 12 Apr 2024 14:05:46 +0000 Received: from localhost ([127.0.0.1]:59415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvHXF-0008Py-MF for submit@debbugs.gnu.org; Fri, 12 Apr 2024 10:05:46 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:36241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvHXB-0008PC-4l for 70339@debbugs.gnu.org; Fri, 12 Apr 2024 10:05:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=mapVVOFsN58zOdulQ47Udbrsg4PK+/wIR1qdn+RsDug=; b=MGTo/MkVutLx7YmR4Gqb+IcKU8LjR3V5Pqb90XL2hSzxhZ370oxQ23KM +tAYSWbXa9/p3YMx6aid2kO2y6bqNEJTi3IKIQiI1mq70yWxnP1k9CPj2 zSVvgkVvQbgrnf5Bn8eGzU03L2g80TX+H2NU8eTf8ur54+fTyYwQ79RYd M=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.07,196,1708383600"; d="scan'208";a="161311703" Received: from unknown (HELO ribbon) ([193.50.110.177]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 16:05:24 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Tournier Subject: Re: bug#70339: Constructing hg-fetch fixed-output derivation requires Mercurial In-Reply-To: (Simon Tournier's message of "Fri, 12 Apr 2024 14:42:35 +0200") References: <87h6g9w5rt.fsf@gmail.com> <87r0fbexnr.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 24 Germinal an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de la Roquette X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 12 Apr 2024 16:05:23 +0200 Message-ID: <87il0m65i4.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70339 Cc: 70339@debbugs.gnu.org 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: -1.7 (-) Simon Tournier skribis: > Hi Ludo, > > On Fri, 12 Apr 2024 at 11:30, Ludovic Court=C3=A8s wrote: > >> > $ guix build -S -d hg-commitsigs >> > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100= .0% >> > 3,7 MB will be downloaded: >> > /gnu/store/6fya762sz5hjdj04vdn5g3v6zii6f11d-mercurial-6.2.2 >> > substituting /gnu/store/6fya762sz5hjdj04vdn5g3v6zii6f11d-mercurial-6.2= .2... >> > downloading from https://ci.guix.gnu.org/nar/lzip/6fya762sz5hjdj04vdn5= g3v6zii6f11d-mercurial-6.2.2 ... >> > mercurial-6.2.2 3.5MiB = 529KiB/s 00:07 =E2=96=95=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=8F 100.0% >> > >> > /gnu/store/pkb6zd9xfmxx6rsh4p7w3glh7xqg5sqy-hg-commitsigs-0.1.0-0.b53e= b68-checkout.drv >> > >> > and it is unexpected. >> >> That running =E2=80=98hg clone=E2=80=99 requires Mercurial isn=E2=80=99t= totally unexpected to >> me. :-) > > There is a misunderstanding, I guess. > > Running 'hg clone' requires to have a local copy of Mercurial, yes for su= re. :-) > > However, just ask what it will run (please note the dash d in guix > build -S -d hg-commitsigs) must not require to have a local copy of > Mercurial (binary). If you still think yes, why is it not the case > for fixed-output derivations relying on the old Git builder? Oh sorry, I had missed the =E2=80=98-d=E2=80=99 bit. In this case, what=E2=80=99s happening is grafts: Guix downloads (or builds) Mercurial so it can compute its grafted derivation. >> Now, the =E2=80=98guix recover=E2=80=99 tool (or whatever you call it) y= ou=E2=80=99re working on >> could create a different fixed-output derivation producing the same >> result but without using Mercurial; typically, the builder of that >> derivation would download from SWH. >> >> Does that make sense? > > Yes, it makes sense; see my very first attempt in [1] :-). [...] > 1: https://gitlab.com/zimoun/guix-drv Nice! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 22 09:46:03 2024 Received: (at 70339-done) by debbugs.gnu.org; 22 Apr 2024 13:46:03 +0000 Received: from localhost ([127.0.0.1]:46010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rytze-0003U3-VR for submit@debbugs.gnu.org; Mon, 22 Apr 2024 09:46:03 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:39286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rytzW-0003SJ-0W for 70339-done@debbugs.gnu.org; Mon, 22 Apr 2024 09:45:55 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-347c6d6fc02so674396f8f.1 for <70339-done@debbugs.gnu.org>; Mon, 22 Apr 2024 06:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713793532; x=1714398332; darn=debbugs.gnu.org; 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=wyAUH4WxZlYq0V9EPLvBtbtJsAwh9ue73PGz6Sh2dwU=; b=PtaBF1dPu6fXZ4yP/BAWz3eC1mcvZTQOQFyk12r2b70W99YBrh6GTVxlxNLUhi9aNW hzIatMcgHsT3wUvw8y5SrewNa2PYQeWwcwiZShpVbVUeQTi2EQ1zyu5AwBSwE26vSVLq JL/v75WGkrxfbkOFcnEXqXzLUR61RZpBFnU7YFHHPuUNq6QgXGWyq4gWWKdOMcLzK3x6 9gmvnbeNylnjXF/fBJ9psOZxbe4REIxqtu6lECXHdov3R9rI/utT6Rg5jawsdGwaIAO7 lzfGPW0IAy29sK9PEzhPqYWlX9MfOr6SzkRun1k8u5QvMfgD5K+Ab/baaQsXYi4RiTYj EVlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713793532; x=1714398332; 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=wyAUH4WxZlYq0V9EPLvBtbtJsAwh9ue73PGz6Sh2dwU=; b=Sa74L+4Neihu9VXl+25tCQCSvS0JVOAUMq+/HkYqksO7lxBJpP1D/uueBhlr6W8cWs 8GANwfwF44wahC9jJP3NBAspI2qi0lAZI46UC2dYDs1Yb13g8LcpKByYy2xU0HPfq/k8 DXKR5xZPYhthvfQg+vJ2TJn6NyY0Aio6EZOh1daIWZNQjGVA7EMsi00KOJOdf1BJILZF ySaJnZswSR4TNHuzf++taQbw1MEPIL00nobYjn2OxON47Ei3V11HmLdIUap98YHyjOyI NqQRBu3wSsfdhqw433LA0Ahro+WD8EospKMCb0jvet0/+C6MKXAjRj/HxzMxQ7rPiWqI us2w== X-Gm-Message-State: AOJu0YwLIooZUeyVnt6k3wmQZXtzcJlS4jROk0RHRJOMU2WEasXeUbJu 47ZQIitttak1tp6iFMoKC/Et9dnnPtmtyUMQqP9cCGF2v60sqTss0P1yzg== X-Google-Smtp-Source: AGHT+IHjH5sXt9DYXOyDjtGKxmVuTd6/onMNPYkT0LhVaiIlV4RuZi2vjVk0PbTFT5ZvfW+sYCYksg== X-Received: by 2002:a05:600c:1c9c:b0:418:ef65:4b5f with SMTP id k28-20020a05600c1c9c00b00418ef654b5fmr6996569wms.3.1713793532285; Mon, 22 Apr 2024 06:45:32 -0700 (PDT) Received: from lili (roam-nat-fw-prg-194-254-61-42.net.univ-paris-diderot.fr. [194.254.61.42]) by smtp.gmail.com with ESMTPSA id u18-20020a05600c19d200b0041896d2a05fsm16600468wmq.5.2024.04.22.06.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 06:45:31 -0700 (PDT) From: Simon Tournier To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#70339: Constructing hg-fetch fixed-output derivation requires Mercurial In-Reply-To: <87il0m65i4.fsf@inria.fr> References: <87h6g9w5rt.fsf@gmail.com> <87r0fbexnr.fsf@gnu.org> <87il0m65i4.fsf@inria.fr> Date: Mon, 22 Apr 2024 02:22:00 +0200 Message-ID: <87bk626yc7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 70339-done Cc: 70339-done@debbugs.gnu.org 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.2 (/) Hi, On ven., 12 avril 2024 at 16:05, Ludovic Court=C3=A8s wrote: > In this case, what=E2=80=99s happening is grafts: Guix downloads (or buil= ds) > Mercurial so it can compute its grafted derivation. Ah indeed! Damned. :-) Closing. Cheers, simon From unknown Sat Jun 21 05:18:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 21 May 2024 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator