unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40272: linux-module-build-system don't support an inferior package as a kernel
@ 2020-03-28 12:58 Brice Waegeneire
  2021-08-01 15:30 ` Brice Waegeneire
  0 siblings, 1 reply; 8+ messages in thread
From: Brice Waegeneire @ 2020-03-28 12:58 UTC (permalink / raw)
  To: 40272


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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-03 13:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28 12:58 bug#40272: linux-module-build-system don't support an inferior package as a kernel Brice Waegeneire
2021-08-01 15:30 ` Brice Waegeneire
2021-08-01 16:46   ` Ludovic Courtès
2021-08-01 20:59     ` Brice Waegeneire
2021-08-02 17:12       ` Maxime Devos
2021-08-03 13:32         ` Ludovic Courtès
2021-08-02 19:03     ` Danny Milosavljevic
2021-08-03 13:34       ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).