[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/11: gnu: grub: Fix cross-compiling for other architectures.
From: |
guix-commits |
Subject: |
01/11: gnu: grub: Fix cross-compiling for other architectures. |
Date: |
Mon, 23 Nov 2020 08:45:44 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 77b7d990ecff497653a2e5988497c6b00f5d2a37
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Nov 23 11:34:16 2020 +0200
gnu: grub: Fix cross-compiling for other architectures.
Reported by cbaines and xelxebar on IRC.
* gnu/packages/bootloaders.scm (grub)[arguments]: In custom
'set-freetype-variables phase only use the native-inputs version of
freetype.
---
gnu/packages/bootloaders.scm | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 12bc393..2e97099 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -138,14 +138,15 @@
;; These variables need to be set to the native versions
;; of the dependencies because they are used to build
;; programs which are executed during build time.
- (lambda* (#:key native-inputs inputs #:allow-other-keys)
- (let ((freetype (assoc-ref (or native-inputs inputs)
"freetype")))
- (setenv "BUILD_FREETYPE_LIBS"
- (string-append "-L" freetype
- "/lib -lfreetype"))
- (setenv "BUILD_FREETYPE_CFLAGS"
- (string-append "-I" freetype
- "/include/freetype2")))
+ (lambda* (#:key native-inputs #:allow-other-keys)
+ (when (assoc-ref native-inputs "freetype")
+ (let ((freetype (assoc-ref native-inputs "freetype")))
+ (setenv "BUILD_FREETYPE_LIBS"
+ (string-append "-L" freetype
+ "/lib -lfreetype"))
+ (setenv "BUILD_FREETYPE_CFLAGS"
+ (string-append "-I" freetype
+ "/include/freetype2"))))
#t))
(add-before 'check 'disable-flaky-test
(lambda _
- branch master updated (d9e57db -> 964bc9e), guix-commits, 2020/11/23
- 05/11: gnu: Add python-bagit., guix-commits, 2020/11/23
- 01/11: gnu: grub: Fix cross-compiling for other architectures.,
guix-commits <=
- 03/11: gnu: python-pydot: Run tests., guix-commits, 2020/11/23
- 07/11: gnu: Add python-cachecontrol-0.11., guix-commits, 2020/11/23
- 02/11: gnu: python-pydot: Update to 1.4.1., guix-commits, 2020/11/23
- 04/11: gnu: python-pydot: Update home-page URI., guix-commits, 2020/11/23
- 06/11: gnu: Add python-prov., guix-commits, 2020/11/23
- 08/11: gnu: Add python-schema-salad., guix-commits, 2020/11/23
- 09/11: gnu: Add python-arcp., guix-commits, 2020/11/23
- 11/11: gnu: Add cwltool., guix-commits, 2020/11/23
- 10/11: gnu: Add python-shellescape., guix-commits, 2020/11/23