From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EA85DL7Q2WFFhgEAgWs5BA (envelope-from ) for ; Sat, 08 Jan 2022 18:58:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yELxCL7Q2WFNMAEAauVa8A (envelope-from ) for ; Sat, 08 Jan 2022 18:58:22 +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 A9D1C1B107 for ; Sat, 8 Jan 2022 18:58:21 +0100 (CET) Received: from localhost ([::1]:39746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6Fyu-0003Ab-Ra for larch@yhetil.org; Sat, 08 Jan 2022 12:58:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6Fyk-00037k-OR for bug-guix@gnu.org; Sat, 08 Jan 2022 12:58:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6Fyd-00011x-4Q for bug-guix@gnu.org; Sat, 08 Jan 2022 12:58:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n6Fyc-0000gZ-IT; Sat, 08 Jan 2022 12:58:02 -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: efraim@flashner.co.il, bug-guix@gnu.org Resent-Date: Sat, 08 Jan 2022 17:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53127 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: 53127@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by submit@debbugs.gnu.org id=B.16416646652604 (code B ref -1); Sat, 08 Jan 2022 17:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jan 2022 17:57:45 +0000 Received: from localhost ([127.0.0.1]:48683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6FyK-0000fu-Kt for submit@debbugs.gnu.org; Sat, 08 Jan 2022 12:57:44 -0500 Received: from lists.gnu.org ([209.51.188.17]:41132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6FyH-0000fl-TQ for submit@debbugs.gnu.org; Sat, 08 Jan 2022 12:57:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6FyG-0002xb-M5 for bug-guix@gnu.org; Sat, 08 Jan 2022 12:57:41 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:26387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6FyE-00010u-LN for bug-guix@gnu.org; Sat, 08 Jan 2022 12:57:40 -0500 IronPort-Data: A9a23:Zut24KsHew7eX+QK7dH5zgvzz+fnVHFcMUV32f8akzHdYEJGY0x3zmcXDGDXO/qCYTH0e4gkbY/i/UgGusDSmtM1SQVppS5gHilAwSbnLYTAfx2oZ0t+DeWaERk5t51GAjX4wXFdokb0/n9BCZC86yksvU20buCkUrScY3ghHVUMpBoJ0nqPpcZo2+aEvvDpW2thifuqyyHuEAfNNwxcagr42IrfwP9bh8kejRtD1rAIiV+ni3eF/5UdJMp3yahctBIUSKEMdgKxb76rIL1UYgrkExkR5tONyt4Xc2UQQ7TYOg7mZnh+CvHk20Ya4HVrjeBhbKN0hUR/0l1lm/h11dlKq527DwwuI7fQlf81Uh9CEig4M7cuFLrveCTk4ZHNnhKun3zEhq8G4FsNFYcF9aN4HGBe3fMeNXYKdB/rug4c6NpXUcE934F6cpGuZdpA/ys4lHfCEPw9B4jZRLXD6Zle0StYuyyHJt6GD+JxVNalRE2oj8VzB2oq IronPort-HdrOrdr: A9a23:YcqdWKpzOVwH0OKL8tD9r4kaV5o2eYIsimQD101hICG9E/bo9PxG885rsCMc5Ax+ZJhCo7C90de7MBHhHPdOiOF7V4tKOjOGhILCFu1fBOXZrgEIYxeQytJg X-IronPort-AV: E=Sophos;i="5.88,273,1635199200"; d="scan'208";a="14385697" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2022 18:57:35 +0100 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 =?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: Sat, 08 Jan 2022 18:57:34 +0100 Message-ID: <87sfty3yb5.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 Received-SPF: pass client-ip=192.134.164.83; envelope-from=ludovic.courtes@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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=1641664701; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=g10NfqQc89D0/bvcLPQbH417kb5JjJnDUy8Lo29y6vA=; b=CgsSTA4243QpciQJlS5UDtNLcWGvv3eOMzvvrZ5hBkYAw69dItWkWWvJWybC9WYGCzItcc q06+uhO5owveBH2D40fqERx98bBd5GySdb/kyFi6TOcRuSm+0jtkVSQpGEO1rQLGPX+3m6 kQY3d/V0WMUSqK+wDDVXQM5HaZE5ucWUKhFaN1izyQvSCXw7tEhQ4I+vE5bV4K0tiV6rBm RM0vXCykya4PX6UvoXLq8uVZ770uDCTF5Y8/qpD8eRVSka1aYE0msux4EavnjmiC6ruz9M vztPrhKxQKzaxLd6kvw133pfnnGzKGmN0xpYhwsmQBthGUUtNm4CTaGYek5jUQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641664701; a=rsa-sha256; cv=none; b=jxQxdMDaitZRe2FyLeuDzj1n7rWThSGDx3sojJfpseeXW8w51SKO7AmgupjNIjufWuHbGF tGuPgDKfySe5CRMzNp+hQqY2eGhL0jNTW3pL15AagkrIwJwlZL2jUxwrTgpiP8327O6bbH SHB8QZPYhKsg/Axipsd9po8of2eHFe6rsH6GdWW3SuhvscCldFMPRLBW1U/OOqFW6CHSl5 2W5ssAjrh3EBtGD3oN/rWpKYkKgMuCDG2BHMUlXLwBRkX+QXuk7/+YItFvijFIvuQRuqIk 3V9Y6UeeCfIrJFcg6LroDyffFhefluBmGvD0ZSKS2eDzu0uuoWCyu78BHn1pcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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.50 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: A9D1C1B107 X-Spam-Score: -2.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6x3ZaeiIpStJ Hello! I=E2=80=99m opening this issue to discuss the possibility of changing #:cargo-inputs and #:cargo-development-inputs to regular inputs, as a followup to: https://issues.guix.gnu.org/51845#10 I have a preliminary patch for =E2=80=98guix style=E2=80=99 and (guix build= -system cargo), but there=E2=80=99s a couple of stumbling blocks. First, after the hacky patch in the discussion above, I attempted to turn #:cargo-inputs into =E2=80=98propagated-inputs=E2=80=99 (instead of = =E2=80=98inputs=E2=80=99), because that seemed to be somewhat more logical. That cannot work though, because then those packages would propagate to non-Rust packages; for example, librsvg would depend on the =E2=80=9Cbuild output=E2= =80=9D of rust-* instead of just depending on its source. Anyway, I=E2=80=99m back to =E2=80=98inputs=E2=80=99. Second, until now, these two things would have a different meaning: #:cargo-inputs (list rust-cargo) vs. (inputs (list rust-cargo)) In the latter case, the package depends on the build result of =E2=80=98rust-cargo=E2=80=99; in the former case, the package depends on th= e source of =E2=80=98rust-cargo=E2=80=99. (See =E2=80=98rav1e=E2=80=99 for an example = where this happens.) If we turn all #:cargo-inputs into =E2=80=98inputs=E2=80=99, how can we dis= tinguish these two cases? A package like =E2=80=98rust-cargo=E2=80=99 is sometimes = depended on for its source, sometimes for its build result; thus, we cannot just annotate the =E2=80=98rust-cargo=E2=80=99 package itself. Last, the change to =E2=80=98inputs=E2=80=99 would introduce a few cycles a= t the level. Those cycles vanish when we lower to bags and derivations. However, because of these cycles, things like =E2=80=98guix refresh -l=E2=80=99 may not work; there might be other unexpected and undes= ired side effects. Some of these cycles could in theory be removed. For instance, =E2=80=98rust-cfg-if=E2=80=99 has an optional dependency on =E2=80=98rust-c= ompiler-builtins=E2=80=99, which leads to a cycle, but Cargo won=E2=80=99t let us actually remove that dependency, even though it=E2=80=99s optional. In short: it=E2=80=99s complicated! Thoughts? Is status quo a lesser evil, after all?=E2=80=A6 Ludo=E2=80=99. PS: I guess you already knew all this Efraim but I=E2=80=99m kinda (re)discovering it and now experiencing frustration firsthand. :-)