SHA256
1
0
forked from pool/kinfocenter5
kinfocenter5/0002-Look-for-binaries-in-Mesa-demos-path-as-well.patch
Christophe Giboudeaux 0dd199e0c3 Accepting request 952788 from home:Vogtinator:plasma5.24
- Add patch to actually find lscpi (kde#449792, boo#1195696):
  * 0001-Search-in-usr-local-sbin-usr-sbin-as-fallback.patch
- ... and eglinfo (boo1195695):
  * 0002-Look-for-binaries-in-Mesa-demos-path-as-well.patch
- Suggest Mesa-demo for eglinfo

OBS-URL: https://build.opensuse.org/request/show/952788
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kinfocenter5?expand=0&rev=336
2022-02-08 19:35:40 +00:00

32 lines
1.1 KiB
Diff

From 00664f06d83ae7995864675719b5da8bca41eccf Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Tue, 8 Feb 2022 19:06:23 +0100
Subject: [PATCH 2/2] Look for binaries in Mesa-demos path as well
eglinfo is not in $PATH (yet, boo#1195695)
---
src/CommandOutputContext.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/CommandOutputContext.cpp b/src/CommandOutputContext.cpp
index 30c33a9..a2b754f 100644
--- a/src/CommandOutputContext.cpp
+++ b/src/CommandOutputContext.cpp
@@ -24,6 +24,13 @@ CommandOutputContext::CommandOutputContext(const QString &executable, const QStr
m_executablePath = QStandardPaths::findExecutable(m_executableName, {QStringLiteral("/usr/local/sbin"), QStringLiteral("/usr/sbin")});
}
+ // boo#1195695
+ if (m_executablePath.isEmpty()) {
+ m_executablePath =
+ QStandardPaths::findExecutable(m_executableName,
+ {QStringLiteral("/usr/lib64/mesa-demos/egl/opengl"), QStringLiteral("/usr/lib/mesa-demos/egl/opengl")});
+ }
+
metaObject()->invokeMethod(this, &CommandOutputContext::load);
}
--
2.33.1