GNU bug report logs -
#37868
[PATCH] guix: Allow multiple packages to provide Linux modules in the system profile.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi Mathieu,
On Sun, 15 Mar 2020 11:28:37 +0100
Mathieu Othacehe <m.othacehe <at> gmail.com> wrote:
> Yes, "profile-derivation" should use the current system or target if the
> #:system and #:target arguments are #f.
OK!
> In that case, you should use #+kmod instead of #$kmod. This way, when
> cross-compiling, the native kmod would be used.
> Anyway, if you're willing to wait a few days, I can test your patch does
> not break system cross-compilation on core-updates.
Sure.
> The man page of depmod says that '-F' and '-E' options are mutually
> exclusive.
Linus Torvalds seems to be in favor of not supporting Module.symvers anymore,
so let's use "-F"...
>
> + (let* ((versions (filter (lambda (name)
> + (not (string-prefix? "." name)))
> + (scandir moddir)))
> + (version (match versions
> + ((x) x))))
>
> If versions only contains one element, then you can use find instead of
> filtering and matching.
I don't really know that it only contains one element. In normal supported
operation it should--but if the user does something stupid (put kernel
version A and module version B into the operating-system, where A != B),
I want it to fail and not depmod half the things (neither all the things, for
that matter).
> As stated above, I think you are fine removing the TODO.
Cool!
[Message part 2 (application/pgp-signature, inline)]
This bug report was last modified 5 years and 57 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.