kumquat-buildroot/package/stellarium/0001-Fixed-building-Stellarium-without-scripting.patch
Bernd Kuhls af457e6da3 package/stellarium: bump version to 0.22.0
Release notes:
http://stellarium.org/release/2022/03/27/stellarium-0.22.0.html

Added upstream patch to fix build error.

Added dependency to qt5charts following upstream commit:
5b8fece8d0 (diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR487)

Added configure option to disable qt5webengine support, the package is
broken: https://bugs.busybox.net/show_bug.cgi?id=14681

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-04-04 19:16:42 +02:00

50 lines
1.7 KiB
Diff

From 710d1c5acd9e962260ce395474819ded2eb6ce12 Mon Sep 17 00:00:00 2001
From: "Alexander V. Wolf" <alex.v.wolf@gmail.com>
Date: Tue, 29 Mar 2022 18:57:06 +0700
Subject: [PATCH] Fixed building Stellarium without scripting
Downloaded from upstream commit:
https://github.com/Stellarium/stellarium/commit/710d1c5acd9e962260ce395474819ded2eb6ce12
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
plugins/Calendars/src/Calendars.cpp | 2 ++
plugins/Calendars/src/Calendars.hpp | 2 ++
2 files changed, 4 insertions(+)
diff --git a/plugins/Calendars/src/Calendars.cpp b/plugins/Calendars/src/Calendars.cpp
index e5d89a4c063..4df6caee42e 100644
--- a/plugins/Calendars/src/Calendars.cpp
+++ b/plugins/Calendars/src/Calendars.cpp
@@ -251,6 +251,7 @@ void Calendars::init()
}
}
+#ifdef ENABLE_SCRIPTING
// Add calendar as scriptable object! Some scripting functions won't work though, as they use object types unknown to the scripting engine.
void Calendars::makeCalendarsScriptable(StelScriptMgr *ssm)
{
@@ -260,6 +261,7 @@ void Calendars::makeCalendarsScriptable(StelScriptMgr *ssm)
ssm->addObject(cal);
}
}
+#endif
void Calendars::loadSettings()
{
diff --git a/plugins/Calendars/src/Calendars.hpp b/plugins/Calendars/src/Calendars.hpp
index 461ae1bd9ba..4696183d9d2 100644
--- a/plugins/Calendars/src/Calendars.hpp
+++ b/plugins/Calendars/src/Calendars.hpp
@@ -145,8 +145,10 @@ class Calendars : public StelModule
//! TODO: ADD HERE: Chinese, NewHinduSolar, NewHinduLunar, ...
Calendar* getCal(QString name);
+ #ifdef ENABLE_SCRIPTING
//! to be called after program startup, when StelScriptMgr has been set up.
void makeCalendarsScriptable(StelScriptMgr *ssm);
+ #endif
signals:
//void jdChanged(double jd);