* bug#39643: (Out-of-tree) system kernel modules only found in :out
@ 2020-02-17 14:45 Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-02-18 11:43 ` Danny Milosavljevic
2020-02-18 17:26 ` Marius Bakke
0 siblings, 2 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-02-17 14:45 UTC (permalink / raw)
To: 39643
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]
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.
After editing the zfs package to install everything into the main
:out output:
$ guix system reconfigure …
$ ls /run/current-system/profile/lib/modules/
5.4.0-pf7-4-ed26-M88 5.4.20-gnu
$ ls
/run/current-system/profile/lib/modules/5.4.20-gnu/extra/zfs/
zfs.ko
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#39643: (Out-of-tree) system kernel modules only found in :out
2020-02-17 14:45 bug#39643: (Out-of-tree) system kernel modules only found in :out Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2020-02-18 11:43 ` Danny Milosavljevic
2020-02-18 17:26 ` Marius Bakke
1 sibling, 0 replies; 4+ messages in thread
From: Danny Milosavljevic @ 2020-02-18 11:43 UTC (permalink / raw)
To: 39643
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
Hi,
I don't know what could be up with it.
I've never used specification->package+output before and I don't know whether
one has to do something special afterwards.
That said, maybe try using https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37868
(v2) and see whether it magically fixes the problem (probably not).
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#39643: (Out-of-tree) system kernel modules only found in :out
2020-02-17 14:45 bug#39643: (Out-of-tree) system kernel modules only found in :out Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-02-18 11:43 ` Danny Milosavljevic
@ 2020-02-18 17:26 ` Marius Bakke
2020-02-18 17:34 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
1 sibling, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2020-02-18 17:26 UTC (permalink / raw)
To: Tobias Geerinckx-Rice, 39643
[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]
Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix@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?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#39643: (Out-of-tree) system kernel modules only found in :out
2020-02-18 17:26 ` Marius Bakke
@ 2020-02-18 17:34 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
0 siblings, 0 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-02-18 17:34 UTC (permalink / raw)
To: Marius Bakke; +Cc: 39643
[-- Attachment #1: Type: text/plain, Size: 287 bytes --]
Marius,
Marius Bakke 写道:
> Will these options work for you, or am I misunderstanding
> something?
I think so. The bug is about zfs:module being treated differently
from zfs:out when constructing a system/ union, not about the
build system.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-02-18 17:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-17 14:45 bug#39643: (Out-of-tree) system kernel modules only found in :out Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-02-18 11:43 ` Danny Milosavljevic
2020-02-18 17:26 ` Marius Bakke
2020-02-18 17:34 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
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).