toolchain.eclass: move --build dependencies to BDEPEND
authorDavid Michael <fedora.dm0@gmail.com>
Sun, 8 Mar 2020 15:33:19 +0000 (11:33 -0400)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 9 Mar 2020 23:57:20 +0000 (23:57 +0000)
This allows cross-compiling comilers with a much smaller dependency set.

Bug: https://bugs.gentoo.org/700898
Signed-off-by: David Michael <fedora.dm0@gmail.com>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass

index ece57dafbd75a77641ec8fc244d8269cba587147..9f4359219225deac296c10464df4c6e933b6efa7 100644 (file)
@@ -231,7 +231,7 @@ if tc_has_feature graphite ; then
        RDEPEND+=" graphite? ( >=dev-libs/isl-0.14:0= )"
 fi
 
-DEPEND="${RDEPEND}
+BDEPEND="
        >=sys-devel/bison-1.875
        >=sys-devel/flex-2.5.4
        nls? ( sys-devel/gettext )
@@ -239,6 +239,7 @@ DEPEND="${RDEPEND}
                >=dev-util/dejagnu-1.4.4
                >=sys-devel/autogen-5.5.4
        )"
+DEPEND="${RDEPEND}"
 
 if tc_has_feature gcj ; then
        GCJ_DEPS=">=media-libs/libart_lgpl-2.1"
@@ -264,6 +265,10 @@ if tc_has_feature zstd ; then
        DEPEND+=" zstd? ( app-arch/zstd )"
 fi
 
+case ${EAPI:-0} in
+       5*|6) DEPEND+=" ${BDEPEND}" ;;
+esac
+
 PDEPEND=">=sys-devel/gcc-config-1.7"
 
 #---->> S + SRC_URI essentials <<----