summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2024-08-19 11:14:45 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2024-08-19 11:17:33 -0700
commitb341ff7d283ccc6186eeb29c21baaa22499baadc (patch)
treebac6a23efa565deab26c3e9ad8c02e5ea4cfbb35 /eclass
parentdev-ruby/term-ansicolor: Stabilize 1.9.0 ppc64, #938170 (diff)
downloadgentoo-b341ff7d283ccc6186eeb29c21baaa22499baadc.tar.gz
gentoo-b341ff7d283ccc6186eeb29c21baaa22499baadc.tar.bz2
gentoo-b341ff7d283ccc6186eeb29c21baaa22499baadc.zip
virtualx.eclass: addpredict /dev/dri/ for Xvfb w/ mesa-24.2.0
Newer Mesa tries to access /dev/dri/ when used in Xvfb, and this triggers a sandbox error; discovered and verified w/ sci-mathematics/fricas-1.3.11-r2. Reference: https://public-inbox.gentoo.org/gentoo-dev/bb4927ba-5ced-3352-86bb-d87f37ceaab6@woodpecker.gentoo.org/T/#t Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/virtualx.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
index 6e77cd662bdd..f7318eafc59e 100644
--- a/eclass/virtualx.eclass
+++ b/eclass/virtualx.eclass
@@ -113,6 +113,7 @@ virtx() {
export XAUTHORITY=
einfo "Starting Xvfb ..."
+ addpredict /dev/dri/ # Needed for Xvfb w/ >=mesa-24.2.0
debug-print "${FUNCNAME}: Xvfb -displayfd 1 ${xvfbargs[*]}"
local logfile=${T}/Xvfb.log