From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +C3oNwz322GO1QAAgWs5BA (envelope-from ) for ; Mon, 10 Jan 2022 10:06:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YLKKMAz322F/KQAAG6o9tA (envelope-from ) for ; Mon, 10 Jan 2022 10:06:20 +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 48A663FCCD for ; Mon, 10 Jan 2022 10:06:20 +0100 (CET) Received: from localhost ([::1]:39040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6qd9-0008W0-8H for larch@yhetil.org; Mon, 10 Jan 2022 04:06:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6qW6-0002bT-6n for bug-guix@gnu.org; Mon, 10 Jan 2022 03:59:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6qW5-0008Jk-Sd for bug-guix@gnu.org; Mon, 10 Jan 2022 03:59:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n6qW5-0007nG-Re for bug-guix@gnu.org; Mon, 10 Jan 2022 03:59:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53127: [PATCH RFC] Turning Rust/Cargo inputs into =?UTF-8?Q?=E2=80=9Cregular=E2=80=9D?= inputs? Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 10 Jan 2022 08:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53127 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Received: via spool by 53127-submit@debbugs.gnu.org id=B53127.164180512929930 (code B ref 53127); Mon, 10 Jan 2022 08:59:01 +0000 Received: (at 53127) by debbugs.gnu.org; 10 Jan 2022 08:58:49 +0000 Received: from localhost ([127.0.0.1]:51805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6qVt-0007mg-77 for submit@debbugs.gnu.org; Mon, 10 Jan 2022 03:58:49 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:34042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6qVp-0007mK-31 for 53127@debbugs.gnu.org; Mon, 10 Jan 2022 03:58:48 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 637E3F2; Mon, 10 Jan 2022 09:58:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fQRNBHLQ7TpZ; Mon, 10 Jan 2022 09:58:37 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id B1F02AD; Mon, 10 Jan 2022 09:58:36 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87sfty3yb5.fsf@inria.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 21 =?UTF-8?Q?Niv=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= 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: Mon, 10 Jan 2022 09:58:35 +0100 In-Reply-To: (Liliana Marie Prikler's message of "Sat, 08 Jan 2022 20:47:46 +0100") Message-ID: <87zgo4ynk4.fsf@inria.fr> 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-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 637E3F2 X-Spamd-Result: default: False [0.90 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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: , Cc: 53127@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" 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=1641805580; 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; bh=Bh/BJGLDpYiXQKxmkLEN/05tjnR/7Q2rFjpDXSUEyAo=; b=XHVC0dl04B9xiQ6ZqVSyocxRwvRSMzykGTVTIf1H2OvamusvI33ljUAQ8p8xl9ioTrYgFQ 5ZhVSS63tUPoH4aWsm1h49YTMzH9GoRfzlfQyIaDt5J8/JsbSorcf8kyfoS/M9XyM5ZdcU U+DZXdf+XvDQtAUkdbfgShPtZCeHYwEu51EaxZqNGzwR7U0NQIBMvwUbvDTcP3HHom1L2T 1ES1WkoxK62YeI4VudRORN3sClXAjruThhWQhr3CU+g9INun1HJ9U/xaTRcPVPVzzu4sXp rwOS4U6aO4cq4fh9vDxbuktA2hd1xL+6+nRLqN2ARyfBgzQad6qZL2XSAB3XgA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641805580; a=rsa-sha256; cv=none; b=eAVFfmw3dZre8jrbc4FL0fa+ng7vDIDt3z4DRGmNAO0Km63+Qo3Lg0f8wmFOOOBtMBc30m 5P8VDOyJ+aTkfJtQ+GTzFUj13N/mmmRJayTGGY/YEeJX0XKzMQEv/ar3fgPO01BJGIEDVw aVzZlGnLxCO4+XQEsMZ9vQ5KvE+hqhOOiwindi3aXve9lYpIkl8rUH9HCOrN2TVFlapDHr uKzJnRM3dgMOX5jNtMgF61RqirJG94m2ACWCjdFg47IIjpHD+uvlik+Wpl8IcFoiNWlRvQ uCuVtmH1B1bSnbUcqZKtWknrwzW4Oqnjr9X4nfe2veiVyDHlpBethad1+ynAMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 48A663FCCD X-Spam-Score: -2.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: Wqsu0F57e9JG Hi! Liliana Marie Prikler skribis: > I suppose adding (package-source rust-cargo) to inputs to preserve the > old meaning would not make much sense? No because you need transitivity (that is, you need sources of the dependencies, too). > If so, what about having a source output and using (list `(,rust-cargo > "source") ...)? AFAICS it wouldn=E2=80=99t help solve the problems I mentioned. >> Last, the change to =E2=80=98inputs=E2=80=99 would introduce a few cycle= s at the >> level.=C2=A0 Those cycles vanish when we lower to bags and >> derivations.=C2=A0 However, because of these cycles, things like =E2=80= =98guix >> refresh -l=E2=80=99 may not work; there might be other unexpected and >> undesired side effects. > What about making the change incrementally, so that outer layers can > start adopting the new style while inner layers are being > rebootstrapped. I also think it'd make sense to see how we could > detect cycles through static analysis. Yeah, we could change things incrementally if that helps. However, given that =E2=80=98guix style=E2=80=99 can automate all the chang= es, I think we could just as well change everything at once. The good thing is that it allows us that the strategy we choose actually works at scale, in every case. >> Some of these cycles could in theory be removed.=C2=A0 For instance, >> =E2=80=98rust-cfg-if=E2=80=99 has an optional dependency on =E2=80=98rus= t-compiler-builtins=E2=80=99, >> which leads to a cycle, but Cargo won=E2=80=99t let us actually remove t= hat >> dependency, even though it=E2=80=99s optional. > Could we rewrite the toml file to tell Cargo it has no power over us?=20 > Could we define bootstrap mockups? Maybe, I don=E2=80=99t know! Thanks, Ludo=E2=80=99.