commit: 364d0aec4ea07492a26ee13ac872e41f7b2566cf Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org> AuthorDate: Tue Dec 30 09:23:24 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Dec 30 13:43:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=364d0aec
sci-astronomy/stellarium: add 25.4 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/45184 Closes: https://github.com/gentoo/gentoo/pull/45184 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-astronomy/stellarium/Manifest | 6 + .../files/stellarium-0.25.4-segfault.patch | 29 ++++ sci-astronomy/stellarium/stellarium-25.4.ebuild | 174 +++++++++++++++++++++ 3 files changed, 209 insertions(+) diff --git a/sci-astronomy/stellarium/Manifest b/sci-astronomy/stellarium/Manifest index 5fb2be2daae2..895c32450073 100644 --- a/sci-astronomy/stellarium/Manifest +++ b/sci-astronomy/stellarium/Manifest @@ -10,7 +10,13 @@ DIST stars_8_2v0_3.cat 1971773856 BLAKE2B 49aab2f1490cd25c83a50eea4cab5c54d3db0e DIST stars_8_2v0_3.cat.asc 313 BLAKE2B 39c0f8a3189dc2434cb6c38f786bcf504bcfcb6473fd26ffbef7d84b3de7e351f8f3fe57171958965e1e0740eb3b2e88aa9d6e7eb66befcf6e0c1f882cada355 SHA512 90c1ae0e9391c3f940ef6c114385408f8d181b87c611f6240379d98f51d0a4cc4feb6b0433b345770ebac23485b1d219d38d5caf4addd24868da54143ef75537 DIST stellarium-25.3.tar.xz 388192032 BLAKE2B f2760913046e9f7e1956dbfb0a767e933122b5e5a23a8c085154c44d93e1557dea9743d9c7fe7490d615153c0a236c552ea0d59e49bce75609bb24d4622b7d01 SHA512 bded792f4c91d82155c9c94bca8379cd74ec2a240ca31e4f11d8437cd807d24f8ba0f7e72ef10223ef077bafa041dfef93cc29087ff701d4d463578f1fb5f2cb DIST stellarium-25.3.tar.xz.asc 313 BLAKE2B e24a086efed59d2bd227e9ecaa0ad78a3a0a9f60f80e738412f4ea8099ae3340248694879de404a8d67af4598fc15452129af5594c4cd33074e5a5fb428235ce SHA512 206addbe2670ef95c9aff29fc9e442a9583077a94e3d9fd002f4f86fcbbfa1501ce1fd1b20ec5465207e75129df8dab774e7bb98731f7a4587051be8a20398a4 +DIST stellarium-25.4.tar.xz 442058888 BLAKE2B ff62e189fd06a33deb7d2ebc1c802d5ee8ee845a6937489eea33af7afb8429b1b51efb62f23751ff56b0fd216e46d3c59f64c9ed8ab1bfad0bb83798c1fb944b SHA512 a6b87ccb8670d66fe097817822631bda78b50a0e5371ed759b91f16f60c74e68711334e1c8263c80aaea7b3d4f512ece0bd7008aafd35393ddbe641cbda055e3 +DIST stellarium-25.4.tar.xz.asc 313 BLAKE2B 75e43e10d7ce2199e710a13ee2ea6d111d37f6caf51c9e414b812064db1281648e39f13947d2dbe6734c64f2cc8fd85c29190001a91486a7bec1b51363451d09 SHA512 f6280ab360d40b0c76ffae655627110d4d8f6beb718e055904c0cfe81631d074910cd9c9d2f9f5d96b20a886a7cf37ed184b6cec25bc3014f4d06e40a9c96d3b DIST stellarium-dso-catalog-3.21.dat 28678662 BLAKE2B 62adf4e72f52e02a52fa51e0b564d12c301cf88f29b0f1c45fc1feb6d131709c18a32810ac8dc9c83f6438cf4bb57c2988ed2811974cf6a0e5593261a1da5388 SHA512 e9d3bc1162c79957b85924f828fbc58cf500fef6b843c3387be02c67b554be008d1640c2bf737e5dd3c9afb58a4cf26d02f4961846cb2c288045e16984f4ceca DIST stellarium-dso-catalog-3.21.dat.asc 313 BLAKE2B f06f9d8821bc27ce71b42f9473542e104196b30d3c951a2dbfe2d5c52839b430ef6939953cb68bed614f925f503fbc59490f861c5e2876a82f62ddb23dbf0806 SHA512 ccbd10df0a494e7c150b9817c39d2e7d3413429a988c0600a8d1ee3075764b7020c8f6c09c931ddf4e820179da95260c74409c50dcbd0f568eda217c517a016b +DIST stellarium-dso-catalog-3.22.dat 28674096 BLAKE2B 58a91361b5c17a46d306e9233b391d8192314db19db6404fdd42b1edc08ca8d6f7f4e5113c5ab0a84fa4926c293e7dad9ae6caf49ddff1a4830ee6c79c8e1f48 SHA512 ce5d5bc403a77948c0b29d055d1cf2cce9e6a38054135438fb4f3802444f6c6770b6567957c32f1a80f86bc3ddf23fa2fa9489e345c1570f005691ff3e09e045 +DIST stellarium-dso-catalog-3.22.dat.asc 313 BLAKE2B d7ff8d62bc390d08f52a36a1f12edc654a7fb96e43d3364bb51b1ad32ff1c43ce3f38dd9fd36ff6ba94a190eeebb5232edcb204a50ddb37d60b6b8a408783d69 SHA512 6e2f0110cb12a4ed712951a322c9581f8082f39242f2c385bb330facd39f846a8379d098610ddba197ec74a2331929f3f1a89667a1617e7508727026d66bdf29 DIST stellarium_user_guide-25.3-1.pdf 14716840 BLAKE2B 3aaa9070b0d36d875b237d7860534ec4d2027595fa4105ad80e8726bb53e8ee2bcd018f959a1b1c70282d9c41afaad1451a7238bf72a358275573e42d9be8cb1 SHA512 675415ac3a233e1af8b54d158dfa5eafe90494a70f3151b214fc2ed7c54c94ef8cd3516567e394cdf0e7abff8aa457797cd7debbbc89bbc89f110fa16916e39e DIST stellarium_user_guide-25.3-1.pdf.asc 313 BLAKE2B 2a9e1196abe31ab30b14a86e16c9906fb3570257260b4f341249cfac2d265be724ee14f8f66d1990ea8fbd7ec4644e81a0fff9b5ce1a0536ed7f269c423b81cf SHA512 b47a336360f529b55e202090b3941cebdc07766bb000d9e09f4cd4068a320940ae5cfdcbe6dac60ce2e05cbf85c84a7b4d4704e93e5fe85ccf93f8ae07a6225d +DIST stellarium_user_guide-25.4-1.pdf 14678792 BLAKE2B e02ba4addd8d8db21c6088099f788d157223dfc36a624a73fcbf50adf0c406f7c770c924531a7e9f25a887224d38cd7815f068deca0218298a56b5b0fea2a34b SHA512 311c956f7955ef41004e835eb8e4cc79522ccfa23d5fda5b50e63a543d948faec117416eddf192736eccf16b52b982b79141c323c7c02cf4c10393b7854b07b7 +DIST stellarium_user_guide-25.4-1.pdf.asc 313 BLAKE2B 1a779d6948ac0fd3a191408f21be40898e57a6aea57a4611b9dbf262fc09e626086298a0f917aa5d28cd51beeb0890602aca4f37b078d105eadc0f2e28321b8e SHA512 cfdf1466ed21903e65d09fbddc3954cda18bf2761185c78c04feb6c26f0744247e3049631c3b373d466af32ae93523ec2890e34fd19d7de41821af2b95402606 diff --git a/sci-astronomy/stellarium/files/stellarium-0.25.4-segfault.patch b/sci-astronomy/stellarium/files/stellarium-0.25.4-segfault.patch new file mode 100644 index 000000000000..5d941fbd826f --- /dev/null +++ b/sci-astronomy/stellarium/files/stellarium-0.25.4-segfault.patch @@ -0,0 +1,29 @@ +https://github.com/Stellarium/stellarium/commit/5023376c32668771db8757c3fae61289efd26cc3 + +From 5023376c32668771db8757c3fae61289efd26cc3 Mon Sep 17 00:00:00 2001 +From: "Alexander V. Wolf" <[email protected]> +Date: Mon, 29 Dec 2025 21:59:39 +0700 +Subject: [PATCH] Fixed crash at exit from Stellarium in macOS + +--- + plugins/Calendars/src/Calendars.cpp | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/plugins/Calendars/src/Calendars.cpp b/plugins/Calendars/src/Calendars.cpp +index d33eb31902349..882358dcc7ea4 100644 +--- a/plugins/Calendars/src/Calendars.cpp ++++ b/plugins/Calendars/src/Calendars.cpp +@@ -170,9 +170,11 @@ Calendars::Calendars(): + Calendars::~Calendars() + { + delete configDialog; configDialog=nullptr; +- for (auto c = calendars.cbegin(), end = calendars.cend(); c != end; ++c) ++ QMapIterator<QString, Calendar*> i(calendars); ++ while (i.hasNext()) + { +- Calendar *cal = calendars.take(c.key()); ++ i.next(); ++ Calendar *cal = calendars.take(i.key()); + delete cal; + } + if (infoPanel) delete infoPanel; diff --git a/sci-astronomy/stellarium/stellarium-25.4.ebuild b/sci-astronomy/stellarium/stellarium-25.4.ebuild new file mode 100644 index 000000000000..c48c99f3ee09 --- /dev/null +++ b/sci-astronomy/stellarium/stellarium-25.4.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..14} ) +inherit cmake desktop flag-o-matic python-any-r1 toolchain-funcs xdg verify-sig virtualx + +DESCRIPTION="3D photo-realistic skies in real time" +HOMEPAGE="https://stellarium.org/ https://github.com/Stellarium/stellarium" +MY_DSO_VERSION="3.22" +SRC_URI=" + https://github.com/Stellarium/stellarium/releases/download/v${PV}/${P}.tar.xz + verify-sig? ( https://github.com/Stellarium/stellarium/releases/download/v${PV}/${P}.tar.xz.asc ) + deep-sky? ( + https://github.com/Stellarium/stellarium-data/releases/download/dso-${MY_DSO_VERSION}/catalog-${MY_DSO_VERSION}.dat -> ${PN}-dso-catalog-${MY_DSO_VERSION}.dat + verify-sig? ( https://github.com/Stellarium/stellarium-data/releases/download/dso-${MY_DSO_VERSION}/catalog-${MY_DSO_VERSION}.dat.asc -> ${PN}-dso-catalog-${MY_DSO_VERSION}.dat.asc ) + ) + doc? ( + https://github.com/Stellarium/stellarium/releases/download/v${PV}/stellarium_user_guide-${PV}-1.pdf + verify-sig? ( https://github.com/Stellarium/stellarium/releases/download/v${PV}/stellarium_user_guide-${PV}-1.pdf.asc ) + ) + stars? ( + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_4_1v0_6.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_5_1v0_6.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_6_1v0_4.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_7_1v0_4.cat + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_8_2v0_3.cat + verify-sig? ( + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_4_1v0_6.cat.asc + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_5_1v0_6.cat.asc + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_6_1v0_4.cat.asc + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_7_1v0_4.cat.asc + https://github.com/Stellarium/stellarium-data/releases/download/stars-3.0/stars_8_2v0_3.cat.asc + ) + )" + +LICENSE="GPL-2+ SGI-B-2.0" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="debug deep-sky doc gps +lens-distortion libcxx media nls +scripting +show-my-sky stars telescope test webengine +xlsx" + +# Python interpreter is used while building RemoteControl plugin +BDEPEND=" + ${PYTHON_DEPS} + dev-lang/perl + doc? ( app-text/doxygen[dot] ) + nls? ( dev-qt/qttools:6[linguist] ) + verify-sig? ( sec-keys/openpgp-keys-stellarium ) +" +# TODO: review need for dev-cpp/tbb after several releases of gcc and clang +RDEPEND=" + dev-cpp/tbb:= + dev-libs/md4c + dev-qt/qtbase:6=[concurrent,gui,network,widgets] + dev-qt/qtcharts:6 + dev-qt/qtpositioning:6 + media-fonts/dejavu + >=sci-astronomy/calcmysky-0.3.5:= + virtual/zlib:= + gps? ( + dev-qt/qtserialport:6 + sci-geosciences/gpsd:=[cxx] + ) + lens-distortion? ( + media-gfx/exiv2:= + sci-libs/nlopt + ) + media? ( + dev-qt/qtmultimedia:6[gstreamer] + dev-qt/qtspeech:6 + virtual/opengl + ) + scripting? ( dev-qt/qtdeclarative:6 ) + telescope? ( + dev-qt/qtserialport:6 + sci-libs/indilib:= + ) + webengine? ( dev-qt/qtwebengine:6[widgets] ) + xlsx? ( >=dev-libs/qxlsx-1.5.0:= ) +" +DEPEND="${RDEPEND} + libcxx? ( dev-cpp/fast_float ) +" + +RESTRICT="!test? ( test )" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/stellarium.asc + +PATCHES=( + "${FILESDIR}"/stellarium-0.25.4-segfault.patch +) + +pkg_setup() { + if tc-is-clang && ! use libcxx && [[ $(tc-get-cxx-stdlib) == libc++ ]]; then + die "When using libc++, please enable USE=libcxx" + fi +} + +src_prepare() { + cmake_src_prepare + use debug || append-cppflags -DQT_NO_DEBUG #415769 + + rm -r src/external/qtcompress/ || die + rm -r src/external/zlib/ || die + rm -r src/external/fake-indi/ || die + + # for glues_stel aka libtess I couldn't find an upstream with the same API + + local remaining="$(cd src/external/ && echo */)" + if [[ "${remaining}" != "glues_stel/" ]]; then + eqawarn "Need to unbundle more deps: ${remaining}" + fi +} + +src_configure() { + filter-lto # https://bugs.gentoo.org/862249 + + local mycmakeargs=( + -DCPM_LOCAL_PACKAGES_ONLY=yes + -DUSE_BUNDLED_QTCOMPRESS=no + -DENABLE_CCACHE=no + -DENABLE_GPS="$(usex gps)" + -DENABLE_MEDIA="$(usex media)" + -DENABLE_NLS="$(usex nls)" + -DENABLE_QT6=yes + -DENABLE_QTWEBENGINE="$(usex webengine)" + -DENABLE_SHOWMYSKY=$(usex show-my-sky) + -DENABLE_SCRIPTING=$(usex scripting) + -DENABLE_TESTING="$(usex test)" + -DENABLE_XLSX="$(usex xlsx)" + -DUSE_PLUGIN_LENSDISTORTIONESTIMATOR="$(usex lens-distortion)" + -DUSE_PLUGIN_TELESCOPECONTROL="$(usex telescope)" + "$(cmake_use_find_package doc Doxygen)" + ) + cmake_src_configure +} + +src_test() { + virtx cmake_src_test +} + +src_compile() { + cmake_src_compile + + if use doc ; then + cmake_build apidoc + fi +} + +src_install() { + if use doc ; then + local HTML_DOCS=( "${BUILD_DIR}/doc/html/." ) + dodoc "${DISTDIR}/stellarium_user_guide-${PV}-1.pdf" + fi + cmake_src_install + + # use the more up-to-date system fonts + rm "${ED}"/usr/share/stellarium/data/DejaVuSans{Mono,}.ttf || die + dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/stellarium/data/DejaVuSans.ttf + dosym ../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/stellarium/data/DejaVuSansMono.ttf + + if use stars ; then + insinto /usr/share/${PN}/stars/hip_gaia3 + doins "${DISTDIR}"/stars_{4,5}_1v0_6.cat + doins "${DISTDIR}"/stars_{6,7}_1v0_4.cat + doins "${DISTDIR}"/stars_8_2v0_3.cat + fi + if use deep-sky ; then + insinto /usr/share/${PN}/nebulae/default + newins "${DISTDIR}/${PN}-dso-catalog-${MY_DSO_VERSION}.dat" catalog.dat + fi + newicon doc/images/stellarium-logo.png ${PN}.png +}
