[Bug 238906] graphics/mesa-dri: Allow building without LLVM

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 23 Feb 2025 00:42:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238906

--- Comment #26 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Nuno Teixeira from comment #19)

[This goes along with Helge's notes.]

I'd done a bulk -a build experiment
(that generally cause llvm20 to be used).
The mesa-libs log reports:

===>   Installing existing package /packages/All/llvm20-20.1.0.r1.pkg
[aarch64PBase] Installing llvm20-20.1.0.r1...
[aarch64PBase] `-- Installing libedit-3.1.20240808,1...
[aarch64PBase] `-- Extracting libedit-3.1.20240808,1: .......... done
[aarch64PBase] `-- Installing lua53-5.3.6_1...
[aarch64PBase] `-- Extracting lua53-5.3.6_1: .......... done
[aarch64PBase] `-- Installing perl5-5.36.3_2...
[aarch64PBase] `-- Extracting perl5-5.36.3_2: .......... done
[aarch64PBase] `-- Installing zstd-1.5.6...
[aarch64PBase] |   `-- Installing liblz4-1.10.0,1...
[aarch64PBase] |   `-- Extracting liblz4-1.10.0,1: .......... done
[aarch64PBase] `-- Extracting zstd-1.5.6: .......... done
[aarch64PBase] Extracting llvm20-20.1.0.r1: .......... done

And the mesa-dri log shows, not only llvm20
directly, but:

===>   Installing existing package /packages/All/mesa-libs-24.1.7_1.pkg
[aarch64PBase] Installing mesa-libs-24.1.7_1...
[aarch64PBase] `-- Installing expat-2.6.4...
[aarch64PBase] `-- Extracting expat-2.6.4: .......... done
[aarch64PBase] `-- Installing libXxf86vm-1.1.5...
[aarch64PBase] `-- Extracting libXxf86vm-1.1.5: .......... done
[aarch64PBase] `-- Installing libdrm-2.4.123,1...
[aarch64PBase] |   `-- Installing libpciaccess-0.18.1_1...
[aarch64PBase] |   | `-- Installing hwdata-0.392,1...
[aarch64PBase] |   | `-- Extracting hwdata-0.392,1: .......... done
[aarch64PBase] |   `-- Extracting libpciaccess-0.18.1_1: ........ done
[aarch64PBase] `-- Extracting libdrm-2.4.123,1: .......... done
[aarch64PBase] `-- Installing wayland-1.23.1...
[aarch64PBase] |   `-- Installing libepoll-shim-0.0.20240608...
[aarch64PBase] |   `-- Extracting libepoll-shim-0.0.20240608: .......... done
[aarch64PBase] |   `-- Installing libxml2-2.11.9...
[aarch64PBase] |   `-- Extracting libxml2-2.11.9: .......... done
[aarch64PBase] `-- Extracting wayland-1.23.1: .......... done
[aarch64PBase] `-- Installing zstd-1.5.6...
[aarch64PBase] |   `-- Installing liblz4-1.10.0,1...
[aarch64PBase] |   `-- Extracting liblz4-1.10.0,1: .......... done
[aarch64PBase] `-- Extracting zstd-1.5.6: .......... done
[aarch64PBase] Extracting mesa-libs-24.1.7_1: .......... done

But the report you got for what used (your equivalent
of) llvm20 here, did not show mesa-libs at all.

Your means of listing what uses the llvm that
you have been building has not been showing you
build-time dependencies that do not end up with
run-time dependencies.

But the build-time dependencies, if not removed,
still lead to needing to have built the llvm in
question (with sufficient options for all the
actual usage to be supported).

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