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 eFRvN+zyBV9wDAAA0tVLHw (envelope-from ) for ; Wed, 08 Jul 2020 16:23:08 +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 oAoxM+zyBV+FKQAAbx9fmQ (envelope-from ) for ; Wed, 08 Jul 2020 16:23:08 +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 3E5D29403C5 for ; Wed, 8 Jul 2020 16:23:08 +0000 (UTC) Received: from localhost ([::1]:42328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtCqf-0005Tp-LY for larch@yhetil.org; Wed, 08 Jul 2020 12:23:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtCqc-0005Ti-Dr for guix-patches@gnu.org; Wed, 08 Jul 2020 12:23:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtCqc-00051u-5J for guix-patches@gnu.org; Wed, 08 Jul 2020 12:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jtCqb-000860-Ui for guix-patches@gnu.org; Wed, 08 Jul 2020 12:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42193] [WIP 2/6] services: Add 'kernel-profile-service-type'. Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Jul 2020 16:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42193 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: "pelzflorian (Florian Pelz)" Cc: 42193@debbugs.gnu.org Received: via spool by 42193-submit@debbugs.gnu.org id=B42193.159422533631061 (code B ref 42193); Wed, 08 Jul 2020 16:23:01 +0000 Received: (at 42193) by debbugs.gnu.org; 8 Jul 2020 16:22:16 +0000 Received: from localhost ([127.0.0.1]:38969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtCps-00084v-3Q for submit@debbugs.gnu.org; Wed, 08 Jul 2020 12:22:16 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:43185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtCpp-00084g-Mj for 42193@debbugs.gnu.org; Wed, 08 Jul 2020 12:22:14 -0400 Received: from webmail.gandi.net (webmail19.sd4.0x35.net [10.200.201.19]) (Authenticated sender: brice@waegenei.re) by relay8-d.mail.gandi.net (Postfix) with ESMTPA id 075B11BF20D; Wed, 8 Jul 2020 16:22:06 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 08 Jul 2020 16:22:06 +0000 From: Brice Waegeneire In-Reply-To: <20200708112947.i4iaayf45y5jxoti@pelzflorian.localdomain> References: <20200704185234.12571-1-brice@waegenei.re> <20200704185431.13739-3-brice@waegenei.re> <20200708112947.i4iaayf45y5jxoti@pelzflorian.localdomain> Message-ID: <934d7c4429a5e64e12af5928ddf10b0d@waegenei.re> X-Sender: brice@waegenei.re User-Agent: Roundcube Webmail/1.3.13 X-Spam-Score: -0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.2 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: 2Vn7/Bj22wzS On 2020-07-08 11:29, pelzflorian (Florian Pelz) wrote: > Thank you for your work! Note that it's not finished yet. > After I apply this kernel profile patch, I get an error: > > florian@florianmacbook ~/git/guix [env]$ ./pre-inst-env guix system > disk-image --file-system-type=iso9660 gnu/system/install.scm > substitute: Liste der Substitute von „https://ci.guix.gnu.org“ wird > aktualisiert … 100.0% > The following derivations will be built: > /gnu/store/l51h17zylvjmapvcpdmmqmvrylv8b2cb-iso9660-image.drv > /gnu/store/mhdkqnh4iri5rk1ayqd3xlw04q86zj29-grub.cfg.drv > /gnu/store/xvgn60irpzzdwvk30lqpsj2hh81h8jyh-system.drv > /gnu/store/6y2r0ab5jcflbajd6843v9g1j0v9xrzj-gc-roots.drv > /gnu/store/156m13243bcn2429swq8brp2qmfifi3b-system.drv > building /gnu/store/156m13243bcn2429swq8brp2qmfifi3b-system.drv... > |builder for `/gnu/store/156m13243bcn2429swq8brp2qmfifi3b-system.drv' > failed with exit code 1 > build of /gnu/store/156m13243bcn2429swq8brp2qmfifi3b-system.drv failed > View build log at > '/var/log/guix/drvs/15/6m13243bcn2429swq8brp2qmfifi3b-system.drv.bz2'. > cannot build derivation > `/gnu/store/6y2r0ab5jcflbajd6843v9g1j0v9xrzj-gc-roots.drv': 1 > dependencies couldn't be built > cannot build derivation > `/gnu/store/xvgn60irpzzdwvk30lqpsj2hh81h8jyh-system.drv': 1 > dependencies couldn't be built > cannot build derivation > `/gnu/store/l51h17zylvjmapvcpdmmqmvrylv8b2cb-iso9660-image.drv': 1 > dependencies couldn't be built > guix system: error: build of > `/gnu/store/l51h17zylvjmapvcpdmmqmvrylv8b2cb-iso9660-image.drv' failed > florian@florianmacbook ~/git/guix [env]$ bzcat > /var/log/guix/drvs/15/6m13243bcn2429swq8brp2qmfifi3b-system.drv.bz2 > Backtrace: > 1 (primitive-load "/gnu/store/59nx7bbflcqzavwsjj3wkq3lwfb?") > 0 (symlink "/gnu/store/86xgvarqwir47c16x6crx0jra5dgzr62-?" > ?) > > ERROR: In procedure symlink: > In procedure symlink: File exists > > > I have no idea where this comes from but I hope you can reproduce the > error. Unfortunately I can't, it build successfully for me when applied on top of 6f3ede9ae2b2268181ebc0ca3764d865bd06bd63. You probably just need to clean your Guix repository and rebuild it from scratch > In general, I would be happy to use the kernel module configuration > service for replacing the uvesafb-service-type by something like > > (simple-service 'uvesafb-module > kernel-module-configuration-service-type > (list (kernel-module > (name "uvesafb") > (options > (list #~(string-append "v86d=" #$v86d > "/sbin/v86d") > "mode_option=1024x768\n")))))))) I think it should work without gexp/ungexp and the "\n". > Even better would be if it were possible to detect the resolution to > use for uvesafb at runtime before the module is loaded. Is it > possible to execute as root at runtime before modprobe a script like > testvbe.scm attached to the first message from > to compute the mode_option to > use? AFAIU it's not possible because service extensions are generated at build time, not run time so you can't extend KMCS with a value generated when your service is executed. It is a limitation of the service extension paradigm. A kind of dirty way to achieve what you want would be for KMCS' options field to accept an arbitrary configuration path that will be symlinked to, like “(options "/var/run/uvesafb/uvesafb.conf")”. That way from uvesafb service you generate that modprobe configuration file at run time (before KMCS) and so when KMCS run modprobe it's direcotry configuration contains a symlink named "uvesafb.conf" which point to "/var/run/uvesafb/uvesafb.conf". But it doesn't seems Guixy to me. - Brice