commit: fc034c82b286e891d50f2c1e516640ee3107104c
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 18 12:39:26 2016 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Sep 18 12:39:36 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc034c82
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
sys-apps/file/file-5.28.ebuild | 1 +
sys-apps/file/file-9999.ebuild | 1 +
2 files changed, 2 insertions(+)
diff --git a/sys-apps/file/file-5.28.ebuild b/sys-apps/file/file-5.28.ebuild
index fefe087..e70a726 100644
--- a/sys-apps/file/file-5.28.ebuild
+++ b/sys-apps/file/file-5.28.ebuild
@@ -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
diff --git a/sys-apps/file/file-9999.ebuild b/sys-apps/file/file-9999.ebuild
index 466e194..b067a3e 100644
--- a/sys-apps/file/file-9999.ebuild
+++ b/sys-apps/file/file-9999.ebuild
@@ -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