public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/digikam] epel10: add patch
@ 2026-07-30 15:37 nucleo
  0 siblings, 0 replies; only message in thread
From: nucleo @ 2026-07-30 15:37 UTC (permalink / raw)
  To: git-commits

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
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-30 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-30 15:37 [rpms/digikam] epel10: add patch nucleo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox