Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928667 - app-emulation/qemu: remove virtual/opengl dependency for USE=opengl
Summary: app-emulation/qemu: remove virtual/opengl dependency for USE=opengl
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-06 07:16 UTC by Nicu Borta
Modified: 2024-10-11 23:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicu Borta 2024-04-06 07:16:27 UTC
qemu-system-x86_64 doesn't actually link against libGL.so when built with this flag, and virtual/opengl pulls in a lot of X11 packages which is not ideal on Wayland.

USE=opengl is actually needed on Wayland for the virgl renderer.

8.2.1 and 8.2.2 build successfully and are perfectly functional without virtual/opengl.

Thus, we could either:

1) replace the virtual/opengl dependency with media-libs/libglvnd
(Theoretically, this is not needed, as the qemu binaries are not directly linked to any libraries provided by libglvnd either)

2) remove the virtual/opengl dependency entirely
Comment 1 Filip Kobierski 2024-10-11 23:34:44 UTC
> qemu-system-x86_64 doesn't actually link against libGL.so when built with this flag

True.

> USE=opengl is actually needed on Wayland for the virgl renderer.

Then maybe a better approach would be to add a wayland USE flag and have something like

virgl? ( wayland? ( virtual/opengl ) )

?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-11 23:47:56 UTC
(In reply to Filip Kobierski from comment #1)
> > qemu-system-x86_64 doesn't actually link against libGL.so when built with this flag
> 
> True.
> 
> > USE=opengl is actually needed on Wayland for the virgl renderer.
> 
> Then maybe a better approach would be to add a wayland USE flag and have
> something like
> 
> virgl? ( wayland? ( virtual/opengl ) )
> 
> ?

I don't think that's the right direction. The point is to kill virtual/opengl entirely. It just needs more planning and someone to do the full migration.