# HG changeset patch # User Christophe Lincoln # Date 1393166963 -3600 # Node ID 9b32b6182692a9925d68cc49115a4016ae26a2e5 # Parent 30509da0e83bb6b61200865e00d74a9cac54ad40 arm: fix file cross compilation and add testsuite diff -r 30509da0e83b -r 9b32b6182692 file/receipt --- a/file/receipt Sun Feb 23 15:40:01 2014 +0100 +++ b/file/receipt Sun Feb 23 15:49:23 2014 +0100 @@ -14,6 +14,11 @@ DEPENDS="zlib libmagic" BUILD_DEPENDS="zlib-dev python" +# Handle cross compilation. python is installed in a ARM cook env. +case "$ARCH" in + arm) BUILD_DEPENDS="" ;; +esac + # Rules to configure and make the package. compile_rules() { @@ -36,3 +41,9 @@ #cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/share/misc $fs/usr/share } + +# Be sure it as cross compile. +testsuite() +{ + readelf -h $install/usr/bin/file +}