[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: gnu: indent: Fix aarch64 cross-compilation.
From: |
guix-commits |
Subject: |
02/09: gnu: indent: Fix aarch64 cross-compilation. |
Date: |
Fri, 20 Sep 2019 04:17:59 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates-next
in repository guix.
commit b9799323f0b147fc9067a72d9a0be07ef626d463
Author: Mathieu Othacehe <address@hidden>
Date: Wed Jul 3 16:15:39 2019 +0200
gnu: indent: Fix aarch64 cross-compilation.
The packaged config.sub and config.guess do not have aarch64 support.
Replace
them by the ones from automake.
* gnu/packages/code.scm (indent)[arguments]: Replace outdated config.sub and
config.guess, taken from ...
[native-inputs]: ... here, by adding automake.
(indent-2.2.12)[native-inputs]: Inherit from indent native-inputs to keep
automake that is added above.
---
gnu/packages/code.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 13e2c4a..50d6870 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -29,6 +29,7 @@
(define-module (gnu packages code)
#:use-module (guix packages)
+ #:use-module (guix utils)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
@@ -644,9 +645,24 @@ the C, C++, C++/CLI, Objective‑C, C#, and Java programming
languages.")
;; overrides this to be in PREFIX/doc. Fix this.
(substitute* "doc/Makefile.in"
(("^docdir = .*$") "docdir = @docdir@\n"))
+ #t))
+ (add-after 'unpack 'fix-configure
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ ;; Replace outdated config.sub and config.guess:
+ (with-directory-excursion "config"
+ (for-each (lambda (file)
+ (install-file
+ (string-append (assoc-ref
+ (or native-inputs inputs)
"automake")
+ "/share/automake-"
+ ,(version-major+minor
+ (package-version automake))
+ "/" file) "."))
+ '("config.sub" "config.guess")))
#t)))))
(native-inputs
- `(("texinfo" ,texinfo)))
+ `(("texinfo" ,texinfo)
+ ("automake" ,automake))) ; For up to date 'config.guess' and
'config.sub'.
(synopsis "Code reformatter")
(description
"Indent is a program that makes source code easier to read by
- branch core-updates-next updated (91acbda -> 3ed89b1), guix-commits, 2019/09/20
- 02/09: gnu: indent: Fix aarch64 cross-compilation.,
guix-commits <=
- 05/09: gnu: lvm2: Fix cross-compilation., guix-commits, 2019/09/20
- 01/09: gnu: libpaper: Fix aarch64 cross-compilation., guix-commits, 2019/09/20
- 04/09: gnu: mkfontdir: Fix aarch64 cross-compilation., guix-commits, 2019/09/20
- 07/09: gnu: procps: Fix cross-compilation., guix-commits, 2019/09/20
- 03/09: gnu: libsamplerate: Fix aarch64 cross-compilation., guix-commits, 2019/09/20
- 09/09: gnu: mdadm: Fix cross-compilation., guix-commits, 2019/09/20
- 06/09: gnu: nghttp2: Fix cross-compilation., guix-commits, 2019/09/20
- 08/09: gnu: console-setup: Fix cross-compilation., guix-commits, 2019/09/20