Skip to content

Commit

Permalink
sys-apps/file: apply missing magic.h fix from bug #586444
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Sergei Trofimovich committed Sep 18, 2016
1 parent 02cd747 commit fc034c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys-apps/file/file-5.28.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions sys-apps/file/file-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc034c8

Please sign in to comment.