Subject: [bug#72361] [PATCH] build-system: linux-module: Fix cross-compiling.

From: Z572 <[email-masked]>
Date: Tue, 30 Jul 2024 23:35:18 +0800

Leo Famulari <[email-masked]> writes:

> On Tue, Jul 30, 2024 at 05:12:31PM +0800, Zheng Junjie wrote:
>> * guix/build-system/linux-module.scm (linux-module-build-cross):
>> Remove %build-host-inputs's quote.
>
> Thanks! Can you provide a command that reproduces the failure this is
> fixing?

for example

guix build ddcci-driver-linux --target=aarch64-linux-gnu

```
error: in phase 'set-paths': uncaught exception:
wrong-type-arg "car" "Wrong type argument in position 1 (expecting pair): ~S" (quote) (quote) 
phase `set-paths' failed after 0.0 seconds
Backtrace:
           9 (primitive-load "/gnu/store/cr60lmlxn3657jkkyj4b0gkj6ic?")
In guix/build/gnu-build-system.scm:
    908:2  8 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #)
In ice-9/boot-9.scm:
  1752:10  7 (with-exception-handler _ _ #:unwind? _ # _)
In srfi/srfi-1.scm:
    634:9  6 (for-each #<procedure 7ffff5f17100 at guix/build/gnu-b?> ?)
In ice-9/boot-9.scm:
  1752:10  5 (with-exception-handler _ _ #:unwind? _ # _)
In guix/build/gnu-build-system.scm:
   929:23  4 (_)
     88:4  3 (set-paths #:target _ #:inputs _ #:native-inputs _ # _ # ?)
In srfi/srfi-1.scm:
   917:20  2 (alist-delete "source" _ _)
In ice-9/boot-9.scm:
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure car: Wrong type argument in position 1 (expecting pair): quote
```