sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (e2bdb67ccaf758d178925f944fa3bb74328f97d9)
- From: Pavel Vinogradov <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
- Subject: [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (e2bdb67ccaf758d178925f944fa3bb74328f97d9)
- Date: Wed, 28 Oct 2026 14:06:54 +0000
GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:
lxqt/lxqt-runner/HISTORY | 4 ++++
lxqt/lxqt-runner/PRE_BUILD | 7 +++++++
lxqt/lxqt-runner/lxqt-runner-2.4.0-no-math.patch | 16 ++++++++++++++++
3 files changed, 27 insertions(+)
New commits:
commit e2bdb67ccaf758d178925f944fa3bb74328f97d9
Author: chris_debian <cjhandrew AT gmail.com>
Commit: Pavel Vinogradov <public AT sourcemage.org>
lxqt/lxqt-runner: fix the build without math support
When muparser is declined the spell passes -DRUNNER_MATH=0, but
dialog.cpp in 2.4.0 uses MathItem unguarded, so the build stops with
"no matching function for call to qobject_cast". Apply upstream's fix
(lxqt/lxqt-runner PR #353, merged after 2.4.0), only for 2.4.0, so
muparser stays optional.
diff --git a/lxqt/lxqt-runner/HISTORY b/lxqt/lxqt-runner/HISTORY
index cf1bac7..db4778b 100644
--- a/lxqt/lxqt-runner/HISTORY
+++ b/lxqt/lxqt-runner/HISTORY
@@ -1,3 +1,7 @@
+2026-10-26 chris_debian <cjhandrew AT gmail.com>
+ * PRE_BUILD, lxqt-runner-2.4.0-no-math.patch: added, fix the build
+ without math support (upstream PR #353)
+
2025-04-17 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version LXQT
diff --git a/lxqt/lxqt-runner/PRE_BUILD b/lxqt/lxqt-runner/PRE_BUILD
new file mode 100755
index 0000000..cf5755f
--- /dev/null
+++ b/lxqt/lxqt-runner/PRE_BUILD
@@ -0,0 +1,7 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+# fix the build with -DRUNNER_MATH=0, from upstream PR #353 (after 2.4.0)
+if [[ $VERSION == 2.4.0 ]]; then
+ patch -p1 < "$SPELL_DIRECTORY/lxqt-runner-2.4.0-no-math.patch"
+fi
diff --git a/lxqt/lxqt-runner/lxqt-runner-2.4.0-no-math.patch
b/lxqt/lxqt-runner/lxqt-runner-2.4.0-no-math.patch
new file mode 100644
index 0000000..0e6837d
--- /dev/null
+++ b/lxqt/lxqt-runner/lxqt-runner-2.4.0-no-math.patch
@@ -0,0 +1,16 @@
+diff --git a/dialog.cpp b/dialog.cpp
+index b4a81f9..c33717d 100644
+--- a/dialog.cpp
++++ b/dialog.cpp
+@@ -672,7 +672,10 @@ void Dialog::runCommand()
+ {
+ hide();
+ if (mClearOnRunning
+- && !qobject_cast<const MathItem*>(command)) // don't clear math
results
++#ifdef MATH_ENABLED
++ && !qobject_cast<const MathItem*>(command) // don't clear math
results
++#endif
++ )
+ {
+ ui->commandEd->clear();
+ }
- [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (e2bdb67ccaf758d178925f944fa3bb74328f97d9), Pavel Vinogradov, 10/28/2026
Archive powered by MHonArc 2.6.24.