]> code.ossystems Code Review - openembedded-core.git/commit
file: don't replace host file when built natively
authorRoss Burton <ross.burton@intel.com>
Fri, 16 Oct 2015 22:02:26 +0000 (23:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:42:38 +0000 (12:42 +0100)
commitd48c0191871ce6b6fbf17d89b8f9d2750b64d671
treed0d13aa0e8efe67653fa8151f9df4e15cbf37e9d
parent5dad6758980233f976e39357b91b9cc673a574af
file: don't replace host file when built natively

To avoid races over the file binaries being replaced mid-build we made
file-native an assume-provided binary and check for it at startup, but target
file still needs a native file binary of the same version to compile the magic
data.

The least invasive way of doing this is to build a native file don't put it on
PATH, and tell the target build where to find the native binary.  We do however
want the native libmagic to be installed normally (as for example rpm and
subversion need it) so we can't use NATIVE_PACKAGE_PATH_SUFFIX as that change
libdir.

[ YOCTO #8144 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/file/file/host-file.patch [new file with mode: 0644]
meta/recipes-devtools/file/file_5.24.bb