commit: f467dacbb0418ee3380c443f15c1cde69287fb84
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 28 16:01:12 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Dec 28 16:01:12 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f467dacb
fortran-2.eclass: debug-print-function in all functions
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
eclass/fortran-2.eclass | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index af3629a..867f7c0 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -86,6 +86,7 @@ unset _f_use
# @CODE
fortran_int64_abi_fflags() {
debug-print-function ${FUNCNAME} "${@}"
+
_FC=$(tc-getFC)
if [[ ${_FC} == *gfortran* ]]; then
echo "-fdefault-integer-8"
@@ -101,6 +102,8 @@ fortran_int64_abi_fflags() {
# @DESCRIPTION:
# writes fortran test code
_fortran_write_testsuite() {
+ debug-print-function ${FUNCNAME} "${@}"
+
local filebase=${T}/test-fortran
# f77 code
@@ -127,6 +130,8 @@ _fortran_write_testsuite() {
# Takes fortran compiler as first argument and dialect as second.
# Checks whether the passed fortran compiler speaks the fortran dialect
_fortran_compile_test() {
+ debug-print-function ${FUNCNAME} "${@}"
+
local filebase=${T}/test-fortran
local fcomp=${1}
local fdia=${2}
@@ -152,6 +157,8 @@ _fortran_compile_test() {
# @DESCRIPTION:
# See if the fortran supports OpenMP.
_fortran-has-openmp() {
+ debug-print-function ${FUNCNAME} "${@}"
+
local flag
local filebase=${T}/test-fc-openmp
local fcode=${filebase}.f
@@ -179,6 +186,8 @@ _fortran-has-openmp() {
# @DESCRIPTION:
# Detailed description how to handle fortran support
_fortran_die_msg() {
+ debug-print-function ${FUNCNAME} "${@}"
+
echo
eerror "Please install currently selected gcc version with USE=fortran."
eerror "If you intend to use a different compiler then gfortran, please"
@@ -194,6 +203,8 @@ _fortran_die_msg() {
# Internal test function for working fortran compiler.
# It is called in fortran-2_pkg_setup.
_fortran_test_function() {
+ debug-print-function ${FUNCNAME} "${@}"
+
local dialect
: ${F77:=$(tc-getFC)}
@@ -258,6 +269,8 @@ _fortran-2_pkg_setup() {
# Setup functionality,
# checks for a valid fortran compiler and optionally for its openmp support.
fortran-2_pkg_setup() {
+ debug-print-function ${FUNCNAME} "${@}"
+
case ${EAPI:-0} in
0|1|2|3)
eqawarn "Support for EAPI < 4 will be removed from the"