commit:     8cf3537542a4f9c7d6b6865a1d95b1cd66e22c5e
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Fri May  9 11:40:09 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 16 02:56:48 2025 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=8cf35375

kde-frameworks/extra-cmake-modules: include implicit include

kinfocenter notably relies on this implicit include that this patch
would otherwise remove.

Bug: https://bugs.gentoo.org/956010
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/kde/pull/1040
Closes: https://github.com/gentoo/kde/pull/1040
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../extra-cmake-modules-9999.ebuild                |  2 +-
 ...make-modules-6.15.0-disable-qmlplugindump.patch | 41 ++++++++++++++++++++++
 2 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/kde-frameworks/extra-cmake-modules/extra-cmake-modules-9999.ebuild 
b/kde-frameworks/extra-cmake-modules/extra-cmake-modules-9999.ebuild
index 3b1c00b4e6..1590c84506 100644
--- a/kde-frameworks/extra-cmake-modules/extra-cmake-modules-9999.ebuild
+++ b/kde-frameworks/extra-cmake-modules/extra-cmake-modules-9999.ebuild
@@ -38,7 +38,7 @@ BDEPEND="
 PATCHES=(
        "${FILESDIR}/${PN}-5.49.0-no-fatal-warnings.patch"
        "${FILESDIR}/${PN}-5.93.0-skip-ecm_add_test-early.patch"
-       "${FILESDIR}/${PN}-5.245.0-disable-qmlplugindump.patch"
+       "${FILESDIR}/${PN}-6.15.0-disable-qmlplugindump.patch"
        "${FILESDIR}/${PN}-6.5.0-disable-appstreamtest.patch"
        "${FILESDIR}/${PN}-6.5.0-disable-git-commit-hooks.patch"
 )

diff --git 
a/kde-frameworks/extra-cmake-modules/files/extra-cmake-modules-6.15.0-disable-qmlplugindump.patch
 
b/kde-frameworks/extra-cmake-modules/files/extra-cmake-modules-6.15.0-disable-qmlplugindump.patch
new file mode 100644
index 0000000000..5e5716fc4b
--- /dev/null
+++ 
b/kde-frameworks/extra-cmake-modules/files/extra-cmake-modules-6.15.0-disable-qmlplugindump.patch
@@ -0,0 +1,41 @@
+From 67ec9d9f6a8b97bee36ad4272354dec07be05d12 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Sun, 8 Dec 2019 15:01:33 +0100
+Subject: [PATCH] ECMFindQMLModule.cmake.in: Add ECM_DISABLE_QMLPLUGINDUMP to
+ avoid sandbox violations
+
+See also: https://phabricator.kde.org/D25812
+
+Backstory: https://bugzilla.gnome.org/show_bug.cgi?id=744135
+BUG: 387753
+--- a/modules/ECMFindQmlModule.cmake.in
++++ b/modules/ECMFindQmlModule.cmake.in
+@@ -9,6 +9,17 @@ include(FindPackageHandleStandardArgs)
+ include("${ECM_MODULE_DIR}/QtVersionOption.cmake")
+ include("${ECM_MODULE_DIR}/ECMQueryQt.cmake")
+ 
++option (ECM_DISABLE_QMLPLUGINDUMP "Do not use qmlplugindump which may 
segfault in some sandboxed environments" OFF)
++
++if(ECM_DISABLE_QMLPLUGINDUMP)
++    message(NOTICE "@GENMODULE@: qmlplugindump disabled - assuming dependency 
is available as >= @VERSION@.")
++    set(@GENMODULE@_FOUND TRUE)
++    set(@GENMODULE@_VERSION @VERSION@)
++    if (QT_MAJOR_VERSION EQUAL "6")
++        # implicit include
++        include(${ECM_MODULE_DIR}/ECMQmlModule.cmake)
++    endif()
++else()
+ if (QT_MAJOR_VERSION EQUAL "6")
+     include(${ECM_MODULE_DIR}/ECMQmlModule.cmake)
+     # Get the qmldir file
+@@ -68,6 +79,7 @@ if (NOT CMAKE_CROSSCOMPILING AND NOT MODULE_NOTFOUND AND NOT 
@GENMODULE@_FOUND A
+         set(@GENMODULE@_FOUND FALSE)
+     endif()
+ endif()
++endif()
+ 
+ set(@GENMODULE@_FOUND ${@GENMODULE@_FOUND} PARENT_SCOPE)
+ set(@GENMODULE@_VERSION ${@GENMODULE@_VERSION} PARENT_SCOPE)
+-- 
+2.49.0
+

Reply via email to