From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 28 08:58:50 2020 Received: (at submit) by debbugs.gnu.org; 28 Mar 2020 12:58:50 +0000 Received: from localhost ([127.0.0.1]:33732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIB34-000481-2W for submit@debbugs.gnu.org; Sat, 28 Mar 2020 08:58:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:52212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIB33-00047u-AE for submit@debbugs.gnu.org; Sat, 28 Mar 2020 08:58:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53151) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIB30-0001uY-U3 for bug-guix@gnu.org; Sat, 28 Mar 2020 08:58:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIB2z-0000vo-Bf for bug-guix@gnu.org; Sat, 28 Mar 2020 08:58:46 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:37879) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIB2z-0000qm-0E for bug-guix@gnu.org; Sat, 28 Mar 2020 08:58:45 -0400 Received: from webmail.gandi.net (webmail18.sd4.0x35.net [10.200.201.18]) (Authenticated sender: brice@waegenei.re) by relay8-d.mail.gandi.net (Postfix) with ESMTPA id C2DD41BF208 for ; Sat, 28 Mar 2020 12:58:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sat, 28 Mar 2020 12:58:40 +0000 From: Brice Waegeneire To: bug-guix@gnu.org Subject: linux-module-build-system don't support an inferior package as a kernel Message-ID: <4ace97d14da81f85ee833cacda791edb@waegenei.re> X-Sender: brice@waegenei.re User-Agent: Roundcube Webmail/1.3.8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.201 X-Spam-Score: -0.0 (/) 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: -1.0 (-) Message Body Hello, The linux-module-build-system crash when using an inferior package as the kernel. I have first reported the issue in the second part of[0] and latter, reading[1] made me realize that the root cause was in `(guix `build-system linux-module)' and not directly related to the `kernel-loadable-modules' field. I tried fixing it myself but (guix inferior) seems to be missing some important procedures so I can manage to do it by myself - I don't have the skills to modify that part of the code base. A way to make a package by inheriting from a inferior-package would greatly help because `make-linux-module-builder' assume that it's argument is straight forward package. Following is the file `linux-module-inferior.scm' to reproduce the error: --8<---------------cut here---------------start------------->8--- (use-modules (gnu) (gnu system) (srfi srfi-1) (guix inferior) (guix utils) (guix packages) (guix channels)) (use-package-modules linux) (define channels (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "591faabd8c93bfb6879910d8a424f0db835066c2")))) (define my-linux (let ((inferior (inferior-for-channels channels))) (first (lookup-inferior-packages inferior "linux-libre" "4.4.217")))) (package/inherit ddcci-driver-linux (arguments (ensure-keyword-arguments (package-arguments ddcci-driver-linux) ;; `(#:linux ,(specification->package "linux-libre@4.4.217")) ; NOTE It works `(#:linux ,my-linux) ; NOTE It doesn't work ))) --8<---------------cut here---------------end--------------->8--- Here is the error: --8<---------------cut here---------------start------------->8--- LANGUAGE=C guix build -f linux-module-inferior.scm Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... Backtrace: 1 (primitive-load "/home/bricewge/.config/guix/current/bi…") In guix/ui.scm: 1894:12 0 (run-guix-command _ . _) --8<---------------cut here---------------end--------------->8--- [0]: https://lists.gnu.org/archive/html/guix-devel/2020-03/msg00381.html [1]: https://issues.guix.info/issue/33719 Brice.