Message ID | 20190412131556.25282-4-m.othacehe@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | Fix some cross-compilation issues. | expand |
Context | Check | Description |
---|---|---|
cbaines/applying patch | success | Successfully applied |
Mathieu Othacehe <m.othacehe@gmail.com> skribis: > * gnu/packages/firmware.scm (ath9k-htc-firmware)[phases]: Search for > "cross-gcc" in native-inputs in "configure" phase. The subject line should mention ‘ath9k-htc-firmware’, not ‘firmware’. :-) > (substitute* "configure" > (("^TOOLCHAIN=.*$") > (string-append "TOOLCHAIN=" > - (assoc-ref inputs "cross-gcc") > + (assoc-ref native-inputs "cross-gcc") > "\n"))) It still works natively, right? It it does, it LGTM! Ludo’.
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 4df4b22843..68476ed826 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org> +;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -59,7 +60,7 @@ '(#:phases (modify-phases %standard-phases (add-before 'configure 'pre-configure - (lambda* (#:key inputs #:allow-other-keys) + (lambda* (#:key native-inputs #:allow-other-keys) (chdir "target_firmware") ;; 'configure' is a simple script that runs 'cmake' with @@ -67,7 +68,7 @@ (substitute* "configure" (("^TOOLCHAIN=.*$") (string-append "TOOLCHAIN=" - (assoc-ref inputs "cross-gcc") + (assoc-ref native-inputs "cross-gcc") "\n"))) #t)) (replace 'install