FS#72556 - [mesa-demos] Consider splitting package

Attached to Project: Arch Linux
Opened by Ronan Pigott (Brocellous) - Wednesday, 27 October 2021, 09:07 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 27 November 2021, 17:11 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No


Description: Consider splitting useful programs out of the mesa-demos package.

I know it isn't really standard practice to split packages, but sometimes exceptions have been made and I think this is a good case.

mesa-demos is an odd package. It has glxinfo, eglinfo, es2_info, and other *info's which are eminently useful programs. They are commonly used/requested in bug reporting, and they're a good first step in debugging and verification. glxinfo at least is referenced all over the wiki.

But mesa-demos also contains literally _hundreds_ of next-to-worthless binaries that seriously pollute /usr/bin. glxgears and some of its *gears and friends might be useful demos, but passed that the number of commands from this package a user intentionally runs is probably very low. Emphasis on intentionally, because almost all of them have short names that will easily slip into your shell completions or dmenu_run selection. Finally, they all lie flat in /usr/bin so it's not simple to NoExtract them all.

For that reason, I think a "mesa-utils" (like "libva-utils", provider of vainfo) or "mesa-tools" (like "vulkan-tools", provider of vulkaninfo) could be split from mesa-demos that has some select useful packages and leaves the junk.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 27 November 2021, 17:11 GMT
Reason for closing:  Implemented
Comment by Antonio Rojas (arojas) - Wednesday, 27 October 2021, 10:51 GMT
FYI Plasma 5.24 will depend on glxinfo. Personally I don't care whether it's split or not, but I anticipate many complaints if Plasma pulls the whole mesa-demos.
Comment by Bruno Pagani (ArchangeGabriel) - Saturday, 06 November 2021, 22:20 GMT
We have https://aur.archlinux.org/packages/glxinfo in AUR for this kind of reasons (though it seems outdated). I guess people using lutris (like me, but I no-op mesa-demos) also are not really fond of pulling mesa-demos.

So, +1 in favour of splitting, especially if Plasma 5.24 requires glxinfo.
Comment by Andreas Radke (AndyRTR) - Sunday, 07 November 2021, 08:47 GMT
splitting propsal: only glxgears and glxinfo move to mesa-utils or -glxutils.
   PKGBUILD (1.7 KiB)
Comment by Antonio Rojas (arojas) - Sunday, 07 November 2021, 09:34 GMT
eglinfo should probably be also split, it's semantically similar to glxinfo (and will also be used by Plasma 5.24)
Comment by Ronan Pigott (Brocellous) - Sunday, 07 November 2021, 09:58 GMT
Here's what I could find, for inspiration:


We definitely don't need 2 packages. I think a package with glxinfo and eglinfo would be fine, and glxgears maybe.
Comment by Ronan Pigott (Brocellous) - Monday, 22 November 2021, 00:41 GMT
Any further thoughts on this? I personally think a mesa-utils package with only glxinfo and eglinfo would be suitable.
Comment by Andreas Radke (AndyRTR) - Tuesday, 23 November 2021, 20:56 GMT
Please try 8.4.0-5 from testing repo.
Comment by Ronan Pigott (Brocellous) - Thursday, 25 November 2021, 21:41 GMT
Works great, thanks!