From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UMPKCGM/bF9ISwAA0tVLHw (envelope-from ) for ; Thu, 24 Sep 2020 06:40:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KIunBGM/bF8RBgAAbx9fmQ (envelope-from ) for ; Thu, 24 Sep 2020 06:40:35 +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 E31C7940393 for ; Thu, 24 Sep 2020 06:40:33 +0000 (UTC) Received: from localhost ([::1]:36306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLKve-00046Z-DP for larch@yhetil.org; Thu, 24 Sep 2020 02:40:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLKlX-0002vQ-Cu for guix-patches@gnu.org; Thu, 24 Sep 2020 02:30:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLKlX-0001uA-30 for guix-patches@gnu.org; Thu, 24 Sep 2020 02:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLKlW-0004Uc-Rg for guix-patches@gnu.org; Thu, 24 Sep 2020 02:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43578] [PATCH 0/4] Rewriting implicit inputs with 'package-input-rewriting' & co. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Sep 2020 06:30: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 43578@debbugs.gnu.org, zimoun Received: via spool by 43578-submit@debbugs.gnu.org id=B43578.160092897617216 (code B ref 43578); Thu, 24 Sep 2020 06:30:02 +0000 Received: (at 43578) by debbugs.gnu.org; 24 Sep 2020 06:29:36 +0000 Received: from localhost ([127.0.0.1]:38503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLKl6-0004Tb-8Q for submit@debbugs.gnu.org; Thu, 24 Sep 2020 02:29:36 -0400 Received: from flashner.co.il ([178.62.234.194]:54110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLKl4-0004TP-4N for 43578@debbugs.gnu.org; Thu, 24 Sep 2020 02:29:35 -0400 Received: from localhost (unknown [31.210.181.177]) by flashner.co.il (Postfix) with ESMTPSA id 3F93840045; Thu, 24 Sep 2020 06:29:28 +0000 (UTC) Date: Thu, 24 Sep 2020 09:28:55 +0300 From: Efraim Flashner Message-ID: <20200924062855.GJ896@E5400> References: <20200923161253.2378-1-ludo@gnu.org> <87y2l0b4ja.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="g3RkK9jYN81zD2N+" Content-Disposition: inline In-Reply-To: <87y2l0b4ja.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: 3.6 (+++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 2.6 (++) 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=none; 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.69 X-TUID: d8HzXkSeie1a --g3RkK9jYN81zD2N+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 23, 2020 at 10:51:21PM +0200, Ludovic Court=C3=A8s wrote: > Hi! >=20 > zimoun skribis: >=20 > > 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? >=20 > 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 potent= ially rewrite > =E2=80=98python=E2=80=99 dependencies deeper in the graph than > =E2=80=98package-with-explicit-python=E2=80=99. >=20 IIRC part of the reason for python-minimal was to build tcl/tk and xorg. We don't really want to rebuild deep enough to rebuild xorg with python2. I'm struggling to find a use-case but going as deep as sqlite shouldn't be a problem. > >> This opens new possibilities. =E2=80=98--with-input=3Dpython=3Dpython= 2=E2=80=99 is one > >> of them, but =E2=80=98--with-input=3Dgcc=3Dgcc-toolchain@10=E2=80=99 i= s not (it fails > >> to build for obscure reasons that I=E2=80=99ll fix in =E2=80=98core-up= dates=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? >=20 > Like I wrote, =E2=80=98--with-input=3Dgcc=3Dgcc-toolchain@10=E2=80=99 (or= similar) isn=E2=80=99t > practical: you=E2=80=99d have to rebuild the world. >=20 > 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 wo= uld 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 k= now. >=20 > In fact I think it would be nice if the graft vs. rebuild choice could > be made independently for all the transformation options. >=20 > > Thank you. I will give it a try for my use cases. :-) >=20 > Awesome, let me know how it goes! >=20 > Thank you, > Ludo=E2=80=99. >=20 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --g3RkK9jYN81zD2N+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl9sPKQACgkQQarn3Mo9 g1Fu6xAAh7JtMVg1xzVgoU4pduR4SWbkO98gA7O/mIK4JhcU84vfKzX8eUFsMSMy upMt+3j2JFLtlkRSGqSpk/aUdfXwUdVvqqSuwuv67K7l825aIbEwFlFmw9HX2whP iUDtSTE4z6e/iV1XHr1WJbAICFB3LfJeFLJXQyn81b+7FTmjwTb17sS4Z5J8uVAd mJlfbncEczSh1Yw5i4x/bjY6xms6W0jLTFYpWv2VMPThc6MrJUBhnY+35gEz7GBV HPxjEHqaVegXlJ3F6ic2wYzWV2eqnmhxeLH3PG3EdiAQJ2LUEFVf5qB0BplZvy4D HSrklHmtsNIvn5XEoeMwNWEIAoTUYoyKqMsEwM56tvqPkXUB+ye2XkjEZiX141jC 2oFb9HQHAZyVWMUy4epJ3hSzlfU9WXU+ey+nwmsSz5Lc2q4MXMxXIvfwP6JF+mhF IjHELmInaK6IlVWjE2u4ZkO9fCgugqhbZe3wtU4lE8IhdskKiogumvRbgbTKx3Rr nk1I86K62kDvuvudLTvSPtmXIC+LL12c1ivSx/UrIhZJTVaTBWaLqO6z5wTNcJOo bzq2geSYoBDhWcv7O7e5cxircqOQKWTWaDaRkbJII5jMgLrnz0Au/JsMqQikVJW0 YgKgRWbxTjbeWitwFJm8NzDcS21GTC0rU94KGcuiyMOFj27szqA= =/u5Q -----END PGP SIGNATURE----- --g3RkK9jYN81zD2N+--