From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 12 12:33:56 2018 Received: (at submit) by debbugs.gnu.org; 12 Dec 2018 17:33:57 +0000 Received: from localhost ([127.0.0.1]:45468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gX8OQ-0006Ag-RG for submit@debbugs.gnu.org; Wed, 12 Dec 2018 12:33:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gX8OO-0006AS-It for submit@debbugs.gnu.org; Wed, 12 Dec 2018 12:33:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX8OI-0003bF-2q for submit@debbugs.gnu.org; Wed, 12 Dec 2018 12:33:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_40, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, UNPARSEABLE_RELAY autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41079) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gX8OH-0003b0-VT for submit@debbugs.gnu.org; Wed, 12 Dec 2018 12:33:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX8OF-00019Z-8M for bug-guix@gnu.org; Wed, 12 Dec 2018 12:33:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX8OB-0003X9-0g for bug-guix@gnu.org; Wed, 12 Dec 2018 12:33:43 -0500 Received: from aibo.runbox.com ([91.220.196.211]:38082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX8OA-0003VX-Kd for bug-guix@gnu.org; Wed, 12 Dec 2018 12:33:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Message-Id:Date:Subject:To:From:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=8e8irjQ8XNGQyK2S7tH57P9HkT21Pd+h/6gq4iUs2Nk=; b=CctsgEjgch7TqzjBNfiC5oBPLF u+qsK+u2LXdB1wgFWzqFvUkLvGXwoDUi1O3m+InB3rcQkGCOXWJzw3Fphf07Kb6/CAhz4aZkUM2n2 QZ8y5HC9CnOVYxjv9DRJqu6jEHIy1F+0YsqVAbiYoOwruaD3eclD2bAiLeAE0mo5gU68iFnZnHfsA rXzRpljDz5hJHW8AdQg/4vdfdhWiI06y1SnmX9em70tE6uGYHB0zYgocvT2f/jS6dbLgeLbcRFK1n tgomR5DN4lgKlzJ0yseN0EqpyCxzGeGP658p06UrVmPMZDRP7gjenw6NQB4vn8By6s9MJqmxA03s/ VbVoCr9g==; Received: from [10.9.9.128] (helo=rmmprod06.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1gX8O7-0001rb-Jx for bug-guix@gnu.org; Wed, 12 Dec 2018 18:33:35 +0100 Received: from mail by rmmprod06.runbox with local (Exim 4.86_2) (envelope-from ) id 1gX8O7-0001zO-Ig for bug-guix@gnu.org; Wed, 12 Dec 2018 18:33:35 +0100 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [Authenticated user (850733)] by runbox.com with http (RMM6); for ; Wed, 12 Dec 2018 17:33:35 GMT From: To: "bug-guix" Subject: Bug: Unable to use an inferior package as a kernel in the system configuration Date: Wed, 12 Dec 2018 17:33:35 +0000 (GMT) X-Mailer: RMM6 Message-Id: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) When putting an inferior package in the 'kernel' field of the system config= uration, Guix fails with ``` gnu/system.scm:909:35: In procedure kernel->boot-label: In procedure package-name: Wrong type argument: # ``` The issue is very simple: The function that creates the text for a boot ent= ry (`kernel->boot-label`) gets the name and version of the kernel using the= functions `package-name` and `package-version`, which are incompatible wit= h inferior packages. The `(guix inferior)` module provides equivalent functions for inferior pac= kages: `inferior-package-name` and `inferior-package-version`. Here's a pat= ch that demonstrates which part needs to be changed: ``` diff --git a/gnu/system.scm b/gnu/system.scm index a5a8f40d6..3c3fe94ad 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -21,6 +21,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu system) + #:use-module (guix inferior) #:use-module (guix store) #:use-module (guix monads) #:use-module (guix gexp) @@ -906,8 +907,8 @@ listed in OS. The C library expects to find it under (define (kernel->boot-label kernel) "Return a label for the bootloader menu entry that boots KERNEL." (string-append "GNU with " - (string-titlecase (package-name kernel)) " " - (package-version kernel) + (string-titlecase (inferior-package-name kernel)) " " + (inferior-package-version kernel) " (beta)")) (define (store-file-system file-systems) ``` I tested this and it made inferior-packages able to be used as a kernel - I= 'm running that kernel on my system now, I wrote a guide on how to do that = if anyone's interested, which includes an example of how to add it to your = system configuration: http://miha.info/2018-Dec-09/how-to-add-a-modified-ke= rnel-built-using-a-previous-guix-commit-to-your-system-configuration/ I assume the solution is to modify the `kernel->boot-label` function to che= ck if the package passed to it is an inferior package, and use the compatib= le functions to get the name and version of the package depending on if it'= s inferior or not, however I don't know scheme/guile well enough to do this= , and I don't know if this is the correct solution to do, so it would be gr= eat if someone could else could create a patch that fixes this.= From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 09 05:58:21 2019 Received: (at 33719-done) by debbugs.gnu.org; 9 Feb 2019 10:58:21 +0000 Received: from localhost ([127.0.0.1]:40497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsQKz-0003yY-AQ for submit@debbugs.gnu.org; Sat, 09 Feb 2019 05:58:21 -0500 Received: from aibo.runbox.com ([91.220.196.211]:58184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsQKw-0003yN-9z for 33719-done@debbugs.gnu.org; Sat, 09 Feb 2019 05:58:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Message-Id:Date:Subject:To:From:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=9jma/ZGUrLN7mywzur9bSY6z8hIJKCZW/O68Fw6+AUA=; b=j59BAhYH4sMOUMp/41BVkBWXkP gIfTa42LWtxKy8EylDIntqYREvZNQXlr6lmkaaQRPPe9UJ0wQSXcM3AS3lSCbQTiyxYnFVUxVchgj +LSCQ0sDxCqndbWsPN0Wobrs0psFEUF7E13xChwUvQYQenBfqQeQYo33n1T+NMZizrkLvMOkoLHkV jzmFMQABnISuiVzhuF2r5Lizvw5EU5glF7DDFUkteY9A5jJ3u8QsuY0DLV51m2d4a5lSs2ksba+Nh JMtiAHMetYI/iVeKN0ylQy6n2fJgrPyB90SLzeQd8dFNJishhHMSW80ZLq2XMIgCyeUg6gefgPjKS KbR9/qTQ==; Received: from [10.9.9.129] (helo=rmmprod07.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1gsQKu-0002ZU-KJ for 33719-done@debbugs.gnu.org; Sat, 09 Feb 2019 11:58:16 +0100 Received: from mail by rmmprod07.runbox with local (Exim 4.86_2) (envelope-from ) id 1gsQKu-0000x9-JE for 33719-done@debbugs.gnu.org; Sat, 09 Feb 2019 11:58:16 +0100 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [Authenticated user (850733)] by runbox.com with http (RMM6); for <33719-done@debbugs.gnu.org>; Sat, 09 Feb 2019 10:58:16 GMT From: To: "33719-done" <33719-done@debbugs.gnu.org> Subject: Bug: Unable to use an inferior package as a kernel in the system configuration Date: Sat, 09 Feb 2019 10:58:16 +0000 (GMT) X-Mailer: RMM6 Message-Id: X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 33719-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) Fixed with guix commit bdc61ff97d26d5d87020d07dfd43c0a552bd3449= From unknown Tue Jun 17 01:48:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 09 Mar 2019 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator