From 3630e58ac1af51980f3c0bfb6cbc0b329485061c2cf694176e1df322dd566157 Mon Sep 17 00:00:00 2001 From: Christophe Marin Date: Tue, 5 Sep 2023 17:58:20 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/gammaray?expand=0&rev=78 --- gammaray-gles.patch | 18 ++++++++++++++++++ gammaray.changes | 3 ++- gammaray.spec | 2 ++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 gammaray-gles.patch diff --git a/gammaray-gles.patch b/gammaray-gles.patch new file mode 100644 index 0000000..2866eb2 --- /dev/null +++ b/gammaray-gles.patch @@ -0,0 +1,18 @@ +QOpenGLFunctions_2_0 doesn't exist if Qt was built with opengles enabled. + +Ref: https://github.com/KDAB/GammaRay/issues/829 + +diff --git a/plugins/quickinspector/textureextension/qsgtexturegrabber.cpp b/plugins/quickinspector/textureextension/qsgtexturegrabber.cpp +index 120bb400d..f8d187ceb 100644 +--- a/plugins/quickinspector/textureextension/qsgtexturegrabber.cpp ++++ b/plugins/quickinspector/textureextension/qsgtexturegrabber.cpp +@@ -17,7 +17,9 @@ + #include + #include + #include ++#if !QT_CONFIG(opengles2) + #include ++#endif + #include + #include + #include diff --git a/gammaray.changes b/gammaray.changes index c9993d7..5c613dc 100644 --- a/gammaray.changes +++ b/gammaray.changes @@ -22,8 +22,9 @@ Tue Sep 5 09:16:28 UTC 2023 - Christophe Marin * Update 3rdparty/lz4 to version 1.9.4. * Update 3rdparty/StackWalker. * Increase CMake requirement to version 3.16.0. -- Add patch: +- Add patches: * 0001-Fix-doc-tools-detection.patch + * gammaray-gles.patch - Add a Qt6 flavor - Move plugins to a -shared subpackage. gammaray-shared and gammaray-qt6-shared can be coinstalled and diff --git a/gammaray.spec b/gammaray.spec index 2012cf3..fef8f8c 100644 --- a/gammaray.spec +++ b/gammaray.spec @@ -37,6 +37,8 @@ URL: https://www.kdab.com/gammaray Source: https://github.com/KDAB/GammaRay/releases/download/v%{version}/%{rname}-%{version}.tar.gz # PATCH-FIX-UPSTREAM Patch0: 0001-Fix-doc-tools-detection.patch +# PATCH-FIX-UPSTREAM +Patch1: gammaray-gles.patch BuildRequires: binutils-devel BuildRequires: cmake >= 3.16.0 BuildRequires: doxygen