commit:     b7d492ff93212de55b9844dc6aabcef5493c69d5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 25 23:55:35 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 26 00:00:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7d492ff

dev-libs/libaio: [QA] fix tc-get* quoting

This can cause build problems for e.g. 32-bit (gcc -m32 ...)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libaio/libaio-0.3.112.ebuild | 12 ++++++------
 dev-libs/libaio/libaio-9999.ebuild    | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/dev-libs/libaio/libaio-0.3.112.ebuild 
b/dev-libs/libaio/libaio-0.3.112.ebuild
index a83b08bd9822..8c82444565a2 100644
--- a/dev-libs/libaio/libaio-0.3.112.ebuild
+++ b/dev-libs/libaio/libaio-0.3.112.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -46,17 +46,17 @@ multilib_src_configure() {
        if use arm ; then
                # When building for thumb, we can't allow frame pointers.
                # http://crbug.com/464517
-               if $(tc-getCPP) ${CFLAGS} ${CPPFLAGS} - <<<$'#ifndef 
__thumb__\n#error\n#endif' >&/dev/null ; then
+               if "$(tc-getCPP)" ${CFLAGS} ${CPPFLAGS} - <<<$'#ifndef 
__thumb__\n#error\n#endif' >&/dev/null ; then
                        append-flags -fomit-frame-pointer
                fi
        fi
 }
 
 _emake() {
-       CC=$(tc-getCC) \
-       AR=$(tc-getAR) \
-       RANLIB=$(tc-getRANLIB) \
-       ABI_LIBDIR=$(get_libdir) \
+       CC="$(tc-getCC)" \
+       AR="$(tc-getAR)" \
+       RANLIB="$(tc-getRANLIB)" \
+       ABI_LIBDIR="$(get_libdir)" \
        CFLAGS_WERROR= \
        emake "$@"
 }

diff --git a/dev-libs/libaio/libaio-9999.ebuild 
b/dev-libs/libaio/libaio-9999.ebuild
index 232c53681871..87ca662c92c6 100644
--- a/dev-libs/libaio/libaio-9999.ebuild
+++ b/dev-libs/libaio/libaio-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -46,17 +46,17 @@ multilib_src_configure() {
        if use arm ; then
                # When building for thumb, we can't allow frame pointers.
                # http://crbug.com/464517
-               if $(tc-getCPP) ${CFLAGS} ${CPPFLAGS} - <<<$'#ifndef 
__thumb__\n#error\n#endif' >&/dev/null ; then
+               if "$(tc-getCPP)" ${CFLAGS} ${CPPFLAGS} - <<<$'#ifndef 
__thumb__\n#error\n#endif' >&/dev/null ; then
                        append-flags -fomit-frame-pointer
                fi
        fi
 }
 
 _emake() {
-       CC=$(tc-getCC) \
-       AR=$(tc-getAR) \
-       RANLIB=$(tc-getRANLIB) \
-       ABI_LIBDIR=$(get_libdir) \
+       CC="$(tc-getCC)" \
+       AR="$(tc-getAR)" \
+       RANLIB="$(tc-getRANLIB)" \
+       ABI_LIBDIR="$(get_libdir)" \
        CFLAGS_WERROR= \
        emake "$@"
 }

Reply via email to