summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Junjie <zhengjunjie@iscas.ac.cn>2023-12-28 22:26:21 +0800
committerMathieu Othacehe <othacehe@gnu.org>2023-12-29 19:48:16 +0100
commitc5c28df899b4c4f114bee9afd58dbde9fbbf3424 (patch)
treeb949f7363360b8bc787ae4490d2e56f58013bb76
parent2911aaa9ae54cf86d2a776c441f3559d4a838f16 (diff)
gnu: xcb-util-renderutil: Fix cross-compiling to riscv64-linux.
* gnu/packages/xorg.scm (xcb-util-renderutil) [native-inputs]: When cross compiling to riscv64-linux-gnu, add config. [arguments]: When target riscv64-linux-gnu, add update-config-scripts phase. Change-Id: I906a2b7b7691ae53592cfa35ba64fc7e7d735664 Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
-rw-r--r--gnu/packages/xorg.scm22
1 files changed, 20 insertions, 2 deletions
diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index 382075237ab..4f85a5de8b7 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -5675,11 +5675,29 @@ The XCB util-keysyms module provides the following library:
5675 "0nza1csdvvxbmk8vgv8vpmq7q8h05xrw3cfx9lwxd1hjzd47xsf6")))) 5675 "0nza1csdvvxbmk8vgv8vpmq7q8h05xrw3cfx9lwxd1hjzd47xsf6"))))
5676 (build-system gnu-build-system) 5676 (build-system gnu-build-system)
5677 (arguments 5677 (arguments
5678 '(#:configure-flags '("--disable-static"))) 5678 `(#:configure-flags '("--disable-static")
5679 ,@(if (and (%current-target-system)
5680 (target-riscv64?))
5681 `(#:phases
5682 (modify-phases %standard-phases
5683 (add-after 'unpack 'update-config-scripts
5684 (lambda* (#:key inputs native-inputs #:allow-other-keys)
5685 ;; Replace outdated config.guess and config.sub.
5686 (for-each (lambda (file)
5687 (install-file
5688 (search-input-file
5689 (or native-inputs inputs)
5690 (string-append "/bin/" file)) "."))
5691 '("config.guess" "config.sub"))))))
5692 '())))
5679 (propagated-inputs 5693 (propagated-inputs
5680 (list libxcb)) 5694 (list libxcb))
5681 (native-inputs 5695 (native-inputs
5682 (list pkg-config)) 5696 (append (if (and (%current-target-system)
5697 (target-riscv64?))
5698 (list config)
5699 '())
5700 (list pkg-config)))
5683 (home-page "https://cgit.freedesktop.org/xcb/util-renderutil/") 5701 (home-page "https://cgit.freedesktop.org/xcb/util-renderutil/")
5684 (synopsis "Convenience functions for the Render extension") 5702 (synopsis "Convenience functions for the Render extension")
5685 (description 5703 (description