From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: Best-practice to "develop" a system-config / service? Date: Fri, 10 Nov 2017 01:15:19 +0100 Message-ID: <87wp2zf0q0.fsf@fastmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCwym-0000pA-AR for guix-devel@gnu.org; Thu, 09 Nov 2017 19:15:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCwyi-0003DP-81 for guix-devel@gnu.org; Thu, 09 Nov 2017 19:15:28 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:33993) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCwyh-0003C0-Lr for guix-devel@gnu.org; Thu, 09 Nov 2017 19:15:24 -0500 In-Reply-To: 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel , guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hartmut Goebel writes: > Hi, > > TL;DR: How do I get my in-development version of guix into the VM build > with this version? > > I made KDE Plasma start up in a VM by adding tons of packages to the > system declaration (to be on the save side). Now for finishing and > providing a nice service declaration I need to strip this list of > packages down to the bare minimum. > > Since a vm (sharing the host store) is unacceptable sloooooow, I've > build a vm-image using my development environment ("./pre-inst-env guix > system vm-image =E2=80=A6"). Now within the VM-image there is a different > version of guix installed than the in-development one I used for > building the VM. Of course the former one does not know any of the > packages I've just added. So I can't not just run "guix system > reconfigure =E2=80=A6". > > After some luckless tries I assume the easiest solution would be to get > my in-development version of guix into the VM. How to achieve this? > > > What I've tried: > > 0) Using a VM sharing the host store: Here starting Plasma takes 2 > minutes, which is not acceptable for series of tests. > > 1) My first idea was to share my development directory with the VM and > run "./pre-inst-env guix system reconfigure =E2=80=A6" from within the VM= . This > failed with > > =C2=A0 ./pre-inst-env: =E2=80=A6/scripts/guix: /gnu/store/=E2=80=A6-profi= le/bin/guile: bad > interpreter: No such file or directory Running `./configure` again inside the VM should make it pick up available versions of Guile and other dependencies. Will that work? Another approach you might find useful is writing a "system test" that starts a Plasma desktop. Look in (gnu tests) for inspiration. This has the added benefit that we will notice early if KDE breaks. Hope this helps! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAloE75cACgkQoqBt8qM6 VPqtHwf+NkQVMzRDYHrcDTa+lUs8TeQqA757HCQ31Tbp8uTK4NHO9KKJqWB4P93m Ju5XeG6HrP39n0yvwN5ndNHtTZqRi4ZwmF3teQ7nRf/kKhqrxRJkEqLlHRKpJHmn xFLP2bu4MfW90/vNklwzioVHRcMZ1Qgo7bN9PVuwDH/FASM0PmbudFeANat/bd2L LqGDRQVomBKQTOtBV7g9ICIjvZjMdm6m7Pri7oR/IijnRbMvPwSUQp4AEcDVz4F6 l4U4R1S1HZx8uMJie7DCktfBI+mOMv+b1MPmlN6glAKkZdcStjb5CuhJ31QsIRR9 xe9cIFR3q6Q5WqEe+iV5F3aqLI1Qlg== =Wzfd -----END PGP SIGNATURE----- --=-=-=--