efraim pushed a commit to branch core-updates
in repository guix.

commit 7d3d88dd222589b39d82f9f9dd01a5c1f28952fe
Author: Efraim Flashner <[email protected]>
AuthorDate: Sun Oct 15 13:10:10 2023 +0300

    gnu: libxkbcommon: Fix cross-compiling.
    
    * gnu/packages/xdisorg.scm (libxkbcommon)[native-inputs]: When
    cross-compiling add pkg-config-for-build.
---
 gnu/packages/xdisorg.scm | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 5582bc8d7f..fecb2c4dfb 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -528,9 +528,13 @@ avoiding password prompts when X11 forwarding has already 
been setup.")
            wayland-protocols
            xkeyboard-config))
     (native-inputs
-     (list bison doxygen pkg-config python
-           ;; wayland-scanner is required at build time.
-           wayland))
+     (append
+       (list bison doxygen pkg-config python
+             ;; wayland-scanner is required at build time.
+             wayland)
+       (if (%current-target-system)
+         (list pkg-config-for-build)
+         '())))
     (arguments
      (list
       #:configure-flags

Reply via email to