From mboxrd@z Thu Jan 1 00:00:00 1970 From: brettg@posteo.net Subject: Re: System-level inferiors. Date: Wed, 20 Nov 2019 02:35:45 +0100 Message-ID: <74f8a31d38f147ee3b923c8fdccc7ed8@posteo.net> References: <07a85a27c89f415d79aa1211f13966fd@posteo.net> <059f8c95fe21fd470431cf99da382605@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58361) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXEuY-0001co-E7 for help-guix@gnu.org; Tue, 19 Nov 2019 20:36:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXEuN-0005r7-6i for help-guix@gnu.org; Tue, 19 Nov 2019 20:36:00 -0500 Received: from mout02.posteo.de ([185.67.36.66]:38639) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iXEuL-0005o8-5Y for help-guix@gnu.org; Tue, 19 Nov 2019 20:35:51 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7B5FA2400FB for ; Wed, 20 Nov 2019 02:35:46 +0100 (CET) In-Reply-To: <059f8c95fe21fd470431cf99da382605@posteo.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix Cc: Help-Guix On 20.11.2019 02:29, brettg@posteo.net wrote: > On 19.11.2019 21:02, brettg@posteo.net wrote: >> Hey all, >>=20 >> I am experimenting with the inferior system a little bit. I am >> attempting to see if I can specify a specific version of the >> linux-libre kernel to be taken from an inferior and applied to my >> system configuration. >>=20 >> (define kernel-channel-inf >> ;; This is the old revision from which >> ;; we will obtain our desired kernel version. >> (list (channel >> (name 'guix) >> (url "https://git.savannah.gnu.org/git/guix.git") >> (commit >> "fd41243c819635795f4e4bdef1e2823db5234e24")))) >>=20 >> (define kernel-inferior-proc >> ;; An inferior representing `kernel-channel-inf'. >> (inferior-for-channels kernel-channel-inf)) >>=20 >> (operating-system >>=20 >> ... >>=20 >> (kernel (lookup-inferior-packages >> kernel-inferior-proc "linux-libre" "4.19.81")) >>=20 >> It took me some experimenting to come up with this, in that >> experimenting the channel revision was built and cached. However, when >> I run `guix system build config.scm` with the above code snippet, the >> process just hangs on >>=20 >> Updating channel 'guix' from Git repository at >> 'https://git.savannah.gnu.org/git/guix.git'... >>=20 >> I am not sure how to proceed to achieve what I am hoping for. Any=20 >> thoughts? >>=20 >> Brett Gilio >=20 > Update, I used guix time-machine to ensure that this specific build of > linux-libre 4.19.81 was available in the store, so now it is not > hanging: >=20 > Instead, it is telling me: >=20 > guix/gexp.scm:201:36: In procedure lookup-compiler: > In procedure struct_vtable: Wrong type argument in position 1 > (expecting struct): (# 7f13870f8900>) >=20 > Will keep investigating a way to do this. >=20 > Brett Gilio brettg@oryx ~/Repos/cfg/machines/oryx$ guix system build config.scm Updating channel 'guix' from Git repository at=20 'https://git.savannah.gnu.org/git/guix.git'... Backtrace: 18 (primitive-load=20 "/home/brettg/.config/guix/current/bin/guix") In guix/ui.scm: 1774:12 17 (run-guix-command _ . _) In ice-9/boot-9.scm: 829:9 16 (catch _ _ # =E2=80=A6) 829:9 15 (catch _ _ # =E2=80=A6) In guix/scripts/system.scm: 1216:8 14 (_) In guix/status.scm: 768:4 13 (call-with-status-report _ _) In guix/scripts/system.scm: 1072:4 12 (process-action _ _ _) In guix/store.scm: 623:10 11 (call-with-store _) 1834:24 10 (run-with-store # _ #= =20 _ # =E2=80=A6) In guix/scripts/system.scm: 778:2 9 (_ _) In gnu/services.scm: 320:2 8 (_ _) In gnu/system.scm: 469:4 7 (_ _) In guix/gexp.scm: 859:2 6 (_ _) 720:2 5 (_ _) In ./guix/monads.scm: 482:9 4 (_ _) In guix/gexp.scm: 590:13 3 (_ _) In guix/store.scm: 1692:13 2 (_ _) In guix/gexp.scm: 222:2 1 (lower-object (#) =E2=80=A6) 201:36 0 (lookup-compiler (#)) guix/gexp.scm:201:36: In procedure lookup-compiler: In procedure struct_vtable: Wrong type argument in position 1 (expecting=20 struct): (#)