commit:     3b414dbc1a8f3b4025c9b629a3a0fa3d8e756ec1
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  4 05:26:58 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Dec  4 05:38:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b414dbc

media-libs/nas: workaround imake argument splitting

IMAKECPP normally doesn't support arguments but was given
the same basic support as IMAKEINCLUDE which doesn't handle
multiple spaces or tab, and an empty get_abi_CFLAGS would
result in two spaces without an argument.

So use an array and word splitting to normalize.

Closes: https://bugs.gentoo.org/884203
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-libs/nas/nas-1.9.5.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/media-libs/nas/nas-1.9.5.ebuild b/media-libs/nas/nas-1.9.5.ebuild
index d7e197596b34..361d40334d52 100644
--- a/media-libs/nas/nas-1.9.5.ebuild
+++ b/media-libs/nas/nas-1.9.5.ebuild
@@ -53,8 +53,10 @@ multilib_src_configure() {
        pushd config || die
        econf
        popd || die
+
+       local cpp=($(get_abi_CHOST ${DEFAULT_ABI})-gcc $(get_abi_CFLAGS) -E) 
#884203
        CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
-               IMAKECPP="${IMAKECPP:-$(get_abi_CHOST ${DEFAULT_ABI})-gcc 
$(get_abi_CFLAGS) -E}" \
+               IMAKECPP="${IMAKECPP:-${cpp[*]}}" \
                xmkmf -a || die
 }
 

Reply via email to