Add patch to remove Qt GuiPrivate usage.
authorSandro Knauß <hefee@debian.org>
Fri, 3 Feb 2023 18:15:40 +0000 (19:15 +0100)
committerSandro Knauß <hefee@debian.org>
Fri, 3 Feb 2023 18:17:37 +0000 (19:17 +0100)
debian/patches/0004-Don-t-use-GuiPrivate.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0004-Don-t-use-GuiPrivate.patch b/debian/patches/0004-Don-t-use-GuiPrivate.patch
new file mode 100644 (file)
index 0000000..3036ec1
--- /dev/null
@@ -0,0 +1,34 @@
+From: =?utf-8?q?Sandro_Knau=C3=9F?= <hefee@debian.org>
+Date: Fri, 3 Feb 2023 18:09:41 +0100
+Subject: Don't use GuiPrivate.
+
+It is not used anymore and it was patched out before.
+
+Forwarded: not-needed
+---
+ src/gui/CMakeLists.txt | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
+index 7639f95..481a8f5 100644
+--- a/src/gui/CMakeLists.txt
++++ b/src/gui/CMakeLists.txt
+@@ -10,10 +10,6 @@ if(QUICK_COMPILER)
+         )
+ endif()
+-if (NOT TARGET Qt5::GuiPrivate)
+-    message(FATAL_ERROR "Could not find GuiPrivate component of Qt5. It might be shipped as a separate package, please check that.")
+-endif()
+-
+ if(CMAKE_BUILD_TYPE MATCHES Debug)
+     add_definitions(-DQT_QML_DEBUG)
+ endif()
+@@ -513,7 +509,6 @@ target_link_libraries(nextcloudCore
+   PUBLIC
+   Nextcloud::sync
+   Qt5::Widgets
+-  Qt5::GuiPrivate
+   Qt5::Svg
+   Qt5::Network
+   Qt5::Xml
index 6a1289818537c652a30b2ff57f9aad4affa64ada..db7bdcfa80efd43c65f2af623289399ee603ea64 100644 (file)
@@ -1,3 +1,4 @@
 0001-fix-installationpath-of-dolphin-plugin.patch
 0002-use_system_buildflags.patch
 0003-Use-release-version-for-Debian.patch
+0004-Don-t-use-GuiPrivate.patch