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 CIHdB/w7cl8pCAAA0tVLHw (envelope-from ) for ; Mon, 28 Sep 2020 19:39:40 +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 YLpzA/w7cl+vGQAAB5/wlQ (envelope-from ) for ; Mon, 28 Sep 2020 19:39:40 +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 A67879403C6 for ; Mon, 28 Sep 2020 19:39:39 +0000 (UTC) Received: from localhost ([::1]:46100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMyzq-0008Eg-HF for larch@yhetil.org; Mon, 28 Sep 2020 15:39:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMyzP-0008EX-E8 for guix-devel@gnu.org; Mon, 28 Sep 2020 15:39:11 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:34841) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMyzM-0002jj-3n for guix-devel@gnu.org; Mon, 28 Sep 2020 15:39:11 -0400 Received: by mail-wm1-x332.google.com with SMTP id y15so2333812wmi.0 for ; Mon, 28 Sep 2020 12:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-transfer-encoding; bh=FVcBd+0GRslLRUkeOjilui4opyHDzNZQdAVQNs/NYGQ=; b=KcdAJm4xOBOPoWO8dhOXG+Az2lChPzc/9fRBLPUqMPfG4covdk7tv4puQc50gb6sJF jQ6UCDhMITDkuJ6GmnEjT0seWHFZkNg4sPl7b8hNAFHWNrS3KWl8lpHkx5oU6JYJAsze 3vJv81wfDRkNS0zBWCuXvbBqdNDOEcbf+feIEGlti2Bv7Ia2mLqEGtoTgwl0wngqhfkI bjf1EVIlZLM/FKUyfKQHA8RZCuSxfmiTWpN6AtuRLFQ3EVADRSQznK9dWdcNi67DW3Wq 7wksVJ44HxkRWTB4jeWq6RGPAWihHubXEikl+V+s9VhYY3LHCU7YBsPGqV0a7Y84OrfK 9Mew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=FVcBd+0GRslLRUkeOjilui4opyHDzNZQdAVQNs/NYGQ=; b=A+PqZI2j+13f6w0fxcTTr53uxES/CmafojQ68wmZj0AV3DfcKLE6nx45BJ8guUq4oM /+T+ilQR9A/PDQuJIm9fD4FHb75EkiMencdjNpKE6k+6iLPmzFYQ/YB8/ilyHJ6iky7B 0BnJcOvzc7mhcnWl9cVTE4lbPgTSf+8VD8I1wuVPKyRU9xB4h/Vv273UKzMpPxUzarmk whrGB+HpgiyrwX5dM+ms5XbbBakmoe7YqCqOrr1Nj0wtMaKi5ALSa0FOuRg1WVLDJvNu h4MfEBxgdNMBFNlGwB26jUu12SQJTfe1S/Z42Ag0bQ3gFrXl55R2D1MNiwKhMEYkABR6 aPZg== X-Gm-Message-State: AOAM53356snd4jLe6baczdztIh66/YLmxA+NNWKr2QIUrbaTtV6xyxny 4BN2Ewgj6hN1da3ROnJF0rDkPcdkmz9v0A== X-Google-Smtp-Source: ABdhPJxEGYPpDWEKD8ITlPUEYcu2vnk9yFeSMlv5Unqdq7/U/KpQnYfaca+kM3698WPZ4kbqH5zGMw== X-Received: by 2002:a7b:cc09:: with SMTP id f9mr692260wmh.93.1601321945660; Mon, 28 Sep 2020 12:39:05 -0700 (PDT) Received: from pfiuh02 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id m10sm2436182wmi.9.2020.09.28.12.39.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 12:39:05 -0700 (PDT) From: zimoun To: guix-devel@gnu.org Subject: Rewriting inputs and =?utf-8?B?4oCZYXJndW1lbnRz4oCZ?= after patch #43578 References: <20200923161253.2378-1-ludo@gnu.org> Date: Mon, 28 Sep 2020 21:39:04 +0200 In-Reply-To: <20200923161253.2378-1-ludo@gnu.org> ("Ludovic =?utf-8?Q?Cour?= =?utf-8?Q?t=C3=A8s=22's?= message of "Wed, 23 Sep 2020 18:12:53 +0200") Message-ID: <87o8lp3d47.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 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=KcdAJm4x; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: hUnLhCOKl+Bf Dear, Let consider the package =E2=80=99emacs-magit=E2=80=99. It does not depend= on =E2=80=99emacs-minimal=E2=80=99 but instead the argument is replaced by =E2= =80=99emacs-no-x=E2=80=99, see:=20 --8<---------------cut here---------------start------------->8--- (build-system emacs-build-system) (arguments `(#:emacs ,emacs-no-x ;module support is required #:tests? #t --8<---------------cut here---------------end--------------->8--- which is for example confirmed by =E2=80=9Cguix graph =E2=80=93path=E2=80= =9D: --8<---------------cut here---------------start------------->8--- $ guix graph --path emacs-magit emacs-minimal guix graph: error: no path from 'emacs-magit@2.90.1-6.7f486d4' to 'emacs-mi= nimal@27.1' $ guix graph --path emacs-magit emacs-no-x emacs-magit@2.90.1-6.7f486d4 emacs-libgit@20200515-1.0ef8b13 emacs-no-x@27.1 --8<---------------cut here---------------end--------------->8--- Therefore, it is not possible to rewrite this =E2=80=9Cinputs=E2=80=9C (usi= ng the patch [1]), as the dry-run shows: --8<---------------cut here---------------start------------->8--- $ guix build emacs-magit --with-input=3Demacs-no-x=3Demacs-next -n substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following derivations would be built: /gnu/store/c7g5f6xgljj63n69dilvxmkgsdarflj2-emacs-magit-2.90.1-6.7f486d4= .drv /gnu/store/aanmy6ma51yc3ivfmzp8iakirmg2hclb-emacs-libgit-20200515-1.0ef8= b13.drv 43.2 MB would be downloaded: /gnu/store/bvhvqv99ylyam8gv77ipa9qrgr6659ly-emacs-no-x-27.1 /gnu/store/j5vhj85bn6adkmlnfc6w7rikss6753d3-emacs-libgit-20200515-1.0ef8= b13.tar.xz /gnu/store/0w02d2pxhjwfa6674fwq5asv6w7xdkrp-jsoncpp-1.9.2 /gnu/store/nlia3wcilwsdj8q883bgjmzirs6yl8z7-rhash-1.3.9 /gnu/store/89rj5fqcg48afgk99639ds602pgf92k4-cmake-minimal-3.16.5 /gnu/store/mhlxiw0fgv5mbqsml433f34349xdlmn3-module-import-compiled /gnu/store/gk7gh5ik9f4ng35k22pz49r75vkhcbk8-emacs-magit-2.90.1-6.7f486d4= -checkout --8<---------------cut here---------------end--------------->8--- And it is expected because =E2=80=99package-mapping=E2=80=99 only =E2=80=9C= rewrites=E2=80=9D the =E2=80=99inputs: --8<---------------cut here---------------start------------->8--- (inputs (map rewrite (package-inputs p))) (native-inputs (map rewrite (package-native-inputs p))) (propagated-inputs (map rewrite (package-propagated-inputs p)= )) (replacement (and=3D> (package-replacement p) replace)) --8<---------------cut here---------------end--------------->8--- Do I miss something? All the best, simon [1]