sys-apps/file: apply missing magic.h fix from bug #586444

The bug #586444 manifested on a cross-compiler case as well
when we built native 'file'.

Reported-by: n05 on #gentoo-embedded

Package-Manager: portage-2.3.0
This commit is contained in:
Sergei Trofimovich
2016-09-18 13:39:26 +01:00
parent 02cd747eb9
commit fc034c82b2
2 changed files with 2 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ multilib_src_compile() {
src_compile() {
if tc-is-cross-compiler && ! ROOT=/ has_version "~${CATEGORY}/${P}" ; then
emake -C "${WORKDIR}"/build/src magic.h #586444
emake -C "${WORKDIR}"/build/src file
PATH="${WORKDIR}/build/src:${PATH}"
fi

View File

@@ -85,6 +85,7 @@ multilib_src_compile() {
src_compile() {
if tc-is-cross-compiler && ! ROOT=/ has_version "~${CATEGORY}/${P}" ; then
emake -C "${WORKDIR}"/build/src magic.h #586444
emake -C "${WORKDIR}"/build/src file
PATH="${WORKDIR}/build/src:${PATH}"
fi