[Bug 264783] graphics/mesa-dri pulls in the entire llvm package

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 21 Jun 2022 09:49:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264783

--- Comment #7 from Alexey Dokuchaev <danfe@FreeBSD.org> ---
(In reply to Emmanuel Vadot from comment #6)
> Unless you want us to stay on very old version of mesa this will never
> happens.
It depends on the particular definition of "very old" (it's quite stretchable
these days, unfortunately) but in any case, requiring a typical user to install
multiple LLVM ports is acceptable for a -devel port, less so for the mainline
one.

> There is more component than swrast that requires llvm in mesa (crocus/iris
> /clover/etc ...) and they all require a higher version of llvm than
> LLVM_DEFAULT.
Per what I'm reading in the mesa-21.3.8/meson.build, our current version:

if with_amd_vk or with_gallium_radeonsi
  _llvm_version = '>= 11.0.0'
elif with_clc
  _llvm_version = '>= 10.0.0'
elif with_gallium_opencl
  _llvm_version = '>= 8.0.0'
elif with_gallium_swr
  _llvm_version = '>= 6.0.0'
else
  _llvm_version = '>= 3.9.0'
endif

Doesn't look like "they all require a higher version" to me, I see just two,
and wondering if that 10.0.0 can be easily downgraded to nine (I care less for
the topmost eleven since I don't have appropriate hardware).

-- 
You are receiving this mail because:
You are the assignee for the bug.