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 2H2mDbVc2l4JbAAA0tVLHw (envelope-from ) for ; Fri, 05 Jun 2020 14:54:45 +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 6DFpCbVc2l6xcwAAbx9fmQ (envelope-from ) for ; Fri, 05 Jun 2020 14:54:45 +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 B44AE9403EC for ; Fri, 5 Jun 2020 14:54:44 +0000 (UTC) Received: from localhost ([::1]:56946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhDk3-0001aG-CB for larch@yhetil.org; Fri, 05 Jun 2020 10:54:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhDjw-0001a0-Aq for help-guix@gnu.org; Fri, 05 Jun 2020 10:54:36 -0400 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:39983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhDjv-00073o-Hb for help-guix@gnu.org; Fri, 05 Jun 2020 10:54:36 -0400 Received: by mail-lj1-x22c.google.com with SMTP id n23so12103164ljh.7 for ; Fri, 05 Jun 2020 07:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=jYQXbDHcei6f9M+oeVBJbUbYvXb58tnLgWTvmj215fs=; b=sfd3eicWzVebtBGemv386jAEEpshGqBoYNZ1cpjA+sG6m9ehZrNSUjvi/4R295++Pj NdOiwUhfGGXMACg5ULQ0xSOcgbuyZLLMPTv6vVnasEcG4dHShX3rVAlNV9RVobb12T9z 5YMe4Bs+Aa457AYAvGbTAmlfo5nY3fGF9KidhKL0H/00cIoQvAmCGUYo6Ta+7UCQGrOe 29ajlchti6E2CplmvV2z91hI0JGfEUPSpVEpuuaG/6uJXW8rypM+xbCxYO87A2TsJTH+ 3erRT4RNt3wXELIHVKTe279uONSc6pgCJCclgTqTGKw9Y54uw81jnk4ip5o1eLfyDe5k fhXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=jYQXbDHcei6f9M+oeVBJbUbYvXb58tnLgWTvmj215fs=; b=tEvEB1tJhv+/z5ZOkM/Tc6N9luGOhGzBdQfRMIND1v2jhrJbDBb5zybiA0nFh590G1 ZEiHHJyTy+Zrui3WWnvar7JHiNSxt17WUbxzHFS7lpHccJzsWd0euRUX1ZrnDAHC/HaQ qtoykpNtGr4HBRuZyKGWxcOy9gGk/aIlmAKF/vQybPOaV6f0Cu5IdHwX4PrBZC7h7FEo I1DZXVx3Ya1eBqM2J1nvkMYO5RRW4jmeQnjBGoJ9NfHp18Bh0b5Q8sMEoBg9bP/Rjdit hODKX1cPEZqgrV1a5YS/1uyrkiHhOE9kHmV7qRWu12Xo18w1+62lPtec3bzGggZ1dUTR P14Q== X-Gm-Message-State: AOAM532YjsLFMmseY6iohxQyjft6HF5+DHN6IfU50vp8SK6OhWQ4H1/q VhL0HxJ16kAe6hqI5SzxkWbWKjwcl3TyLCL6OYBKfvGifzY= X-Google-Smtp-Source: ABdhPJzS1haYp0pDN0c5uS6W7VpM7eaXIKwxqKLJronCj0zFw68eVnbZnRt2WuFAQVm0BCPknLe9pFF2Z3IDtPJgNqg= X-Received: by 2002:a05:651c:512:: with SMTP id o18mr5316071ljp.226.1591368872639; Fri, 05 Jun 2020 07:54:32 -0700 (PDT) MIME-Version: 1.0 References: <87k10ouqa7.fsf@gnu.org> In-Reply-To: <87k10ouqa7.fsf@gnu.org> From: Emmanuel Medernach Date: Fri, 5 Jun 2020 16:54:20 +0200 Message-ID: Subject: Re: Local definitions and Virtual machine image To: help-guix Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=emmanuel.medernach@gmail.com; helo=mail-lj1-x22c.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=sfd3eicW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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.09 X-TUID: dbUqEwaRCraE On Wed, Jun 3, 2020 at 5:23 PM Marius Bakke wrote: > > 'guix package -I' only lists packages that are installed to the user > profile. Use 'guix package -p /run/current-system/profile -I' to see > system-installed packages. > > Thanks it works > The reason 'guix build foo' gives a different result is because you have > not run 'guix pull', so you are using the "guix snapshot" from > gnu/packages/package-management.scm, which is on a fixed commit. > > Whereas when you built the VM, you were likely using a newer version of > Guix. > > I pulled the same commit on the VM that the one obtained with "guix describe" but it still recompiles my local packages with "guix build". Did I forget something ? > There are a couple of ways around this. One is to run 'make > update-guix-package' in the Guix source tree to update the Guix > snapshot, and use './pre-inst-env' when generating the VM. It requires > a Guix development setup though. > > Another is to look at the commit that was used to generate the VM in > /run/current-system/provenance and run 'guix pull --commit=that-commit'. > > Perhaps 'guix system vm-image' could learn a '--update-guix-snapshot' to > automatically update the "system guix". Someone would have to implement > it first though. :-) > > Ok, Thanks for your help Best regards, Emmanuel