From cd2512bfa3ad704f10ee391d88e826d199b378c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Thu, 13 Nov 2014 22:11:46 +0100
Subject: [PATCH] gnu: file: Add itself as a native input for
 cross-compilation.

Fixes a regression introduced in c198872b.
Reported by John Darrington.

* gnu/packages/file.scm (file)[self-native-input?]: New field.
---
 gnu/packages/file.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/file.scm b/gnu/packages/file.scm
index a90ab9c98e4..070695ec2ce 100644
--- a/gnu/packages/file.scm
+++ b/gnu/packages/file.scm
@@ -36,6 +36,11 @@ (define-public file
                      "0z1sgrcfy6d285kj5izy1yypf371bjl3247plh9ppk0svaxv714l"))
             (patches (list (search-patch "file-CVE-2014-3587.patch")))))
    (build-system gnu-build-system)
+
+   ;; When cross-compiling, this package depends upon a native install of
+   ;; itself.
+   (self-native-input? #t)
+
    (synopsis "File type guesser")
    (description
     "The file command is a file type guesser, a command-line tool that tells
-- 
GitLab