commit:     6ddf200d6670ca82f7397bb898aa35ba1137c259
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 15 11:38:38 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 15 11:39:08 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ddf200d

app-doc/doxygen: fix USE=doc build

* Build source code first, as per upstream
* Use -j1 when building docs to avoid strange race condition

Closes: https://bugs.gentoo.org/770070
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-doc/doxygen/doxygen-1.9.1.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/app-doc/doxygen/doxygen-1.9.1.ebuild 
b/app-doc/doxygen/doxygen-1.9.1.ebuild
index 98132f67743..2b2dd947144 100644
--- a/app-doc/doxygen/doxygen-1.9.1.ebuild
+++ b/app-doc/doxygen/doxygen-1.9.1.ebuild
@@ -117,6 +117,8 @@ src_configure() {
 }
 
 src_compile() {
+       cmake_src_compile
+
        if use doc; then
                export VARTEXFONTS="${T}/fonts" # bug #564944
 
@@ -126,10 +128,9 @@ src_compile() {
                                || die "disabling dot failed"
                fi
 
-               cmake_src_compile docs
+               # -j1 for bug #770070
+               cmake_src_compile docs -j1
        fi
-
-       cmake_src_compile
 }
 
 src_install() {

Reply via email to