sys-apps/file: apply missing magic.h fix from bug #586444
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 18 Sep 2016 12:39:26 +0000 (13:39 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 18 Sep 2016 12:39:36 +0000 (13:39 +0100)
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

sys-apps/file/file-5.28.ebuild
sys-apps/file/file-9999.ebuild

index fefe087b54f41b1b1f4cbd9735576ac3126d751a..e70a726a87fae1d1a71f2b7c7394a00dfadffa7c 100644 (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
index 466e1944b0931caa971fac3d1c36addcf9908f63..b067a3e2afbdc443ae7b9fdb66cdb9b79631676a 100644 (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