gnu: Fix cross compilation issue with libgcrypt.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 16 Nov 2014 01:54:15 +0000 (02:54 +0100)
committerJohn Darrington <jmd@gnu.org>
Tue, 18 Nov 2014 09:38:13 +0000 (10:38 +0100)
* gnu/packages/gnupg.scm (libgcrypt): Distinguish between the native and
  non-native libgpg-error input

gnu/packages/gnupg.scm

index b7cf897..ecbb178 100644 (file)
@@ -71,17 +71,17 @@ Daemon and possibly more in the future.")
                "0k2wi34qhp5hq71w1ab3kw1gfsx7xff79bvynqkxp35kls94826y"))))
     (build-system gnu-build-system)
     (propagated-inputs
-     `(("libgpg-error" ,libgpg-error)))
+     `(("libgpg-error-host" ,libgpg-error)))
     (native-inputs
      ;; Needed here for the 'gpg-error' program.
-     `(("libgpg-error" ,libgpg-error)))
+     `(("libgpg-error-native" ,libgpg-error)))
     (arguments
      ;; The '--with-gpg-error-prefix' argument is needed because otherwise
      ;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and
      ;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one.
      `(#:configure-flags
        (list (string-append "--with-gpg-error-prefix="
-                            (assoc-ref %build-inputs "libgpg-error")))))
+                            (assoc-ref %build-inputs "libgpg-error-host")))))
     (outputs '("out" "debug"))
     (home-page "http://gnupg.org/")
     (synopsis "Cryptographic function library")