Eli Schwartz <[email protected]> writes:

> This is required by policy, and at least in the case of
> meson-format-array also makes it easier to tell when a missing BDEPEND
> breaks things later on.
>

lgtm

> Bug: https://bugs.gentoo.org/967234
> Signed-off-by: Eli Schwartz <[email protected]>
> ---
>  eclass/meson.eclass | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/eclass/meson.eclass b/eclass/meson.eclass
> index 06675e02b82b..aff238ef5d26 100644
> --- a/eclass/meson.eclass
> +++ b/eclass/meson.eclass
> @@ -103,7 +103,7 @@ BDEPEND=">=dev-build/meson-1.2.3
>  #          '--unicode-16=𐐷', '--unicode-32=𐤅']
>  #
>  _meson_env_array() {
> -     meson-format-array "$@"
> +     meson-format-array "$@" || die
>  }
>  
>  # @FUNCTION: _meson_get_machine_info
> @@ -150,7 +150,7 @@ _meson_create_cross_file() {
>  
>       local fn=${T}/meson.${CHOST}.${ABI}.ini
>  
> -     cat > "${fn}" <<-EOF
> +     cat > "${fn}" <<-EOF || die "failed to create cross file"
>       [binaries]
>       ar = $(_meson_env_array "$(tc-getAR)")
>       c = $(_meson_env_array "$(tc-getCC)")
> @@ -207,7 +207,7 @@ _meson_create_native_file() {
>  
>       local fn=${T}/meson.${CBUILD}.${ABI}.ini
>  
> -     cat > "${fn}" <<-EOF
> +     cat > "${fn}" <<-EOF || die "failed to create native file"
>       [binaries]
>       ar = $(_meson_env_array "$(tc-getBUILD_AR)")
>       c = $(_meson_env_array "$(tc-getBUILD_CC)")

Reply via email to