commit:     b60e6814ea6c95cedac4e03c2a1ce574207dea30
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 25 03:07:30 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Jun 25 03:09:12 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b60e6814

sys-apps/file: build magic.h before libmagic.la #586444

Since the header is a BUILT_SOURCES which is normally created only when
you run `make all`, make sure we generate it by hand before building the
library in the multilib case.

 sys-apps/file/file-5.28.ebuild | 4 +++-
 sys-apps/file/file-9999.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/sys-apps/file/file-5.28.ebuild b/sys-apps/file/file-5.28.ebuild
index 6ebccd6..ee20eaa 100644
--- a/sys-apps/file/file-5.28.ebuild
+++ b/sys-apps/file/file-5.28.ebuild
@@ -78,7 +78,9 @@ multilib_src_compile() {
        if multilib_is_native_abi ; then
                emake
        else
-               emake -C src libmagic.la
+               cd src
+               emake magic.h #586444
+               emake libmagic.la
        fi
 }
 

diff --git a/sys-apps/file/file-9999.ebuild b/sys-apps/file/file-9999.ebuild
index 658a92f..1bdaecc 100644
--- a/sys-apps/file/file-9999.ebuild
+++ b/sys-apps/file/file-9999.ebuild
@@ -78,7 +78,9 @@ multilib_src_compile() {
        if multilib_is_native_abi ; then
                emake
        else
-               emake -C src libmagic.la
+               cd src
+               emake magic.h #586444
+               emake libmagic.la
        fi
 }
 

Reply via email to