Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739598 - media-libs/mesa[libglvnd] fails to build if all other flags are disabled
Summary: media-libs/mesa[libglvnd] fails to build if all other flags are disabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 739968 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-08-30 06:39 UTC by kfm
Modified: 2020-12-04 22:17 UTC (History)
2 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 kfm 2020-08-30 06:39:19 UTC
To reproduce, simply run:-

  USE="-* libglvnd" emerge mesa

The build system will proceed to raise the following error:-

  ERROR: Problem encountered: glvnd requires DRI based GLX and/or EGL

However, USE="-* X libglvnd" works. Therefore, it seems that the ebuild should assert "libglvnd? ( X )" in REQUIRED_USE.
Comment 1 Matt Turner gentoo-dev 2020-08-30 18:52:23 UTC
Thanks, that indeed looks like a corner case I haven't noticed.

I'm trying to figure out whether there's a legitimate use case for USE="-X -egl". I guess if you wanted OpenCL support provided by radeonsi or something, but not OpenGL support? I guess that is a possibility.
Comment 2 kfm 2020-08-30 22:14:48 UTC
(In reply to Matt Turner from comment #1)
> I'm trying to figure out whether there's a legitimate use case for USE="-X
> -egl". I guess if you wanted OpenCL support provided by radeonsi or
> something, but not OpenGL support? I guess that is a possibility.

That's an interesting consideration. It's not entirely clear to me either.

Incidentally, the reason that I discoverd this bug is because I was in the process of minimally satisfying an in-house application that utilitises a python venv. One of the modules insists on dragging in cv2 (opencv) which, unfortunately, is a wheel. It installs a pre-compiled ELF library with frequently changing requirements. Recently, it changed so as to require libGL, libGLdispatch and such. None of the implied functionality is actually being used. Eventually, I hope to eliminate the use of wheels entirely.
Comment 3 Matt Turner gentoo-dev 2020-11-19 20:05:19 UTC
*** Bug 739968 has been marked as a duplicate of this bug. ***
Comment 4 Larry the Git Cow gentoo-dev 2020-12-01 23:06:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d462cceb526ad5500b58de2ad571ffee4fd505c

commit 8d462cceb526ad5500b58de2ad571ffee4fd505c
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-12-01 23:00:37 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-12-01 23:05:51 +0000

    media-libs/mesa: Allow building with USE="-X -egl"
    
    Closes: https://bugs.gentoo.org/739598
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-20.3.0_rc3.ebuild | 7 ++++++-
 media-libs/mesa/mesa-9999.ebuild       | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2020-12-04 22:17:39 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19c81d935a3fedfb0d6e23692bfa922979d05e77

commit 19c81d935a3fedfb0d6e23692bfa922979d05e77
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-12-04 22:11:49 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-12-04 22:17:27 +0000

    media-libs/mesa: Version bump to 20.2.4
    
    Bug: https://bugs.gentoo.org/739598
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/Manifest           |   1 +
 media-libs/mesa/mesa-20.2.4.ebuild | 556 +++++++++++++++++++++++++++++++++++++
 2 files changed, 557 insertions(+)