maintainer-feedback requested: [Bug 264783] graphics/mesa-dri pulls in the entire llvm package

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 20 Jun 2022 09:02:55 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 (Nobody)
<x11@FreeBSD.org> for maintainer-feedback:
Bug 264783: graphics/mesa-dri pulls in the entire llvm package
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264783



--- Description ---
I was hunting through my system for disk wasters and I noticed that
llvm13--which I don't use--is installed, consuming some 1.4 gigabytes of space.
 It gets pulled in because the mesa-dri package depends on it.	However, the
only thing mesa-dri seems to care about is libLLVM-13.so, a mere 94 megabytes.

Because X requires mesa-dri, any system using X will have over a gigabyte of
space that is very likely entirely wasted.  Disk is cheap.  It is not *that*
cheap. (Especially since a scan of my other disk wasters suggests that mesa-dri
is not the only package that pulls in large packages but uses only small parts
of them.)

Unless mesa-dri really needs a significant fraction of llvm's functionality, it
would make a lot more sense to simply include the needed parts of llvm in
mesa-dri.