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 ms0.migadu.com with LMTPS id UHrBD0ZycGFaVAEAgWs5BA (envelope-from ) for ; Wed, 20 Oct 2021 21:47:18 +0200 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 WH1+C0ZycGGxZAAAB5/wlQ (envelope-from ) for ; Wed, 20 Oct 2021 19:47:18 +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 85D89E12C for ; Wed, 20 Oct 2021 21:47:17 +0200 (CEST) Received: from localhost ([::1]:59876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdHYS-00037g-MO for larch@yhetil.org; Wed, 20 Oct 2021 15:47:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdHY0-000374-Fv for guix-devel@gnu.org; Wed, 20 Oct 2021 15:46:48 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:40592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdHXy-0002kh-Kg for guix-devel@gnu.org; Wed, 20 Oct 2021 15:46:48 -0400 Received: by mail-wr1-x42b.google.com with SMTP id i12so931wrb.7 for ; Wed, 20 Oct 2021 12:46:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20210112.gappssmtp.com; s=20210112; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=JdyyeM5YXQoqIVdyczyMK8bHP2IP5q7DhGsrSCMWi/Y=; b=Vupb9ohWEV248rotveJdJolkYGrfeUasZM6QVQgJJc7Nh5De5TcLMdO9NSn3JG+TGV oGtbA+KMT8k5Knj0IVuO/+QoCJsR1p5fF4ecFSaNC82aqKxOuSaGvGaBIVtToA13thyA +uuYo5yxC0ipO9HEcor9PvbUaYdLiu4ccJ4h34Nga8ve8Y9BjdI+v5VxKq0ik0FmxjT6 9FNSZNPBGQsxiznHLJf/Zdrt7RyMDA8nDcyt6mOlZN2LXRv8blpElg9Bo4jGKbmNp/WL UkWTZf2D/8A4/nvb+HdrBapxpqjktPMzaBx7WZMnleB0Rrm7Ga5XIZ5mCiKZv8PuyyIp +xzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=JdyyeM5YXQoqIVdyczyMK8bHP2IP5q7DhGsrSCMWi/Y=; b=YLQDUNepXNu2W0OTRI7bI+pX6OSJHldhCiNkCwzL5pshBOKR6+Wh7h69QKe/5X6ld6 BJhbX98allDymiFu2Vk9H5xdvqh5r0tLXehhiYvaLI5oVJdzbVdt8jeJI44H5uCveBhZ DzAlQ8n+FPMXNGQtPZkv61BfgEPbp/UNssgvsTLWu4giGI3eZL2mvtXV20WKsfzja2XY rf6rEjHeATIHJYvNG2I+bDp3Q26SSbm5W4vnRvCnu/1nFlQNG5TA46+15Jnu8d1kipdj VMFZb0DAuFEPaQpKneYh7S8jekR7SOug6gnc2UIuDT/sfj7puFn+bIy5W/7Q0jIFd4Tf HH8g== X-Gm-Message-State: AOAM532p6eIoeopvOoFWYCchOTzkAq5KxG9p+0TONqpcNgvDfokkofZb deetWDqKXCIYKZNxtN2TqLsg/qlJwdGNdvpg X-Google-Smtp-Source: ABdhPJzHvGpxM1oWUhluGj+g3TTqiYorWEkWUH8XvDDtzD+KoPYYmgRRm4wfYiCk+mFhpGlrvuj/+w== X-Received: by 2002:a05:6000:18a3:: with SMTP id b3mr1574879wri.178.1634759205032; Wed, 20 Oct 2021 12:46:45 -0700 (PDT) Received: from xps13 (host-92-10-211-105.as13285.net. [92.10.211.105]) by smtp.gmail.com with ESMTPSA id o26sm5874865wmc.17.2021.10.20.12.46.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 12:46:44 -0700 (PDT) References: User-agent: mu4e 1.4.15; emacs 27.2 From: Phil To: zimoun Subject: Re: --with-source version not honored? In-reply-to: Message-ID: <87cznzbhss.fsf@beadling.co.uk> Date: Wed, 20 Oct 2021 20:46:43 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2a00:1450:4864:20::42b; envelope-from=phil@beadling.co.uk; helo=mail-wr1-x42b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634759237; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JdyyeM5YXQoqIVdyczyMK8bHP2IP5q7DhGsrSCMWi/Y=; b=HKKUuLFfRh8z1HCbCFuBYoPuhUzfJ6xWRYE6pr4B+Uz2+5v3NXfNMxcGhDz6g2RQLmHzix N/1eJcXwdb2UqMDulZzm0Rud6yG2FYJwadgTGipFn8e0Fy0cN+OEKXEQlWG64w8uDOQlQu /FBNw1xAvwa9azAzDYBnQQIxelF7T8AjwHydvxGAQ+WRCSV/86ZqWK6V859af8heCvxaZM GF4AKdrKOiJjd00ssdqNpziyzNEQ3wyDTQMAk4ohjqfYoyub9mek7ADs8cOwSYzlCpdbDD kmNJdTQHyv7jiGM5357xVrH2zEIcnDUoFrzsnet6eG7BGAc53px9OzjU+1tduQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634759237; a=rsa-sha256; cv=none; b=L+GoY+SyXHZWUmDAZdCLGFKAhbLlGtFGdeLaf1/W/br6NTWD+1zVPdfp0wJp1bN8nqDx87 oF5xKyW2g0zBk6hYZ6DUEQmAtWZhif+qY+Hcv0JX0+KZ5Pr6U/z1sWkp9CZK/RYJGw5NEu 9zIUC0fUgt768lGzlVSpY53m2QdAGM1U1IJECYMQOKu/2YjVAA6seQz9MEVN/eLlEyZ7Ck CNLHIqSU75sEsFFBbaKLZy/HxHwvoD5kWeQLSACp2VgjGle2iLjOUZvgDr3gPYQEGdQzQG A72qRKUfCMYcAVPr4kwROhqWIyfU+YfRVGe20E3Z5M66iWq81AUkOxC3pqvuTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=beadling-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=Vupb9ohW; dmarc=none; 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-Migadu-Spam-Score: -0.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=beadling-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=Vupb9ohW; dmarc=none; 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-Migadu-Queue-Id: 85D89E12C X-Spam-Score: -0.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: HZxfWUETleLF Hi zimoun writes: > It reminds me this thread: > > Thanks this is an interesting thread - I stumbled upon a quirk trying to find the right combination of switches. I found that if I do this (which I think is bad): guix environment --with-source=foobar@9.5.0=/path/to/package some-package-that-depends-on-foobar --ad-hoc foobar This gives me the warning that with-source will have no effect on some-package-that-depends-on-foobar, but that's not strictly true here. In this case the depending package's dependencies are installed into the environment including the original version of foobar (9.0.1) first, but this is then overwritten by foobar@9.0.5 - I can see files from both packages under the site-packages for foobar. Weirdly this is almost what I was trying to do: "Install some-package-that-depends-on-foobar, but rebuilt with the version of foobar from with-source." However the reason it works is probably not intended behavior. I couldn't work out an incantation that provided this facility properly - my best guess was: guix environment --with-source=foobar@9.5.0=/path/to/package --with-inputs=foobar=foobar@9.5.0 some-package-that-depends-on-foobar Which returns that it can't find foobar@9.5.0. I figure at this point I might have more luck if I drop into Guile to do this, but it's always a win when I can do it as a one-liner in shell. Any ideas if I can create a new package with --with-source and then substitute it in the same command for an input of another package?