commit:     c7cd3be059f221c6333980f155c1bafca9769ed0
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 17 16:51:23 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 17 16:51:56 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7cd3be0

toolchain.eclass: fix USE=doc build

Thanks to Dirk Sondermann for pointing out the precise issue.

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

 eclass/toolchain.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 3013e5c9aeca..51b28b380584 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1687,8 +1687,8 @@ gcc_do_make() {
 
        if ! is_crosscompile && _tc_use_if_iuse cxx && _tc_use_if_iuse doc ; 
then
                if type -p doxygen > /dev/null ; then
-                       cd "${CTARGET}"/libstdc++-v3/doc
-                       emake -C "${CTARGET}"/libstdc++-v3/doc doc-man-doxygen
+                       cd "${CTARGET}"/libstdc++-v3/doc || die
+                       emake doc-man-doxygen
 
                        # Clean bogus manpages. bug #113902
                        find -name '*_build_*' -delete

Reply via email to