commit:     5a36d6651fcd49e5f9c2264ab52ec0dba552eb4c
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu May 20 21:51:20 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu May 20 21:51:33 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a36d665

sci-astronomy/kstars: Fix build with IUSE="-raw fits"

Closes: https://bugs.gentoo.org/790638
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/kstars-3.5.3-fits-w-o-libraw.patch       | 25 ++++++++++++++++++++++
 sci-astronomy/kstars/kstars-3.5.3.ebuild           |  2 ++
 2 files changed, 27 insertions(+)

diff --git a/sci-astronomy/kstars/files/kstars-3.5.3-fits-w-o-libraw.patch 
b/sci-astronomy/kstars/files/kstars-3.5.3-fits-w-o-libraw.patch
new file mode 100644
index 00000000000..a0bb66046f0
--- /dev/null
+++ b/sci-astronomy/kstars/files/kstars-3.5.3-fits-w-o-libraw.patch
@@ -0,0 +1,25 @@
+From 1adf58605d18ee24c68ca6762a94de75a09d738a Mon Sep 17 00:00:00 2001
+From: Heiko Becker <heiko.bec...@kde.org>
+Date: Mon, 26 Apr 2021 12:53:19 +0200
+Subject: [PATCH] Fix build without BUILD_KSTARS_LITE and libraw
+
+---
+ kstars/fitsviewer/fitsdata.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kstars/fitsviewer/fitsdata.cpp b/kstars/fitsviewer/fitsdata.cpp
+index 8300e9687..ca59d808e 100644
+--- a/kstars/fitsviewer/fitsdata.cpp
++++ b/kstars/fitsviewer/fitsdata.cpp
+@@ -524,7 +524,7 @@ bool FITSData::loadRAWImage(const QByteArray &buffer, 
const QString &extension,
+     Q_UNUSED(extension);
+ 
+ #if !defined(KSTARS_LITE) && !defined(HAVE_LIBRAW)
+-    lastError = i18n("Unable to find dcraw and cjpeg. Please install the 
required tools to convert CR2/NEF to JPEG.");
++    m_LastError = i18n("Unable to find dcraw and cjpeg. Please install the 
required tools to convert CR2/NEF to JPEG.");
+     return false;
+ #else
+ 
+-- 
+GitLab
+

diff --git a/sci-astronomy/kstars/kstars-3.5.3.ebuild 
b/sci-astronomy/kstars/kstars-3.5.3.ebuild
index 8c5431d2e41..49493cc295d 100644
--- a/sci-astronomy/kstars/kstars-3.5.3.ebuild
+++ b/sci-astronomy/kstars/kstars-3.5.3.ebuild
@@ -74,6 +74,8 @@ RDEPEND="${COMMON_DEPEND}
        >=dev-qt/qtquickcontrols2-${QTMIN}:5
 "
 
+PATCHES=( "${FILESDIR}/${P}-fits-w-o-libraw.patch" ) # bug 790638
+
 src_configure() {
        local mycmakeargs=(
                -DFETCH_TRANSLATIONS=OFF

Reply via email to