[PATCH] gnu: libxkbcommon: Fix cross-compile.
(address . guix-patches@gnu.org)
* gnu/packages/xdisorg.scm (libxkbcommon): Fix cross-compile.
[native-inputs]: When cross-compile add PKG-CONFIG-FOR-BUILD.
---
gnu/packages/xdisorg.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Toggle diff (25 lines)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index db948a9318..84bdcad031 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -527,9 +527,13 @@ (define-public libxkbcommon
wayland-protocols
xkeyboard-config))
(native-inputs
- (list bison doxygen pkg-config python
- ;; wayland-scanner is required at build time.
- wayland))
+ (append
+ (if (%current-target-system)
+ (list pkg-config-for-build)
+ '())
+ (list bison doxygen pkg-config python
+ ;; wayland-scanner is required at build time.
+ wayland)))
(arguments
(list #:configure-flags
#~(list (string-append "-Dxkb-config-root="
base-commit: 9b77bd0b9b4f3de69390da0ba7db5b9dbc01e554
--
2.41.0