commit:     7141b8da59057bac80b0e2e5d5ea34a70770ece2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 26 04:06:53 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 26 04:07:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7141b8da

toolchain.eclass: only >=16's cobol needs libxml2

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index a72b42177a81..514d4def64af 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -363,7 +363,7 @@ GMP_MPFR_DEPS=">=dev-libs/gmp-4.3.2:0= 
>=dev-libs/mpfr-2.4.2:0="
 RDEPEND+=" ${GMP_MPFR_DEPS}"
 RDEPEND+=" >=dev-libs/mpc-0.8.1:0="
 
-if tc_has_feature cobol ; then
+if tc_has_feature cobol && tc_version_is_at_least 16.0.0_p20251019 ; then
        RDEPEND+=" cobol? ( dev-libs/libxml2:= )"
 fi
 

Reply via email to