commit: 8d0407da10a6583cf4b30a4edb8f2f2f14e0e328
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 25 00:56:42 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 25 01:05:31 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d0407da
toolchain.eclass: depend on libxml2 at runtime for libgcobol
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 0acb2cb365b7..a72b42177a81 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -340,7 +340,7 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then
tc_version_is_at_least 14.1 ${PV} && IUSE+=" rust" TC_FEATURES+=( rust )
tc_version_is_at_least 13.3.1_p20250522 ${PV} && IUSE+=" time64"
tc_version_is_at_least 15.1 ${PV} && IUSE+=" libgdiagnostics"
- tc_version_is_at_least 15.1 ${PV} && IUSE+=" cobol"
+ tc_version_is_at_least 15.1 ${PV} && IUSE+=" cobol" TC_FEATURES+=(
cobol )
fi
if tc_version_is_at_least 10; then
@@ -363,6 +363,10 @@ 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
+ RDEPEND+=" cobol? ( dev-libs/libxml2:= )"
+fi
+
if tc_has_feature objc-gc ; then
RDEPEND+=" objc-gc? ( >=dev-libs/boehm-gc-7.4.2 )"
fi