[neon/extras/libmediawiki/Neon/release] debian: fix build with newer Qt 5.15.x (#1013543)
Pino Toscano
null at kde.org
Wed Sep 4 12:27:32 BST 2024
Git commit 31a19901d971320d1c6d3ad4a77213bb16382b37 by Pino Toscano.
Committed on 03/07/2022 at 06:02.
Pushed by jriddell into branch 'Neon/release'.
fix build with newer Qt 5.15.x (#1013543)
backport upstream commit 7c79dae079d20b46d05462ed9f5b3cfae78f420a
M +3 -0 debian/changelog
A +1 -0 debian/patches/series
A +31 -0 debian/patches/upstream_Fix-compilation-error-with-Qt-5.15.patch
https://invent.kde.org/neon/extras/libmediawiki/-/commit/31a19901d971320d1c6d3ad4a77213bb16382b37
diff --git a/debian/changelog b/debian/changelog
index 4b106ec..da13f93 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ libmediawiki (5.37.0-3) UNRELEASED; urgency=medium
present in machine-readable debian/copyright).
* Remove inactive Uploaders, adding myself as one to avoid leaving the source
with no human maintainers.
+ * Backport upstream commit 7c79dae079d20b46d05462ed9f5b3cfae78f420a to fix the
+ build with newer Qt 5.15.x; patch
+ upstream_Fix-compilation-error-with-Qt-5.15.patch. (Closes: #1013543)
-- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org> Sun, 03 Jul 2022 07:54:47 +0200
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1ef434e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+upstream_Fix-compilation-error-with-Qt-5.15.patch
diff --git a/debian/patches/upstream_Fix-compilation-error-with-Qt-5.15.patch b/debian/patches/upstream_Fix-compilation-error-with-Qt-5.15.patch
new file mode 100644
index 0000000..c737769
--- /dev/null
+++ b/debian/patches/upstream_Fix-compilation-error-with-Qt-5.15.patch
@@ -0,0 +1,31 @@
+From 7c79dae079d20b46d05462ed9f5b3cfae78f420a Mon Sep 17 00:00:00 2001
+From: David Faure <faure at kde.org>
+Date: Sun, 2 May 2021 12:39:39 +0200
+Subject: [PATCH] Fix compilation error with Qt 5.15
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+error: use of deleted function ‘QCharRef& QCharRef::operator=(char)’
+---
+ src/queryrevision.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/queryrevision.cpp b/src/queryrevision.cpp
+index 59aac03..6ebfbc8 100644
+--- a/src/queryrevision.cpp
++++ b/src/queryrevision.cpp
+@@ -307,8 +307,8 @@ void QueryRevision::doWorkProcessReply()
+ while (count < 2)
+ {
+ if (replytmp[i] == QLatin1Char('"') && replytmp[i-1] != QLatin1Char('\\')) count++;
+- if (replytmp[i] == QLatin1Char('<')) replytmp[i] = char(255);
+- if (replytmp[i] == QLatin1Char('>')) replytmp[i] = char(254);
++ if (replytmp[i] == QLatin1Char('<')) replytmp[i] = QChar(255);
++ if (replytmp[i] == QLatin1Char('>')) replytmp[i] = QChar(254);
+ ++i;
+ }
+ }
+--
+2.35.1
+
More information about the Neon-commits
mailing list