--- Begin Message ---
Subject: |
[PATCH] gnu: wayland-protocols: Fix cross-compilation |
Date: |
Fri, 26 Aug 2022 12:14:58 +0200 |
* gnu/packages/freedesktop.scm (wayland-protocols): Fix cross-compilation
[native-inputs]: Add pkg-config-for-build and wayland.
---
gnu/packages/freedesktop.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 037a247243..c0a94c6623 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1074,8 +1074,11 @@ (define-public wayland-protocols
(build-system meson-build-system)
(inputs
(list wayland))
- (native-inputs
- (list pkg-config python))
+ (native-inputs (cons* pkg-config python
+ (if (%current-target-system)
+ (list pkg-config-for-build
+ wayland) ; for wayland-scanner
+ '())))
(synopsis "Wayland protocols")
(description "Wayland-Protocols contains Wayland protocols that add
functionality not available in the Wayland core protocol. Such protocols
either
--
2.37.1
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#57430: [PATCH] gnu: wayland-protocols: Fix cross-compilation |
Date: |
Tue, 30 Aug 2022 09:18:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Hello Tobias,
> * gnu/packages/freedesktop.scm (wayland-protocols): Fix cross-compilation
> [native-inputs]: Add pkg-config-for-build and wayland.
Maxime's idea of setting #target to false is interesting but let's go
with your original patch because it's the way we handle things in
general.
Thanks,
Mathieu
--- End Message ---