Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 774717

Summary: dev-qt/qtwebengine-5.15.2 without X11 dependencies
Product: Gentoo Linux Reporter: Michel Ganguin <ganguin>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: UNCONFIRMED ---    
Severity: normal CC: gxldstein, jstein, ms, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Add X use flag
add X use flag with disalbing X auto-detection

Description Michel Ganguin 2021-03-07 18:37:19 UTC
qtwebengine does not require X11 (neither build time nor runtime) when running on non-x11 platforms (eglfs, linuxfb, wayland). However the ebuild requires mesa[X] and multiple x11-libs/* libraries.

I suggest adding the X use flag to make it optional. The flag would be default enabled or maybe even masked if this change is considered as potentially impacting people needing X dependency.

Reproducible: Always

Steps to Reproduce:
1. Have mesa built without X
2. emerge qtwebengine
Actual Results:  
emerge qtwebengine wants a use flag change on mesa and pulls x11-libs/* dependencies

Expected Results:  
build without X dependencies
Comment 1 Michel Ganguin 2021-03-07 18:40:24 UTC
Created attachment 689856 [details, diff]
Add X use flag

Add X use flag:
* use it in the mesa use flag dependency
* place x11-libs/* behind the X use flag (except x11-libs/libdrm which is not really an x11 package)
Comment 2 Andreas Sturmlechner gentoo-dev 2021-08-28 10:40:33 UTC
This patch is incomplete without setting an according qtwebengine build switch. Is there such a build switch? If not, this relies on automagic and cannot be exposed to an IUSE.
Comment 3 Michel Ganguin 2022-01-15 18:07:15 UTC
Created attachment 762257 [details, diff]
add X use flag with disalbing X auto-detection

Second tentative, took me a while to get into QT build system and portage qt5-build eclass. Hope this will go through.
Comment 4 Michel Ganguin 2022-04-15 09:57:30 UTC
Any updates? it has been about 3 months and I implemented @Andreas Sturmlechner recommendation.