Skip to content

Commit

Permalink
ecm.eclass: Replace KDE_GCC_MINIMAL logic with tc-check-min_ver
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Dec 17, 2024
1 parent 1e09811 commit 228669d
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions eclass/ecm.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -488,18 +488,9 @@ _ecm_deprecated_check_gcc_version() {
if ver_test ${KFMIN} -ge 6.9; then
eqawarn "QA notice: ecm_pkg_${1} has become a no-op."
eqawarn "It is no longer being exported with KFMIN >=6.9.0."
return
fi
if [[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]] && tc-is-gcc; then

local version=$(gcc-version)

debug-print "GCC version check activated"
debug-print "Version detected: ${version}"
debug-print "Version required: ${KDE_GCC_MINIMAL}"

ver_test ${version} -lt ${KDE_GCC_MINIMAL} &&
die "Sorry, but gcc-${KDE_GCC_MINIMAL} or later is required for this package (found ${version})."
else
[[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]] &&
tc-check-min_ver gcc ${KDE_GCC_MINIMAL}
fi
}

Expand Down

0 comments on commit 228669d

Please sign in to comment.