Subject: bug#59074: closed (Re: [bug#59074] [PATCH] build-system/linux-module: Add #:source-directory to linux-module-build-cross.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 07 Nov 2022 20:03:02 +0000

Your bug report

#59074: [PATCH] build-system/linux-module: Add #:source-directory to linux-module-build-cross.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
59074: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59074
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#59074] [PATCH] build-system/linux-module: Add #:source-directory to linux-module-build-cross.
From: Christopher Baines <[email-masked]>
To: Christopher Baines <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Mon, 07 Nov 2022 21:00:09 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Christopher Baines <[email-masked]> writes:

> Otherwise computing cross-compilation derivations for packages (e.g. xpadneo)
> using the #:source-directory argument fails with this error:
>
>   Unrecognized keyword: #:source-directory
>
> * guix/build-system/linux-module.scm (linux-module-build-cross): Support
>  #:source-directory.
> ---
>  guix/build-system/linux-module.scm | 2 ++
>  1 file changed, 2 insertions(+)

I've gone ahead and pushed this as
da21c5d45f418103bb39061787c90920ee3f36d8.

Chris

Subject: [PATCH] build-system/linux-module: Add #:source-directory to linux-module-build-cross.
From: Christopher Baines <[email-masked]>
To: [email-masked]
Date: Sun, 6 Nov 2022 10:13:17 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Otherwise computing cross-compilation derivations for packages (e.g. xpadneo)
using the #:source-directory argument fails with this error:

  Unrecognized keyword: #:source-directory

* guix/build-system/linux-module.scm (linux-module-build-cross): Support
 #:source-directory.
---
 guix/build-system/linux-module.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guix/build-system/linux-module.scm b/guix/build-system/linux-module.scm
index 94a293da13..d6c369d65d 100644
--- a/guix/build-system/linux-module.scm
+++ b/guix/build-system/linux-module.scm
@@ -210,6 +210,7 @@ (define* (linux-module-build-cross
           (tests? #f)
           (phases '%standard-phases)
           (system (%current-system))
+          (source-directory ".")
           (substitutable? #t)
           (imported-modules
            %linux-module-build-system-modules)
@@ -229,6 +230,7 @@ (define %build-target-inputs
 
           (linux-module-build #:name #$name
                               #:source #+source
+                              #:source-directory #$source-directory
                               #:system #$system
                               #:target #$target
                               #:arch #$(system->arch (or target system))
-- 
2.37.3