summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-07-07 04:41:30 +1000
committerMichael Palimaka <kensington@gentoo.org>2016-07-07 04:49:45 +1000
commit28cdba97c2b084c3b2de6455f3fdaccf9d395b7c (patch)
tree9f745539a045d34177aa5098d041adf346103cdf /eclass
parentkde5.eclass: Simplify blocked kde4-l10n logic (diff)
downloadgentoo-28cdba97c2b084c3b2de6455f3fdaccf9d395b7c.tar.gz
gentoo-28cdba97c2b084c3b2de6455f3fdaccf9d395b7c.tar.bz2
gentoo-28cdba97c2b084c3b2de6455f3fdaccf9d395b7c.zip
kde5.eclass: add gcc version check debugging information
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde5-functions.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index 2c45abc59fb0..ad3034a491a1 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -84,9 +84,18 @@ _check_gcc_version() {
local min_major=${KDE_GCC_MINIMAL%.*}
local min_minor=${KDE_GCC_MINIMAL#*.}
+ debug-print "GCC version check activated"
+ debug-print "Version detected:"
+ debug-print " - Full: ${version}"
+ debug-print " - Major: ${major}"
+ debug-print " - Minor: ${minor}"
+ debug-print "Version required:"
+ debug-print " - Major: ${min_major}"
+ debug-print " - Minor: ${min_minor}"
+
[[ ${major} -lt ${min_major} ]] || \
( [[ ${major} -eq ${min_major} && ${minor} -lt ${min_minor} ]] ) \
- && die "Sorry, but gcc-${KDE_GCC_MINIMAL} or later is required for this package."
+ && die "Sorry, but gcc-${KDE_GCC_MINIMAL} or later is required for this package (found ${version})."
fi
}