public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: nucleo <nucleo@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/digikam] epel10: add patch
Date: Thu, 30 Jul 2026 15:37:12 GMT [thread overview]
Message-ID: <178542583270.1.760983326729157498.rpms-digikam-7303b8105ddc@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/digikam
Branch : epel10
Commit : 7303b8105ddc9402d6f09b9d07ec725b78ef07f0
Author : nucleo <nucleo@fedoraproject.org>
Date : 2026-03-15T23:20:52+02:00
Stats : +76/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/digikam/c/7303b8105ddc9402d6f09b9d07ec725b78ef07f0?branch=epel10
Log:
add patch
---
diff --git a/9dd5e992b71b6a855fc419114344d4bd181bc08f.patch b/9dd5e992b71b6a855fc419114344d4bd181bc08f.patch
new file mode 100644
index 0000000..8d3f56a
--- /dev/null
+++ b/9dd5e992b71b6a855fc419114344d4bd181bc08f.patch
@@ -0,0 +1,76 @@
+From 9dd5e992b71b6a855fc419114344d4bd181bc08f Mon Sep 17 00:00:00 2001
+From: Maik Qualmann <metzpinguin@gmail.com>
+Date: Sun, 15 Mar 2026 20:23:21 +0100
+Subject: [PATCH] use the QImage Loader if JPEG2000 is available. Since
+ jas_init_library() and jas_cleanup_library() can only be called once in the
+ main thread, it is almost impossible to handle them if another Jasper Loader
+ is present in a library. BUGS: 517588 FIXED-IN: 9.1.0
+
+---
+ NEWS | 2 +-
+ .../dplugins/dimg/jpeg2000/dimgjpeg2000plugin.cpp | 15 +++++++++++++--
+ 2 files changed, 14 insertions(+), 3 deletions(-)
+
+diff --git a/NEWS b/NEWS
+index 2eaf93787f..66bb717278 100644
+--- a/NEWS
++++ b/NEWS
+@@ -36,7 +36,7 @@ BUGFIXES:
+ 011 --> 517354 - Images seem to be gone when upgrading from 8.8.0 with mariadb on NAS (but are still in DB).
+ 012 --> 517560 - Short key for flags do not work in new survey screen.
+ 013 --> 516875 - OpenCL not detected on AMD RADEON RX 470 card.
+-014 -->
++014 --> 517588 - Cut and paste crash, jas_init_library: Assertion `!jas_global.initialized' failed.
+ 015 -->
+ 016 -->
+ 017 -->
+diff --git a/core/dplugins/dimg/jpeg2000/dimgjpeg2000plugin.cpp b/core/dplugins/dimg/jpeg2000/dimgjpeg2000plugin.cpp
+index e1d56e9151..09616f1e2b 100644
+--- a/core/dplugins/dimg/jpeg2000/dimgjpeg2000plugin.cpp
++++ b/core/dplugins/dimg/jpeg2000/dimgjpeg2000plugin.cpp
+@@ -17,6 +17,7 @@
+ // Qt includes
+
+ #include <QFile>
++#include <QImageReader>
+
+ // KDE includes
+
+@@ -36,6 +37,13 @@ DImgJPEG2000Plugin::DImgJPEG2000Plugin(QObject* const parent)
+
+ #if defined JAS_VERSION_MAJOR && JAS_VERSION_MAJOR >= 3
+
++ const auto frms = QImageReader::supportedImageFormats();
++
++ if (frms.contains(QByteArray("jp2")))
++ {
++ return;
++ }
++
+ size_t max_mem = jas_get_total_mem_size();
+
+ if (max_mem)
+@@ -70,7 +78,10 @@ DImgJPEG2000Plugin::~DImgJPEG2000Plugin()
+
+ #if defined JAS_VERSION_MAJOR && JAS_VERSION_MAJOR >= 3
+
+- jas_cleanup_library();
++ if (m_initJasper)
++ {
++ jas_cleanup_library();
++ }
+
+ #endif
+
+@@ -244,7 +255,7 @@ DImgLoader* DImgJPEG2000Plugin::loader(DImg* const image, const DRawDecoding&) c
+
+ DImgLoaderSettings* DImgJPEG2000Plugin::exportWidget(const QString& format) const
+ {
+- if (canWrite(format))
++ if (canWrite(format) || !m_initJasper)
+ {
+ return (new DImgJPEG2000ExportSettings());
+ }
+--
+GitLab
+
reply other threads:[~2026-07-30 15:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=178542583270.1.760983326729157498.rpms-digikam-7303b8105ddc@fedoraproject.org \
--to=nucleo@fedoraproject.org \
--cc=git-commits@fedoraproject.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