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 +K3HMg5xR1/tLgAA0tVLHw (envelope-from ) for ; Thu, 27 Aug 2020 08:38:38 +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 8HGILg5xR1/XGAAAbx9fmQ (envelope-from ) for ; Thu, 27 Aug 2020 08:38:38 +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 37F5D94053E for ; Thu, 27 Aug 2020 08:38:38 +0000 (UTC) Received: from localhost ([::1]:59702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBDQa-00062W-Qe for larch@yhetil.org; Thu, 27 Aug 2020 04:38:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBDQT-00062C-ES for help-guix@gnu.org; Thu, 27 Aug 2020 04:38:29 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:36403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBDQR-00067d-MB for help-guix@gnu.org; Thu, 27 Aug 2020 04:38:28 -0400 Received: by mail-wr1-x434.google.com with SMTP id x7so4532125wro.3 for ; Thu, 27 Aug 2020 01:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=aVPmr5FfXFiguX9pF5Hws+Wc3COIWZEzkJXsSyb9zYU=; b=k3mX9c/BAW2182OAvZwcvSUwfok+f9NtKsBIUP7X9Tusjtkf5a59XoDPL0DSek38wB A2494y4pVt7OI5jBUy7Bf0K8qYveQLTzj1BXK9F4/oXYp0fTF5nb5s6qs8i2jFKfbj81 1FUuVQFIlnl6rpcjUFfOlttegpDeADyRloIA+nVJEfcRY7YGpVTfDjxG/xgC+WfeOp4e y/ICe9IQH59fp/MxRTARWHreLHZ+JV15pr1D4r/02pMqYO251DSHi1BvsqurxEME5Vp4 8zG4+VVFjrxz1oY1RWrYrlsW5dpT90NXEuo77RJL9GySw+OpGoPlT3oRJaiLCAUXW6dw D9Gw== 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:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=aVPmr5FfXFiguX9pF5Hws+Wc3COIWZEzkJXsSyb9zYU=; b=qwqzrtxByjY3YSM3Yyswa+VfgcDn/uWPkJUW/gtju5EnAIbLaeePl7moP2tu8Y84ee ZkGt0dQLin+ZiTybfAvxISqG+5jkbe/kWJUxjnc89Iaw4xs/f3Pabg+kHpeGm/TSvRhB XvVuwX2P0lmY4UOBxD+PL/tUJ0GwcMfRlz/DqiVVTOTo0nP8G06ds2SRq7AhxCuvS1l+ AGTNra7zITOn+y6BKGe+0hW5vrbELWvl7t6zWufB1LPUvMP18lsqvfJ4rx1XGnxAHBeZ QNDoN+TwwJTJKsUwSQCJtwApMyA7OIMd/Jq7vdSy7GMoutKRPIC0UXW4sJzViRoDCmUr rYyQ== X-Gm-Message-State: AOAM531hamhjB9Cy8fqNJYGTz1+IUSmgbeHa2owsEIl3G5GaBfmtytxC 1BdDQrHWGdQQvj3UFxI7cHpVWSSTL5I= X-Google-Smtp-Source: ABdhPJxSopfi/nR/wIMrMMl7fT4P+BSk86VkIvprt3DQm2TDN/Blmx0Lpq+Qm70bsmALsyZwuewp5Q== X-Received: by 2002:adf:f98a:: with SMTP id f10mr18722378wrr.420.1598517502747; Thu, 27 Aug 2020 01:38:22 -0700 (PDT) Received: from lili (57.246.195.77.rev.sfr.net. [77.195.246.57]) by smtp.gmail.com with ESMTPSA id x2sm4831129wrg.73.2020.08.27.01.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 01:38:22 -0700 (PDT) From: zimoun To: Jesse Gibbons , help-guix@gnu.org Subject: Re: Am I using --with-source improperly? In-Reply-To: <15c6eb6d-fb0f-dfc4-c8a2-07fff50c12c8@gmail.com> References: <15c6eb6d-fb0f-dfc4-c8a2-07fff50c12c8@gmail.com> Date: Thu, 27 Aug 2020 10:38:20 +0200 Message-ID: <86o8mweb5v.fsf@gmail.com> 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::434; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x434.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: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=k3mX9c/B; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: 959dQLiI/FnY Dear, On Wed, 26 Aug 2020 at 20:34, Jesse Gibbons wrote: > I asked about this on the IRC but had no luck. > > IIUC --with-source=3Dpackage=3Dsource should set the source for "package"= to=20 > "source" when something being built depends on "package". For example,=20 > `guix build --with-soure=3Dpython2=3D/tmp/python2 lci` should build the l= ci=20 > with the python2 source in /tmp/python2, and should work because python2= =20 > is a dependency of lci. However, when I try that, I get the message=20 > "guix build: warning: transformation 'with-source' had no effect on=20 > lci@0.11.2". Am I using the --with-source option incorrectly, or is this= =20 > some sort of bug? I replace "--with-source=3Dpython2=3D/tmp/python2" with= =20 > "--with-source=3Dlci=3D/tmp/python2" when /tmp/python2 doesn't even exist= ,=20 > and it gives me the result I would expect: 'guix build: error: lstat: No= =20 > such file or directory: "/tmp/python2"' > > Should I file this as a bug report? Instead, maybe =E2=80=9C--with-source=3Dpython-2=3D/tmp/python2=E2=80=9C? BTW, note that for more complex examples, the complete graph of dependencies would not be rewritten (if I read correctly). That=E2=80=99s = the job of =E2=80=98package-with-explicit-python=E2=80=99 and especially =E2=80=98package-with-python2=E2=80=99. Hope that helps. simon