The file command is somewhat unusual in that it depends upon a natively compiled
version of itself.

This patch provides that dependency.  Perhaps there is a more elegent way to 
achieve this.
But I tested this both for native builds and cross builds.o

J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

From eb5d135658ad8c3a642699a030d3e545f4d9935d Mon Sep 17 00:00:00 2001
From: John Darrington <[email protected]>
Date: Fri, 13 Dec 2013 10:52:12 +0100
Subject: [PATCH] gnu: file: Fixed cross-compilation.

* gnu/packages/file.scm (file): The file package depends upon
  a native build of itself.
---
 gnu/packages/file.scm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/file.scm b/gnu/packages/file.scm
index 5583c20..63a9df4 100644
--- a/gnu/packages/file.scm
+++ b/gnu/packages/file.scm
@@ -35,7 +35,8 @@
                      "08ix4xrvan0k80n0l5lqfmc4azjv5lyhvhwdxny4r09j5smhv78r"))))
    (build-system gnu-build-system)
    (native-inputs
-     `(("file" ,file)))
+    ;; This package depends upon a native install of itself.
+     (if (%current-target-system) `(("file" ,file)) '() ))
    (synopsis "file, a file type guesser")
    (description
     "The file command is a file type guesser, a command-line tool that tells
-- 
1.7.10.4

Attachment: signature.asc
Description: Digital signature

Reply via email to