Add Patch to fix build with WebEngine=OFF.
authorSandro Knauß <hefee@debian.org>
Sun, 9 Mar 2025 00:36:45 +0000 (01:36 +0100)
committerSandro Knauß <hefee@debian.org>
Sun, 9 Mar 2025 00:36:45 +0000 (01:36 +0100)
debian/patches/0008-Fix-build-without-WebEngine-OFF.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0008-Fix-build-without-WebEngine-OFF.patch b/debian/patches/0008-Fix-build-without-WebEngine-OFF.patch
new file mode 100644 (file)
index 0000000..aa46569
--- /dev/null
@@ -0,0 +1,25 @@
+From: =?utf-8?q?Sandro_Knau=C3=9F?= <hefee@debian.org>
+Date: Sun, 9 Mar 2025 01:03:27 +0100
+Subject: Fix build without WebEngine=OFF.
+
+Origin: Debian
+Forwarded: https://github.com/nextcloud/desktop/pull/7988
+Last-Update: 2025-02-09
+---
+ src/gui/wizard/owncloudwizard.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/gui/wizard/owncloudwizard.cpp b/src/gui/wizard/owncloudwizard.cpp
+index 3a20931..be162d1 100644
+--- a/src/gui/wizard/owncloudwizard.cpp
++++ b/src/gui/wizard/owncloudwizard.cpp
+@@ -374,7 +374,9 @@ void OwncloudWizard::displayError(const QString &msg, bool retryHTTPonly)
+     switch (static_cast<WizardCommon::Pages>(currentId())) {
+     case WizardCommon::Page_Welcome:
+     case WizardCommon::Page_Flow2AuthCreds:
++#ifdef WITH_WEBENGINE
+     case WizardCommon::Page_WebView:
++#endif // WITH_WEBENGINE
+     case WizardCommon::Page_TermsOfService:
+         break;
index b0deb47c44523f92eefd295268cf03f7a962902e..d21f0587be957da8c3ea18540c69d9e3acce2089 100644 (file)
@@ -5,3 +5,4 @@
 0004-Don-t-use-GuiPrivate.patch
 0006-Revert-better-logs-and-factor-common-code-in-folder-.patch
 0007-Revert-ensure-no-any-user-writable-permissions-in-Ne.patch
+0008-Fix-build-without-WebEngine-OFF.patch