GNU bug report logs - #39643
(Out-of-tree) system kernel modules only found in :out

Previous Next

Package: guix;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Mon, 17 Feb 2020 14:46:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Marius Bakke <mbakke <at> fastmail.com>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>, 39643 <at> debbugs.gnu.org
Subject: bug#39643: (Out-of-tree) system kernel modules only found in :out
Date: Tue, 18 Feb 2020 18:26:46 +0100
[Message part 1 (text/plain, inline)]
Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix <at> gnu.org>
writes:

> Guix,
>
> After adding (specification->package+output "zfs:module") to my 
> system packages, it's still missing from current-system:
>
>   $ guix system reconfigure …
>
>   $ ls /run/current-system/profile/lib/modules/
>   5.4.0-pf7-4-ed26-M88
>
> That's my horrible custom Linux fork/version/abomination. 
> Apologies.  The ZFS package simply compiles against Guix's default 
> linux-libre-5.4.20-gnu package.

To build out-of-tree modules with a custom kernel I would expect that
you have to rebuild them against your kernel:

(define my-kernel
 (package/inherit
  linux-libre
  ...))

(define with-custom-kernel
 (package-input-rewriting `((,linux-libre . ,my-kernel))))

(define zfs-with-custom-kernel
 (with-custom-kernel zfs))

Alternatively, I see that 'linux-module-build-system' takes a #:linux
argument:

(define zfs-with-my-kernel
 (package/inherit
  zfs
  (arguments (substitute-keyword-arguments (package-arguments zfs))
   ((#:linux _ #f) my-kernel))))

Will these options work for you, or am I misunderstanding something?
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 5 years and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.