[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: gnu: avr-libc: Fix build.
From: |
David Thompson |
Subject: |
04/07: gnu: avr-libc: Fix build. |
Date: |
Mon, 30 May 2016 17:46:43 +0000 (UTC) |
davexunit pushed a commit to branch master
in repository guix.
commit e60972f28847f4a207186754a954dbebe92f207f
Author: David Thompson <address@hidden>
Date: Thu Apr 14 08:44:46 2016 -0400
gnu: avr-libc: Fix build.
* gnu/packages/avr.scm (avr-libc): Update to 2.0.0.
[native-inputs]: Use new avr-gcc and avr-binutils.
[arguments]: Add phase to unset C_INCLUDE_PATH.
---
gnu/packages/avr.scm | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm
index 00c4e47..72411d9 100644
--- a/gnu/packages/avr.scm
+++ b/gnu/packages/avr.scm
@@ -84,17 +84,28 @@
"0sd9qkvhmk9av4g1f8dsjwc309hf1g0731bhvicnjb3b3d42l1n3"))))
(build-system gnu-build-system)
(arguments
- `(#:out-of-source? #t
- #:configure-flags '("--host=avr")))
-
- (native-inputs `(("cross-binutils" ,(cross-binutils "avr"))
- ("cross-gcc" ,xgcc-avr)))
+ '(#:out-of-source? #t
+ #:configure-flags '("--host=avr")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'unpack 'fix-cpath
+ (lambda _
+ ;; C_INCLUDE_PATH poses issues for cross-building, leading to
+ ;; failures when building avr-libc on 64-bit systems. Simply
+ ;; unsetting it allows the build to succeed because it doesn't
+ ;; try to use any of the native system's headers.
+ (unsetenv "C_INCLUDE_PATH")
+ #t)))))
+ (native-inputs `(("avr-binutils" ,avr-binutils)
+ ("avr-gcc" ,avr-gcc-4.9)))
(home-page "http://www.nongnu.org/avr-libc/")
(synopsis "The AVR C Library")
(description
"AVR Libc is a project whose goal is to provide a high quality C library
for use with GCC on Atmel AVR microcontrollers.")
- (license (license:non-copyleft
"http://www.nongnu.org/avr-libc/LICENSE.txt"))))
+ (license
+ (license:non-copyleft "http://www.nongnu.org/avr-libc/LICENSE.txt"))))
+
(define-public microscheme
(package
- branch master updated (983911d -> 503a43f), David Thompson, 2016/05/30
- 05/07: gnu: avr-libc: Update to 2.0.0., David Thompson, 2016/05/30
- 07/07: gnu: Remove xgcc-avr., David Thompson, 2016/05/30
- 01/07: gnu: Add avr-binutils., David Thompson, 2016/05/30
- 06/07: gnu: Add avr-toolchain., David Thompson, 2016/05/30
- 02/07: gnu: Add avr-gcc., David Thompson, 2016/05/30
- 03/07: gnu: Add avr-gcc-5., David Thompson, 2016/05/30
- 04/07: gnu: avr-libc: Fix build.,
David Thompson <=