From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/stellarium/files/, sci-astronomy/stellarium/
Date: Mon, 18 Apr 2022 20:29:30 +0000 (UTC) [thread overview]
Message-ID: <1650313757.027dc0a5290636d544eae044afbe4bbb6cdeac33.sam@gentoo> (raw)
commit: 027dc0a5290636d544eae044afbe4bbb6cdeac33
Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja>
AuthorDate: Sun Apr 17 13:13:44 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr 18 20:29:17 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=027dc0a5
sci-astronomy/stellarium: backport fix for segfault in star manager module
Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja>
Signed-off-by: Sam James <sam <AT> gentoo.org>
...ellarium-0.22.1-fix-star-manager-segfault.patch | 30 ++++++++++++++++++++++
sci-astronomy/stellarium/stellarium-0.22.1.ebuild | 1 +
2 files changed, 31 insertions(+)
diff --git a/sci-astronomy/stellarium/files/stellarium-0.22.1-fix-star-manager-segfault.patch b/sci-astronomy/stellarium/files/stellarium-0.22.1-fix-star-manager-segfault.patch
new file mode 100644
index 000000000000..7f8981a006e2
--- /dev/null
+++ b/sci-astronomy/stellarium/files/stellarium-0.22.1-fix-star-manager-segfault.patch
@@ -0,0 +1,30 @@
+This patch is required to fix a segfault on startup in <=0.22.1 if star catalogue files are
+added or removed (USE=stars)
+
+Refer: https://github.com/Stellarium/stellarium/issues/2404
+
+This patch may be safely removed for 0.22.2 - it has been patched upstream.
+
+--- a/src/core/modules/StarMgr.cpp
++++ b/src/core/modules/StarMgr.cpp
+@@ -592,13 +592,13 @@ void StarMgr::setCheckFlag(const QString& catId, bool b)
+ return;
+ m["checked"]=b;
+ catalogsDescription[idx-1]=m;
+- starSettings["catalogs"]=catalogsDescription;
+- QFile tmp(starConfigFileFullPath);
+- if(tmp.open(QIODevice::WriteOnly))
+- {
+- StelJsonParser::write(starSettings, &tmp);
+- tmp.close();
+- }
++ }
++ starSettings["catalogs"]=catalogsDescription;
++ QFile tmp(starConfigFileFullPath);
++ if(tmp.open(QIODevice::WriteOnly))
++ {
++ StelJsonParser::write(starSettings, &tmp);
++ tmp.close();
+ }
+ }
+
diff --git a/sci-astronomy/stellarium/stellarium-0.22.1.ebuild b/sci-astronomy/stellarium/stellarium-0.22.1.ebuild
index 940b01d9d06d..1a8d4b878c4d 100644
--- a/sci-astronomy/stellarium/stellarium-0.22.1.ebuild
+++ b/sci-astronomy/stellarium/stellarium-0.22.1.ebuild
@@ -71,6 +71,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/stellarium-0.20.3-unbundle-indi.patch"
"${FILESDIR}/stellarium-0.20.3-unbundle-zlib.patch"
+ "${FILESDIR}/stellarium-0.22.1-fix-star-manager-segfault.patch"
"${FILESDIR}/stellarium-0.22.1-unbundle-qtcompress.patch"
)
next reply other threads:[~2022-04-18 20:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-18 20:29 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-26 20:28 [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/stellarium/files/, sci-astronomy/stellarium/ Andreas Sturmlechner
2024-10-17 14:03 Joonas Niilola
2022-11-05 1:38 Jason Zaman
2022-07-19 7:41 Florian Schmaus
2021-09-29 8:07 David Seifert
2021-09-29 8:07 David Seifert
2021-06-11 8:55 David Seifert
2020-10-10 7:22 Joonas Niilola
2020-01-18 22:28 Andreas Sturmlechner
2019-07-02 14:07 Andreas Sturmlechner
2019-05-18 16:35 Andreas Sturmlechner
2019-01-05 23:47 Andreas Sturmlechner
2016-03-20 20:51 Michael Sterrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1650313757.027dc0a5290636d544eae044afbe4bbb6cdeac33.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox