From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wOeyHZFxbl9mNAAA0tVLHw (envelope-from ) for ; Fri, 25 Sep 2020 22:39:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WG/TGZFxbl/7SQAA1q6Kng (envelope-from ) for ; Fri, 25 Sep 2020 22:39:13 +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 A92449402AC for ; Fri, 25 Sep 2020 22:39:12 +0000 (UTC) Received: from localhost ([::1]:36388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLwMw-0001ix-0s for larch@yhetil.org; Fri, 25 Sep 2020 18:39:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLwMo-0001hV-I8 for guix-patches@gnu.org; Fri, 25 Sep 2020 18:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLwMo-0002VG-3Z for guix-patches@gnu.org; Fri, 25 Sep 2020 18:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLwMo-0003Yt-0K for guix-patches@gnu.org; Fri, 25 Sep 2020 18:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43578] [PATCH 0/4] Rewriting implicit inputs with 'package-input-rewriting' & co. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Sep 2020 22:39:01 +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 Received: via spool by 43578-submit@debbugs.gnu.org id=B43578.160107349513639 (code B ref 43578); Fri, 25 Sep 2020 22:39:01 +0000 Received: (at 43578) by debbugs.gnu.org; 25 Sep 2020 22:38:15 +0000 Received: from localhost ([127.0.0.1]:45474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLwM2-0003Xv-Nx for submit@debbugs.gnu.org; Fri, 25 Sep 2020 18:38:14 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLwLz-0003Xe-H8 for 43578@debbugs.gnu.org; Fri, 25 Sep 2020 18:38:13 -0400 Received: by mail-wm1-f65.google.com with SMTP id x23so788775wmi.3 for <43578@debbugs.gnu.org>; Fri, 25 Sep 2020 15:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=sotWYa/FgOmjmQqJyrloJF0CD/5nbk+2icWXZFoSDEQ=; b=DZB9LltwqPgb4JIsBc0YVanhvZPg94Tp9GfM8d3TGLW06nPDAwhW77a4l7kB13L2R3 6vscs1fkxqi6MEZe3/BlAfRbhtSG7zf+uEbrWmDpa5hejBpwxmkrkMdXI2/aWeO5kSSF FP8QiB5oG6ZhwasOHmjgXQUZbxdbKAJMzKm+flt8SwE7i/LZiZZYjkjg1AdBMCl/cQ0z dRUFzTKKQcakO7AVkAPANwiuWy9RfA3VAIWM83lQiKUIbsXWGCBtu0C+HmadF03vc7ta clcAj+NSwbZpTtK8Enei3Iw6ilmLlB6zjVTc+m9wfVOWH3Te8b3aDBOLCdfI75JVN23e KqAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=sotWYa/FgOmjmQqJyrloJF0CD/5nbk+2icWXZFoSDEQ=; b=XZxdLom0fvJCdhNLK3qXH5yQJZY0FpzaLuyhP+8MkjbSporOBmcii0MJpga36vAEAJ S0k4Dm9UgvUC96+dexkOHiRz9MEofr8REqY7t39DqSuzUSGLk0vd1sEyXIoCX3M/9HfL 1YXj/kXMOCgYg6xUW/lF0h50U7lLbFBccoQ4vww7OhlNRvSSjTCgcThCLRebvjyCUZcf yaeztdMsBJ6sPIvgeQXjrtjod19ltXLbMWF54vqA7lFfj49TO9pszQLFexdIfAnzTpjW /ReHbxoNda04MK32epOxjCGPZJ3UOYHMCPLMVlhEO7z9Oe8OLYX0B4pC1eroMphbxPs5 aXHQ== X-Gm-Message-State: AOAM530dMXZ6Bxbqq6ukeWWd5gReGbOuplAWABaCUTgckpWZwHX34ZJO Y0ipYPuuzBhhid5UYi83c3DJRq7+HQo= X-Google-Smtp-Source: ABdhPJzNPcCbU8JioEp3cRDqfLn/jZ37XDpKMX6QJHT44xQoln+iuZ/QF/EbG4S5oYSGhziKLYfucw== X-Received: by 2002:a7b:cb82:: with SMTP id m2mr790038wmi.56.1601073485181; Fri, 25 Sep 2020 15:38:05 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id x16sm4158126wrq.62.2020.09.25.15.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 15:38:04 -0700 (PDT) From: zimoun References: <20200923161253.2378-1-ludo@gnu.org> Date: Sat, 26 Sep 2020 00:38:03 +0200 In-Reply-To: <20200923161253.2378-1-ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 23 Sep 2020 18:12:53 +0200") Message-ID: <86eemptrck.fsf@gmail.com> 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: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=DZB9Lltw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 0.09 X-TUID: 3Jdxv9Sfhp6w Hi Ludo, On Wed, 23 Sep 2020 at 18:12, 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. Maybe I am doing wrong and I miss something. For example, I want to build the package =E2=80=99emacs-helm=E2=80=99 =E2= =80=93which does not (directly) depends on the package =E2=80=99emacs=E2=80=99=E2=80=93 using th= e package =E2=80=99emacs-next=E2=80=99 (changing the Emacs VM from 27 to 28 in this c= ase). --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build emacs emacs-next /gnu/store/7kr0pg7gwhc31q4iq5vbnm5n99srhp84-emacs-next-28.0.50.1-0.2ea3466 /gnu/store/q3c6y4ccj3li5gfdcbyz24n466fnipp1-emacs-27.1 $ cat /tmp/manif.scm (specifications->manifest '("emacs-helm")) $ ./pre-inst-env guix build -m /tmp/manif.scm /gnu/store/ka9lph0hpzaky0sa52zf09469apkhb68-emacs-helm-3.6.5 $ ./pre-inst-env guix build -m /tmp/manif.scm --with-input=3Demacs=3Demacs-= next /gnu/store/ka9lph0hpzaky0sa52zf09469apkhb68-emacs-helm-3.6.5 --8<---------------cut here---------------end--------------->8--- I miss why the hash is the same. I was expecting a different one, as with your =E2=80=99hello=E2=80=99 example (that I reproduce exactly). What= do I miss? Note it is the same with: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build emacs-helm --with-input=3Demacs=3Demacs-next /gnu/store/ka9lph0hpzaky0sa52zf09469apkhb68-emacs-helm-3.6.5 --8<---------------cut here---------------end--------------->8--- Well, I am trying to provide an example to [1] because your patch set supersedes it, somehow. [1] (I have not yet tried the build transformation at the manifest level.) All the best, simon