all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Darrington <john@darrington.wattle.id.au>
To: guix-devel@gnu.org
Subject: [PATCH 2/5] gnu: gnupg: Fixed cross-compile issues.
Date: Sat, 14 Dec 2013 18:43:19 +0100	[thread overview]
Message-ID: <1387043002-6138-2-git-send-email-john@darrington.wattle.id.au> (raw)
In-Reply-To: <1387043002-6138-1-git-send-email-john@darrington.wattle.id.au>

*gnu/packages/gnupg.scm (libgpg-error): Added gcc as a native input,
 and set the CC_FOR_BUILD variable.

*gnu/packages/gnupg.scm (libgcrypt): Added libgpg-error as a native input and
 set the --with-gpg-error-prefix configure option.

*gnu/packages/gnupg.scm (libksba): Added libgpg-error as a native input and
 set the --with-gpg-error-prefix configure option.
---
 gnu/packages/gnupg.scm |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index e888109..8d26688 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -44,6 +44,12 @@
        (base32
         "0pz58vr12qihq2f0bypjxsb6cf6ajq5258fmfm8s6lvwm3b9xz6a"))))
     (build-system gnu-build-system)
+    (native-inputs 
+     `(("gcc" ,gcc-final)))
+    (arguments
+      `(,@(if (%current-target-system)
+            '(#:configure-flags '("CC_FOR_BUILD=gcc"))
+            '())))
     (home-page "http://gnupg.org")
     (synopsis
      "Libgpg-error, a small library that defines common error values for all GnuPG components")
@@ -68,6 +74,12 @@ Daemon and possibly more in the future.")
     (build-system gnu-build-system)
     (propagated-inputs
      `(("libgpg-error" ,libgpg-error)))
+    (native-inputs
+     `(("libgpg-error" ,libgpg-error)))
+    (arguments
+     `(#:configure-flags
+       (list (string-append "--with-gpg-error-prefix="
+                            (assoc-ref %build-inputs "libgpg-error")))))
     (home-page "http://gnupg.org/")
     (synopsis "Cryptographic function library")
     (description
@@ -118,6 +130,14 @@ provided.")
     (build-system gnu-build-system)
     (propagated-inputs
      `(("libgpg-error" ,libgpg-error)))
+    (native-inputs
+     `(("libgpg-error" ,libgpg-error)))
+    (arguments
+     `(#:configure-flags (list    
+        ,@(if (%current-target-system)
+              '("CC_FOR_BUILD=gcc")'())
+        (string-append "--with-gpg-error-prefix="
+                       (assoc-ref %build-inputs "libgpg-error")))))
     (home-page "http://www.gnupg.org")
     (synopsis
      "Libksba is a CMS and X.509 access library under development")
-- 
1.7.10.4

  reply	other threads:[~2013-12-14 17:43 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-14 17:43 [PATCH 1/5] gnu: libxml2: Fixed cross-compilation John Darrington
2013-12-14 17:43 ` John Darrington [this message]
2013-12-14 18:19   ` [PATCH 2/5] gnu: gnupg: Fixed cross-compile issues Ludovic Courtès
2013-12-14 19:02     ` John Darrington
2013-12-14 21:06       ` Ludovic Courtès
2013-12-15  8:24         ` John Darrington
2013-12-15  8:39           ` [PATCH] gnu: gnupg: Fix " John Darrington
2013-12-15 21:24             ` Ludovic Courtès
2013-12-15 21:14           ` [PATCH 2/5] gnu: gnupg: Fixed " Ludovic Courtès
2014-01-07 10:32         ` John Darrington
2013-12-14 17:43 ` [PATCH 3/5] gnu: tzdata: Added "source" as input John Darrington
2013-12-14 18:24   ` Ludovic Courtès
2013-12-14 17:43 ` [PATCH 4/5] gnu: openssl: Fixed cross-compile issues John Darrington
2013-12-14 17:57   ` Ludovic Courtès
2013-12-14 18:02     ` John Darrington
2013-12-14 21:01       ` Ludovic Courtès
2013-12-15  8:03         ` [PATCH] gnu: openssl: Fix " John Darrington
2013-12-15 21:18           ` Ludovic Courtès
2013-12-14 17:43 ` [PATCH 5/5] gnu: Changed many "inputs" which should be "native-inputs" John Darrington
2013-12-14 21:48   ` Ludovic Courtès
2013-12-15 10:36     ` John Darrington
2013-12-15 11:01       ` [PATCH] gnu: Move numerous " John Darrington
2013-12-15 21:32         ` Ludovic Courtès
2013-12-14 17:48 ` [PATCH 1/5] gnu: libxml2: Fixed cross-compilation Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1387043002-6138-2-git-send-email-john@darrington.wattle.id.au \
    --to=john@darrington.wattle.id.au \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.