From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0K8SIpS1a19AIQAA0tVLHw (envelope-from ) for ; Wed, 23 Sep 2020 20:52:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YNfhHZS1a189GAAAB5/wlQ (envelope-from ) for ; Wed, 23 Sep 2020 20:52:36 +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 D7B0C9402A5 for ; Wed, 23 Sep 2020 20:52:35 +0000 (UTC) Received: from localhost ([::1]:38392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLBkf-00062F-Gm for larch@yhetil.org; Wed, 23 Sep 2020 16:52:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLBkB-00061v-KM for guix-patches@gnu.org; Wed, 23 Sep 2020 16:52:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLBkA-00019Q-7H for guix-patches@gnu.org; Wed, 23 Sep 2020 16:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLBkA-0002MF-3h for guix-patches@gnu.org; Wed, 23 Sep 2020 16:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43578] [PATCH 0/4] Rewriting implicit inputs with 'package-input-rewriting' & co. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Sep 2020 20:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43578 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 43578@debbugs.gnu.org Received: via spool by 43578-submit@debbugs.gnu.org id=B43578.16008942949006 (code B ref 43578); Wed, 23 Sep 2020 20:52:02 +0000 Received: (at 43578) by debbugs.gnu.org; 23 Sep 2020 20:51:34 +0000 Received: from localhost ([127.0.0.1]:38025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLBji-0002LB-9w for submit@debbugs.gnu.org; Wed, 23 Sep 2020 16:51:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLBje-0002Kq-Sc for 43578@debbugs.gnu.org; Wed, 23 Sep 2020 16:51:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50458) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLBjY-00016e-Cr; Wed, 23 Sep 2020 16:51:25 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53464 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLBjW-0003HV-Gd; Wed, 23 Sep 2020 16:51:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200923161253.2378-1-ludo@gnu.org> Date: Wed, 23 Sep 2020 22:51:21 +0200 In-Reply-To: (zimoun's message of "Wed, 23 Sep 2020 19:17:33 +0200") Message-ID: <87y2l0b4ja.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Spam-Score: -1.51 X-TUID: 1Bxtf+32G7mr Hi! zimoun skribis: > On Wed, 23 Sep 2020 at 18:23, Ludovic Court=C3=A8s wrote: > >> Concretely, the following commands had no effect thus far: >> >> guix build python-itsdangerous --with-input=3Dpython=3Dpython2 >> guix build hello --with-input=3Dgcc=3Dgcc-toolchain@10 >> >> In both cases, this is because the input we want to change is >> an implicit input. This patch set fixes that, and it fixes >> as a side effect. > > Awesome! > > Therefore, 'package-with-explicit-python' & co. are becoming obsolete > (or almost), right? Good question, we=E2=80=99d have to check on a case-by-case basis. =E2=80=98package-input-rewriting=E2=80=99 is coarser-grain: it can potentia= lly rewrite =E2=80=98python=E2=80=99 dependencies deeper in the graph than =E2=80=98package-with-explicit-python=E2=80=99. >> This opens new possibilities. =E2=80=98--with-input=3Dpython=3Dpython2= =E2=80=99 is one >> of them, but =E2=80=98--with-input=3Dgcc=3Dgcc-toolchain@10=E2=80=99 is = not (it fails >> to build for obscure reasons that I=E2=80=99ll fix in =E2=80=98core-upda= tes=E2=80=99, and >> it rebuilds the world anyway, which is not practical). Another > > Rebuilding the world, maybe. :-) It is interesting in the HPC context > where one would like use an "optimized" compiler, isn't? Like I wrote, =E2=80=98--with-input=3Dgcc=3Dgcc-toolchain@10=E2=80=99 (or s= imilar) isn=E2=80=99t practical: you=E2=80=99d have to rebuild the world. What I envision for the use case where you want to build a specific package set with a different toolchain is to have a =E2=80=98--with-toolchain=3DPACKAGE=3DTOOLCHAIN=E2=80=99 option. That woul= d rebuild PACKAGE with TOOLCHAIN. Then it would either rebuild all its dependents (as per =E2=80=98--with-input=E2=80=99) or graft the rebuilt package (as per =E2=80= =98--with-graft=E2=80=99). The latter may not always be a viable option though, so I don=E2=80=99t kno= w. In fact I think it would be nice if the graft vs. rebuild choice could be made independently for all the transformation options. > Thank you. I will give it a try for my use cases. :-) Awesome, let me know how it goes! Thank you, Ludo=E2=80=99.