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 GNjlIH3A1151GAAA0tVLHw (envelope-from ) for ; Wed, 03 Jun 2020 15:23:41 +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 8KQwHH3A117rGQAAbx9fmQ (envelope-from ) for ; Wed, 03 Jun 2020 15:23:41 +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 2E20C94036C for ; Wed, 3 Jun 2020 15:23:41 +0000 (UTC) Received: from localhost ([::1]:33124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgVEy-0002bT-3M for larch@yhetil.org; Wed, 03 Jun 2020 11:23:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgVEq-0002ZW-0n for help-guix@gnu.org; Wed, 03 Jun 2020 11:23:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43365) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgVEp-0000Sn-NK; Wed, 03 Jun 2020 11:23:31 -0400 Received: from ti0006q161-2604.bb.online.no ([84.202.68.75]:47134 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jgVEp-0005H8-3z; Wed, 03 Jun 2020 11:23:31 -0400 From: Marius Bakke To: Emmanuel Medernach , help-guix Subject: Re: Local definitions and Virtual machine image In-Reply-To: References: Date: Wed, 03 Jun 2020 17:23:28 +0200 Message-ID: <87k10ouqa7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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=none; dmarc=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: -3.11 X-TUID: ilEN4gs9elDp --=-=-= Content-Type: text/plain Emmanuel Medernach writes: > Hello Guixers ! > > I created an image with 'guix system vm-image' > which contains local defined packages. These > packages are present on the Virtual Machine > however they are not listed with 'guix package > --list-installed'. '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. > As I need to customize > LD_LIBRARY_PATH, I use "guix build" to list store > directories from package names but it tries > instead to recompile them even though they are > already installed. 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. > How to properly export local definitions in the > virtual machine image ? 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. :-) HTH, Marius --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7XwHAACgkQoqBt8qM6 VPq8ygf/Y3MSdD8+TVD+kbs38V6JO37kJkF+60StJEKVOvHpbTsGgI5hqmptXl+l XZDCgzg4MxrTqgBV2ob0zTRFOzEKDC3lgWHTRzgqshu9qbvANrbBwv1hfdbfjxhR 5QWuPdgkFN617GMNrWnqyrcC3e2wUTAs0KRMA5C7NvycFigFJX6vQ0DG/Iy/a01U iVzGRyFh8WiLvWFfEIxdUKl0rRWRb0n0J4/bd2+x+IjhKb1OrNYm3FbVQDskohoT punoOWrwaR8rb6TpkUXvP+c3WSl8MOqxBy2WEVxHapXLVHOzarxYNCsMZMgzY0Vy FFbWxW+R6wbL2clDhRiZ1MlTRE9fNQ== =oRCW -----END PGP SIGNATURE----- --=-=-=--