Re: graphics/mesa-dri build fail with intel-rt activated on aarch64

From: Emmanuel Vadot <manu_at_bidouilliste.com>
Date: Fri, 23 Aug 2024 14:04:36 UTC
 Hi,

On Fri, 23 Aug 2024 08:10:10 +0100
Nuno Teixeira <eduardo@freebsd.org> wrote:

> Hello,
> 
> Could anyone try to build graphics/mesa-dri so I can check why is it
> failing on configure?
> 
> Acording to
> e313acaea33b - main - graphics/mesa: Unbreak on !amd64 commit it should
> disable intel-rt on !amd64:
> 
> + anv_MESON_ON=  ${"${ARCH:Mamd64}":?:-Dintel-rt=disabled} #
> https://gitlab.freedesktop.org/mesa/mesa/-/issues/10629
> 
> But I only could build it if I add '-Dintel-rt=disabled' to MESON_ARGS
> directly.
> 
> Maybe something is not parsed correcly and it isn't geting disabled on
> aarch64 (rpi4).
> 
> I'm suspecting that an if condition will be needed like applied to other
> mesa ports:
> 
> +.if ${ARCH} != amd64
> +MESON_ARGS+=   -Dintel-rt=disabled # https://gitlab.freedesktop.org/mesa/
> mesa/-/issues/10629
> +.endif
> 
> Thanks,
> 
> -- 
> Nuno Teixeira
> FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org

 This is now fixed, the problem was that since anv is exluded on
aarch64 the anv_MESON_ON was never appended to MESON_ARGS.

 Thanks for the report.

-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>