From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Package transformations Date: Sun, 21 Feb 2016 22:35:17 +0100 Message-ID: <87oab9u4q2.fsf@gnu.org> References: <87egcwaiwm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXbf1-00039N-UY for guix-devel@gnu.org; Sun, 21 Feb 2016 16:35:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXbey-0000fQ-Nm for guix-devel@gnu.org; Sun, 21 Feb 2016 16:35:23 -0500 In-Reply-To: (Ricardo Wurmus's message of "Thu, 18 Feb 2016 14:27:59 +0100") 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: guix-devel@gnu.org Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: > >> I=E2=80=99ve pushed my =E2=80=9Ctrain hacks=E2=80=9D, which are a contin= uation of refactoring >> work I had done in December (ca. 64ec0e2): >> >> =E2=80=A2 =E2=80=98guix build=E2=80=99 has a new =E2=80=98--with-input= =E2=80=99 option to rewrite the >> dependency graph so you can run: >> >> guix build guix --with-input=3Dguile=3Dguile-next >> >> and guess what it does. :-) >> >> However, it only works for explicit inputs. > > What does it mean that it only works for *explicit* inputs? Does this > mean that default inputs added by the build system (e.g. GCC) cannot be > replaced? Exactly. Eventually we should permit it as well but as you know, it=E2=80=99s curren= tly less convenient to fiddle with implicit inputs than with explicit inputs (see =E2=80=98package-with-explicit-inputs=E2=80=99 and co.) We should imp= rove the API in this regard. > Looking at the code it seems that it is operating on labels. No, =E2=80=98transform-package-inputs=E2=80=99 in (guix scripts build) matc= hes packages by name, not by label, for the reasons you gave. Maybe the doc should be clarified? Thanks for your feedback! Ludo=E2=80=99.