From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cOQ5Fx1kT2QG8QAASxT56A (envelope-from ) for ; Mon, 01 May 2023 09:02:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EB1IFx1kT2S5XAAA9RJhRA (envelope-from ) for ; Mon, 01 May 2023 09:02:53 +0200 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 1D2FA86A9 for ; Mon, 1 May 2023 09:02:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptHa6-0003nu-UA; Sun, 30 Apr 2023 20:39:54 -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 1ptHa5-0003nm-5o for guix-devel@gnu.org; Sun, 30 Apr 2023 20:39:53 -0400 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptHa3-0005HJ-DR for guix-devel@gnu.org; Sun, 30 Apr 2023 20:39:52 -0400 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-7515631b965so413591485a.0 for ; Sun, 30 Apr 2023 17:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682901590; x=1685493590; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=8dmKkGpRPgyMs/ATpedWOIH1tN3SbE57Eo2Rz5rXFY8=; b=hvVkQ6TzYbS5CigQoOXZOo7t+nypnR/hUFNEj8Gmu7e2ZkNNb141stYWXtYiOjJDQ/ OpvCo6G69zKejLKAFdzbgZiYipTkta5TqH8VKPmCeYiaSLZXhmvR8FkQ9e+t5UxFxnbK 5qiZiH2AJPpgF7ItUB3OG5f4t72G3DIimG9ut/HXWHNTjPquwclb+6sr9E3MyOVwM7/8 mfcKF1jJgmfJLZdUFhL9lFtfS7gfXK/u8ETkh5e7dHrfSWuZeqCw+LnUEFnmvabBgeYW ssvQO2KAuZ03DyP/0y6cdQsvsSFOcZBaLe08v4xzXQx7I2j1MjYBqmmZJW7hGoTcZnTx T+Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682901590; x=1685493590; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8dmKkGpRPgyMs/ATpedWOIH1tN3SbE57Eo2Rz5rXFY8=; b=h5iUsyctGrsVJLByiAvPwlKZImuO34OykLFnlrVSF07owNpJtAKBUApuz8xUiovhJj B8HdlQd6chp62jVa/SWYyLSa71xgBbp/WvCY6cANiW6d2otWM6blVQvhkd7ZHbI6+Nom OnHLyTY4J7ueqVdnYna1AIIEO5lcgugCkrajQ5dNlmAsYVhmsoBRHtRy+90PWuzv+0Mq BKzj9XRypJZ6nit+v63uDuoikbnBd0yvm/rot80e32O7JD8DEVuvAh1TUIGVEOiaPdIe k+SqxNAWUUaNg7TE0Huiey+F4Qy5JPsbu3fz7p5+XO1u9VHtYeFxrUbIYgywgvRK9rqG lftQ== X-Gm-Message-State: AC+VfDykLz79UVobhY6FJzWV8IC2PpRE/fzHgAkTe4VoMtareiS3Fxmz 0cJio5G2XcZ5SK52pYUmdhk= X-Google-Smtp-Source: ACHHUZ5CpYyVyreyqF7V50ZknFAL41zSTTn2TxiHfkh2kUox2zsW9OOBjB3MkGI6FR3rgVFSHDrWpg== X-Received: by 2002:ac8:7d04:0:b0:3e9:65a2:61c6 with SMTP id g4-20020ac87d04000000b003e965a261c6mr21915619qtb.21.1682901590306; Sun, 30 Apr 2023 17:39:50 -0700 (PDT) Received: from hurd (dsl-155-245.b2b2c.ca. [66.158.155.245]) by smtp.gmail.com with ESMTPSA id v25-20020a05620a123900b0074e0e82e7edsm680789qkj.100.2023.04.30.17.39.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Apr 2023 17:39:49 -0700 (PDT) From: Maxim Cournoyer To: Simon Tournier Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , =?utf-8?Q?Bj=C3=B6rn_H=C3=B6fling?= , guix-devel@gnu.org, Lars-Dominik Braun Subject: Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json References: <20230312220021.22bfff4f@tangletp> <878rfwgbng.fsf@gnu.org> <86lej8y75p.fsf@gmail.com> <87cz3t44hi.fsf_-_@inria.fr> <86pm7sb7vf.fsf@gmail.com> <87354oqdal.fsf@gmail.com> <87v8hg9lct.fsf@gmail.com> Date: Sun, 30 Apr 2023 20:39:48 -0400 In-Reply-To: <87v8hg9lct.fsf@gmail.com> (Simon Tournier's message of "Fri, 28 Apr 2023 15:39:46 +0200") Message-ID: <875y9c9963.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682924573; a=rsa-sha256; cv=none; b=Qzpd924k6u2zIEk4j0AhtPm3LVrMkDuwH6AFkuTQq0YGC4A4RrBKD9BHZVRy0WLu4gJEvZ 8r36g2YcTrSdFlbUk/Hh6/5TcLENSaXsGWRjgqkE7mSVeGl5UwWRGP0CPNrTAI1LIANLkg 5avB4gPFIKO69vh0JZRoy0YEPmlMIJkC/M0Zs2tXdTEdTJBNsm/HAC9yHcTeH8hZqxiMzD 8CCbixlMGYLvc4dwFBLRSk+PEJKBpfo2/IOIvATBvPGnRLE5eP2UwzlZNrpLpyi5YN8OJg xpiAW01Examgwoca7arjN4E3SaOVtZ7GAkGFJ4YAq+TQApiBnptWUrj3bOrjGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=hvVkQ6Tz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682924573; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=8dmKkGpRPgyMs/ATpedWOIH1tN3SbE57Eo2Rz5rXFY8=; b=QOP9M3pyrxmOog2Ppnp0icErTJFdETHj1XINnSlSQGk1NKC5dshlYhoAVY3TwMsUtcJDV0 UiIhXBOK7TgTxs4oANObGYg1j9es3711N+iC48YxcU1j2XJUqbMkp+/fcGHoiSvOhkHsQE AL1Do7wJtnNvPDUcPxtWbsRdzfnUMgVtp1EvCtm7L2TRYgbAa560aj++vihgcILPOkdV2x DPrHao9A5ZQ9Fd6CyHj4fmn3UCkCbZoD5bhByftB3g11EVGc3IE0QhNTt/cbiNv6YzMVv4 Yla31XBtnk/v7xg1Lv2eevMX8ORRg5GcO4dK2i8nMGkePte9yUgXswUd6vwSgQ== X-Migadu-Spam-Score: -3.82 X-Spam-Score: -3.82 X-Migadu-Queue-Id: 1D2FA86A9 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=hvVkQ6Tz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-TUID: QqlI5g4It139 Hi Simon, Simon Tournier writes: > Hi Ludo, Maxim, all, > > On mar., 25 avril 2023 at 14:40, Ludovic Court=C3=A8s wrote: > >>> Somehow, it reveals 3 currently uncovered cases: computed-file appearing >>> as, >>> >>> 1. =E2=80=99origin=E2=80=99 in source field (ruby-sorbet-runtime) >>> 2. =E2=80=99inputs=E2=80=99 (racket-minimal) >>> 3. =E2=80=99snippet=E2=80=99 in origin in source field (chromium) >> >> I think #1 and #2 are okay: we can use any file-like object there, not >> just origin/package. Of course, is meant to be the best choice >> for =E2=80=98source=E2=80=99, and the best choice for =E2=80= =98inputs=E2=80=99. But I think >> it=E2=80=99s fine to occasionally resort to some other abstraction when = these >> two are not adequate. > > I agree that any file-like object is nice. Somehow, the issue is to > =E2=80=9Cunpack=E2=80=9C the information of this object. For instance, > > scheme@(guix-user)> (define ruby-sorbet-runtime (@@ (gnu packages ruby) r= uby-sorbet-runtime)) > scheme@(guix-user)> (package-source ruby-sorbet-runtime) > $1 =3D #< name: "ruby-sorbet-runtime-0.5.10610.20230106174= 520-1fa668010-checkout" gexp: # = url: "https://github.com/sorbet/sorbet" commit: "0.5.10610.20230106174520-1= fa668010" recursive?: #f> # () 7fd7ad6b81e0>:out> "/gems/sorbet-" #) #)) gnu/packages/ruby.scm:14071:5 7fd7a= e734480> guile: #f options: (#:local-build? #t)> > > > and as far as I understand, this case cannot be handled by some generic > code. The extraction of the =E2=80=9Creal=E2=80=9D origin needs manual a= nd specific > extraction because of this =E2=80=99computed-file=E2=80=99. > > For sure, =E2=80=99source=E2=80=99 can use any file-like object because s= ome use-cases > require that. However, I would be tempted to use an =E2=80=99origin=E2= =80=99 as a > preferred choice =E2=80=93 i.e., when it=E2=80=99s possible and try to ma= ke it > possible. ;-) Because, somehow, it =E2=80=9Cnormalizes=E2=80=9C the sourc= e information > and eases its extraction. I'm not sure I follow, perhaps because I lack context about how Disarchiver use the source field of a package. Would you mind explaining a bit what the problem is or pointing me to a place it was already explained? --=20 Thanks, Maxim