[gentoo-dev] Ada eclass support for gcc_12.2.0
From
Alfredo Tupone@21:1/5 to
All on Thu Sep 15 09:10:01 2022
I would like to share the incoming changes to ada eclass to add support
to sys-devel/gcc-12.2.0
One change is to not depend on gcc SLOT like for gnat the dependency in
on dev-lang/gnat-gpl SLOT, as gcc slot is 12 but the eclass need to
point to (eg.) gnatbind-12.2.0. Maybe in the future we could add
SUBSLOT to gcc.
So the dependency now is against gcc-12.2.0*
The other changes are trivial
Alfredo
diff --git a/eclass/ada.eclass b/eclass/ada.eclass
index 0bf3dcfe41cc..e6027e38393b 100644
--- a/eclass/ada.eclass
+++ b/eclass/ada.eclass
@@ -46,58 +46,61 @@ EXPORT_FUNCTIONS pkg_setup
# The dependency string is conditional on ADA_TARGET.
#
# Example use:
# @CODE
# RDEPEND="${ADA_DEPS}
# dev-foo/mydep"
# DEPEND="${RDEPEND}"
# @CODE
#
# @ECLASS_VARIABLE: _ADA_ALL_IMPLS
# @INTERNAL
# @DESCRIPTION:
# All supported Ada implementations, most preferred last.
_ADA_ALL_IMPLS=(
- gnat_2020 gnat_2021
+ gnat_2020 gnat_2021 gcc_12_2_0
)
readonly _ADA_ALL_IMPLS
# @FUNCTION: _ada_impl_supported
# @USAGE: <impl>
# @INTERNAL
# @DESCRIPTION:
# Check whether the implementation <impl> (ADA_COMPAT-form)
# is still supported.
#
# Returns 0 if the implementation is valid and supported. If it is
# unsupported, returns 1 -- and the caller should ignore the entry.
# If it is invalid, dies with an appopriate error messages.
_ada_impl_supported() {
debug-print-function ${FUNCNAME} "${@}"
[[ ${#} -eq 1 ]] || die "${FUNCNAME}: takes exactly 1 argument (