Re: git: 6e38f0a6247d - main - graphics/mesa*: Drop llvm,noexport in Makefile.common

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 24 Nov 2023 10:26:19 UTC
Emmanuel Vadot <manu@FreeBSD.org> writes:

> ---
>  graphics/libosmesa/Makefile          | 2 +-
>  graphics/mesa-dri/Makefile           | 2 +-
>  graphics/mesa-dri/Makefile.common    | 2 +-
>  graphics/mesa-gallium-va/Makefile    | 2 +-
>  graphics/mesa-gallium-vdpau/Makefile | 2 +-
>  graphics/mesa-gallium-xa/Makefile    | 2 +-
>  lang/clover/Makefile                 | 2 +-
>  7 files changed, 7 insertions(+), 7 deletions(-)

Did you miss to adjust mesa-libs/Makefile ?

$ rg -l mesa-dri/Makefile.common
graphics/libosmesa/Makefile
graphics/mesa-dri/Makefile
graphics/mesa-gallium-va/Makefile
graphics/mesa-gallium-vdpau/Makefile
graphics/mesa-gallium-xa/Makefile
graphics/mesa-libs/Makefile
lang/clover/Makefile

> diff --git a/graphics/mesa-dri/Makefile.common b/graphics/mesa-dri/Makefile.common
> index 4767a0854f9f..c046d4f0eb4e 100644
> --- a/graphics/mesa-dri/Makefile.common
> +++ b/graphics/mesa-dri/Makefile.common
> @@ -45,7 +45,7 @@ USES+=	xorg
>  LIB_DEPENDS+=	libdrm.so:graphics/libdrm
>  .endif
>  
> -USES+=		compiler:c++11-lib bison llvm:noexport meson pathfix pkgconfig \
> +USES+=		compiler:c++11-lib bison meson pathfix pkgconfig \
>  		python:build shebangfix tar:xz

mesa-libs now fails to build:

  llvm-config found: NO need ['>= 5.0.0']
  Run-time dependency LLVM found: NO (tried cmake and config-tool)
  Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)
  Building fallback subproject with default_library=shared

  meson.build:1660:13: ERROR: Neither a subproject directory nor a llvm.wrap file was found.