commit:     52ee3665d1b64abc9435d07d0329b2af2b9fc4a4
Author:     François-Xavier Carton <fx.carton91 <AT> gmail <DOT> com>
AuthorDate: Tue Mar 15 17:58:40 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 16 17:06:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52ee3665

fortran-2.eclass: quote variables to allow FC containing spaces

Signed-off-by: François-Xavier Carton <fx.carton91 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24595
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/fortran-2.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index 2409cfcda5be..8fea2b4ceced 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -229,11 +229,11 @@ _fortran_test_function() {
        : ${FORTRAN_STANDARD:=77}
        for dialect in ${FORTRAN_STANDARD}; do
                case ${dialect} in
-                       77) _fortran_compile_test $(tc-getF77) || \
+                       77) _fortran_compile_test "$(tc-getF77)" || \
                                _fortran_die_msg ;;
-                       90|95) _fortran_compile_test $(tc-getFC) 90 || \
+                       90|95) _fortran_compile_test "$(tc-getFC)" 90 || \
                                _fortran_die_msg ;;
-                       2003) _fortran_compile_test $(tc-getFC) 03 || \
+                       2003) _fortran_compile_test "$(tc-getFC)" 03 || \
                                _fortran_die_msg ;;
                        2008) die "Future" ;;
                        *) die "${dialect} is not a Fortran dialect." ;;

Reply via email to