GNU bug report logs - #40272
linux-module-build-system don't support an inferior package as a kernel

Previous Next

Package: guix;

Reported by: Brice Waegeneire <brice <at> waegenei.re>

Date: Sat, 28 Mar 2020 12:59:02 UTC

Severity: normal

Full log


Message #26 received at 40272 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 40272 <at> debbugs.gnu.org, Brice Waegeneire <brice <at> waegenei.re>
Subject: Re: bug#40272: linux-module-build-system don't support an inferior
 package as a kernel
Date: Tue, 03 Aug 2021 15:34:40 +0200
Hi Danny!

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> On Sun, 01 Aug 2021 18:46:00 +0200
> Ludovic Courtès <ludo <at> gnu.org> wrote:

[...]

>> In this case, the problem is that (@ (guix build-system linux-module)
>> lower) assumes that ‘linux’ is a <package>:
>> 
>>     (build-inputs `(,@(if source
>>                           `(("source" ,source))
>>                           '())
>>                     ,@native-inputs
>>                     ;; TODO: Remove "gmp", "mpfr", "mpc" since they are
>>                     ;; only needed to compile the gcc plugins.  Maybe
>>                     ;; remove "flex", "bison", "elfutils", "perl",
>>                     ;; "openssl".  That leaves very little ("bc", "gcc",
>>                     ;; "kmod").
>>                     ,@(package-native-inputs linux)   ;<----- HERE
>> 
>> I suppose you could add a special-case for (inferior-package? linux).
>> Not pretty, but it’d do the job.
>
> Or, as the comment says, it might be enough just to not get the
> package-native-inputs from the package ever, but do hard-code
> bc, gcc and kmod.  Maybe add a comment why :)

True, that may be the easiest solution, and it certainly makes sense.

Thanks,
Ludo’.




This bug report was last modified 3 years and 317 days ago.

Previous Next


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