[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/19: gnu: libgpg-error: Fix cross compilation.
From: |
guix-commits |
Subject: |
07/19: gnu: libgpg-error: Fix cross compilation. |
Date: |
Wed, 3 Jul 2019 10:47:21 -0400 (EDT) |
mothacehe pushed a commit to branch wip-cross-system
in repository guix.
commit 9a44904e86665a14fd863dbce18325177e074452
Author: Mathieu Othacehe <address@hidden>
Date: Sat Jun 29 17:21:37 2019 +0200
gnu: libgpg-error: Fix cross compilation.
* gnu/packages/gnupg.scm (libgpg-error)[arguments]: Add a lock-obj header to
the target platform when cross-compiling,
[native-inputs]: add gettext that is needed when cross-compiling.
---
gnu/packages/gnupg.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index f84f8d7..68e8270 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -15,6 +15,7 @@
;;; Copyright © 2017 Petter <address@hidden>
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2018 Marius Bakke <address@hidden>
+;;; Copyright © 2019 Mathieu Othacehe <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -86,6 +87,27 @@
(base32
"1jj08ns4sh1hmafqp1giskvdicdz18la516va26jycy27kkwaif3"))))
(build-system gnu-build-system)
+ (arguments
+ (if (%current-target-system)
+ `(#:modules ((ice-9 match)
+ (guix build gnu-build-system)
+ (guix build utils))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'cross-symlinks
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((target ,(%current-target-system))
+ (tuple
+ (match (string-take target (string-index target #\-))
+ ("armhf" "arm-unknown-linux-gnueabi")
+ (x
+ (string-append x "-unknown-linux-gnu")))))
+ (symlink
+ (string-append "lock-obj-pub." tuple ".h")
+ "src/syscfg/lock-obj-pub.linux-gnu.h"))
+ #t))))
+ '()))
+ (native-inputs `(("gettext" ,gettext-minimal)))
(home-page "https://gnupg.org")
(synopsis "Library of error values for GnuPG components")
(description
- branch wip-cross-system created (now a4afeb1), guix-commits, 2019/07/03
- 13/19: gnu: libgit2: Fix cross compilation., guix-commits, 2019/07/03
- 02/19: gnu: python: Fix cross compilation., guix-commits, 2019/07/03
- 06/19: gnu: xorg: Fix cross-compilation of multiple packages., guix-commits, 2019/07/03
- 15/19: gnu: libpaper: Fix aarch64 cross-compilation., guix-commits, 2019/07/03
- 07/19: gnu: libgpg-error: Fix cross compilation.,
guix-commits <=
- 10/19: gnu: openssl: Fix cross-compilation., guix-commits, 2019/07/03
- 14/19: gnu: ath9k-htc-firmware: Fix cross compilation., guix-commits, 2019/07/03
- 04/19: gnu: tk: Fix cross-compilation., guix-commits, 2019/07/03
- 03/19: gnu: tcl: Fix cross-compilation., guix-commits, 2019/07/03
- 05/19: gnu: libxslt: Fix cross-compilation., guix-commits, 2019/07/03
- 08/19: gnu: python: Fix cross-compilation., guix-commits, 2019/07/03
- 17/19: gnu: texinfo-5: Fix cross-compilation., guix-commits, 2019/07/03
- 19/19: gnu: indent: Fix aarch64 cross-compilation., guix-commits, 2019/07/03
- 01/19: gnu: perl: Fix cross-compilation., guix-commits, 2019/07/03
- 11/19: gnu: texinfo: Fix cross-compilation., guix-commits, 2019/07/03