From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A2DD115815E for ; Thu, 1 Feb 2024 19:49:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B00E0E2A38; Thu, 1 Feb 2024 19:49:53 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 72C18E2A37 for ; Thu, 1 Feb 2024 19:49:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5DF9343211 for ; Thu, 1 Feb 2024 19:49:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CE0A314C5 for ; Thu, 1 Feb 2024 19:49:49 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1706816981.78da2493dd11ce279d74d8ed1f790ff03bfc2090.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/, profiles/base/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/mesa/mesa-9999.ebuild profiles/base/package.use.force X-VCS-Directories: profiles/base/ media-libs/mesa/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 78da2493dd11ce279d74d8ed1f790ff03bfc2090 X-VCS-Branch: master Date: Thu, 1 Feb 2024 19:49:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e32e06a1-9261-48e1-9424-ba66410cd740 X-Archives-Hash: 0adffffe85cad84f41f9d40173062112 commit: 78da2493dd11ce279d74d8ed1f790ff03bfc2090 Author: Matt Turner gentoo org> AuthorDate: Thu Feb 1 19:36:53 2024 +0000 Commit: Matt Turner gentoo org> CommitDate: Thu Feb 1 19:49:41 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78da2493 media-libs/mesa: Add USE=opengl Closes: https://bugs.gentoo.org/920692 Signed-off-by: Matt Turner gentoo.org> media-libs/mesa/mesa-9999.ebuild | 30 ++++++++++++++++++++++++------ profiles/base/package.use.force | 4 ++++ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index 69bb2e2a8abb..28a5b5573daa 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -32,7 +32,7 @@ done IUSE="${IUSE_VIDEO_CARDS} cpu_flags_x86_sse2 d3d9 debug gles1 +gles2 +llvm - lm-sensors opencl osmesa +proprietary-codecs selinux + lm-sensors opencl +opengl osmesa +proprietary-codecs selinux test unwind vaapi valgrind vdpau vulkan vulkan-overlay wayland +X xa zink +zstd" @@ -54,7 +54,8 @@ REQUIRED_USE=" video_cards_r300? ( x86? ( llvm ) amd64? ( llvm ) ) vdpau? ( X ) xa? ( X ) - zink? ( vulkan ) + X? ( gles1? ( opengl ) gles2? ( opengl ) ) + zink? ( vulkan || ( opengl gles1 gles2 ) ) " LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.119" @@ -396,15 +397,32 @@ multilib_src_configure() { emesonargs+=(-Dintel-clc=disabled) fi + if use opengl || use gles1 || use gles2; then + emesonargs+=( + -Degl=enabled + -Dgbm=enabled + -Dglvnd=true + ) + else + emesonargs+=( + -Degl=disabled + -Dgbm=disabled + -Dglvnd=false + ) + fi + + if use opengl && use X; then + emesonargs+=(-Dglx=dri) + else + emesonargs+=(-Dglx=disabled) + fi + emesonargs+=( $(meson_use test build-tests) - -Dglx=$(usex X dri disabled) -Dshared-glapi=enabled -Ddri3=enabled - -Degl=enabled -Dexpat=enabled - -Dgbm=enabled - -Dglvnd=true + $(meson_use opengl) $(meson_feature gles1) $(meson_feature gles2) $(meson_feature llvm) diff --git a/profiles/base/package.use.force b/profiles/base/package.use.force index 9a47d64fea28..e50d568231f8 100644 --- a/profiles/base/package.use.force +++ b/profiles/base/package.use.force @@ -1,6 +1,10 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Matt Turner (2024-02-01) +# Reverse dependencies are not ready for media-libs/mesa to not provide OpenGL. +media-libs/mesa opengl + # Michael Orlitzky (2023-11-22) # USE=-gui is broken in this and the subsequent version (bug # 916718). Package is a PITA: the maintainer is combative, and the