Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package krita for openSUSE:Factory checked 
in at 2025-07-10 22:14:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/krita (Old)
 and      /work/SRC/openSUSE:Factory/.krita.new.7373 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "krita"

Thu Jul 10 22:14:01 2025 rev:84 rq:1291713 version:5.2.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/krita/krita.changes      2025-05-31 
19:17:19.023874510 +0200
+++ /work/SRC/openSUSE:Factory/.krita.new.7373/krita.changes    2025-07-10 
22:14:10.168758503 +0200
@@ -1,0 +2,37 @@
+Thu Jul 10 13:23:40 UTC 2025 - Christophe Marin <christo...@krop.fr>
+
+- Add upstream change:
+  * 0001-Fix-build-with-libheif-1.20.patch
+
+-------------------------------------------------------------------
+Wed Jul  9 10:32:59 UTC 2025 - Christophe Marin <christo...@krop.fr>
+
+- Update to 5.2.10
+  https://krita.org/en/posts/2025/krita-5.2.10-released/
+  * Raster layer opacity changes now properly clear the animation
+    cache. (kde#499389)
+  * Fix incorrect scaling of animated transform mask values.
+    (kde#469881)
+  * Allow resetting onion skins to default values. (kde#466977)
+  * Fix a crash in clipboard handling. (kde#501560)
+  * Resize canvas: reset the canvas size when toggling the
+    "preserve aspect ratio" button. (kde#452605)
+  * TIFF: Tiff files would append the entire image again on
+    saving again because we didn't truncate the file on
+    saving. (kde#500870)
+  * Fix a crash when autosaving extremely big files.
+  * Make updating the rulers more responsive during canvas
+    transformations
+  * Make panning more responsive
+  * Improve performance of the statusbar
+  * Fix the transform tool to show reordered layers preview
+    (kde#503201)
+  * OpenRaster: default group layers to non-passthrough mode,
+    following the specitication. Thanks Wareya Na!
+  * Palettes: use the title field for the palette name for
+    Adobe Color Book palettes
+  * Fix the brush preview when creating a new preset with canvas
+    mirroring enabled. (kde#501153)
+  * Fix handling of groups in palette files
+
+-------------------------------------------------------------------

Old:
----
  krita-5.2.9.tar.xz
  krita-5.2.9.tar.xz.sig

New:
----
  0001-Fix-build-with-libheif-1.20.patch
  krita-5.2.10.tar.xz
  krita-5.2.10.tar.xz.sig

----------(New B)----------
  New:- Add upstream change:
  * 0001-Fix-build-with-libheif-1.20.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ krita.spec ++++++
--- /var/tmp/diff_new_pack.yTUGT5/_old  2025-07-10 22:14:13.848911564 +0200
+++ /var/tmp/diff_new_pack.yTUGT5/_new  2025-07-10 22:14:13.852911730 +0200
@@ -29,7 +29,7 @@
 %define pyver python311
 %endif
 Name:           krita
-Version:        5.2.9
+Version:        5.2.10
 Release:        0
 Summary:        Digital Painting Application
 License:        BSD-2-Clause AND GPL-2.0-or-later AND LGPL-2.0-or-later AND 
LGPL-2.1-or-later AND GPL-3.0-or-later AND CC0-1.0 AND LGPL-2.0-only
@@ -43,6 +43,8 @@
 Patch0:         0004-Fix-build-with-sip6.8.patch
 # PATCH-FIX-UPSTREAM
 Patch1:         5d44af277b005692241a09f30e11bb0d16166823.patch
+# PATCH-FIX-UPSTREAM
+Patch2:         0001-Fix-build-with-libheif-1.20.patch
 BuildRequires:  %{pyver}-devel
 BuildRequires:  %{pyver}-qt5-devel
 BuildRequires:  %{pyver}-sip-devel

++++++ 0001-Fix-build-with-libheif-1.20.patch ++++++
>From 169339accb9e4e0e0e9921176c5cd60d340b7b04 Mon Sep 17 00:00:00 2001
From: Halla Rempt <ha...@valdyas.org>
Date: Thu, 10 Jul 2025 10:08:24 +0200
Subject: [PATCH] Fix build with libheif 1.20

https://github.com/strukturag/libheif/issues/1419 introduced a
source incompatible api change, this patch by Brad Smith make
Krita build with 1.20. I've also checked with 1.15.2, which we
use and it still builds.

BUG:506778
(cherry picked from commit 6ad4fa68a9e1ce06fc884e34f3cedcdd4b9a2076)
---
 plugins/impex/heif/HeifExport.cpp | 24 +++++++++++++++---------
 plugins/impex/heif/HeifImport.cpp | 22 ++++++++++++++--------
 2 files changed, 29 insertions(+), 17 deletions(-)

diff --git a/plugins/impex/heif/HeifExport.cpp 
b/plugins/impex/heif/HeifExport.cpp
index 3e70cf925e..ccbc8034b5 100644
--- a/plugins/impex/heif/HeifExport.cpp
+++ b/plugins/impex/heif/HeifExport.cpp
@@ -137,6 +137,12 @@ KisImportExportErrorCode HeifExport::convert(KisDocument 
*document, QIODevice *i
     HeifLock lock;
 #endif
 
+#if LIBHEIF_HAVE_VERSION(1, 20, 0)
+    using HeifStrideType = size_t;
+#else
+    using HeifStrideType = int;
+#endif
+
     KisImageSP image = document->savingImage();
     const KoColorSpace *cs = image->colorSpace();
 
@@ -250,10 +256,10 @@ KisImportExportErrorCode HeifExport::convert(KisDocument 
*document, QIODevice *i
                 img.add_plane(heif_channel_G, width,height, 8);
                 img.add_plane(heif_channel_B, width,height, 8);
 
-                int strideR = 0;
-                int strideG = 0;
-                int strideB = 0;
-                int strideA = 0;
+                HeifStrideType strideR = 0;
+                HeifStrideType strideG = 0;
+                HeifStrideType strideB = 0;
+                HeifStrideType strideA = 0;
 
                 uint8_t *ptrR = img.get_plane(heif_channel_R, &strideR);
                 uint8_t *ptrG = img.get_plane(heif_channel_G, &strideG);
@@ -289,7 +295,7 @@ KisImportExportErrorCode HeifExport::convert(KisDocument 
*document, QIODevice *i
                 img.create(width, height, heif_colorspace_RGB, chroma);
                 img.add_plane(heif_channel_interleaved, width, height, 12);
 
-                int stride = 0;
+                HeifStrideType stride = 0;
 
                 uint8_t *ptr = img.get_plane(heif_channel_interleaved, 
&stride);
 
@@ -330,8 +336,8 @@ KisImportExportErrorCode HeifExport::convert(KisDocument 
*document, QIODevice *i
 
                 img.add_plane(heif_channel_Y, width, height, 8);
 
-                int strideG = 0;
-                int strideA = 0;
+                HeifStrideType strideG = 0;
+                HeifStrideType strideA = 0;
 
                 uint8_t *ptrG = img.get_plane(heif_channel_Y, &strideG);
                 uint8_t *ptrA = [&]() -> uint8_t * {
@@ -363,8 +369,8 @@ KisImportExportErrorCode HeifExport::convert(KisDocument 
*document, QIODevice *i
 
                 img.add_plane(heif_channel_Y, width, height, 12);
 
-                int strideG = 0;
-                int strideA = 0;
+                HeifStrideType strideG = 0;
+                HeifStrideType strideA = 0;
 
                 uint8_t *ptrG = img.get_plane(heif_channel_Y, &strideG);
                 uint8_t *ptrA = [&]() -> uint8_t * {
diff --git a/plugins/impex/heif/HeifImport.cpp 
b/plugins/impex/heif/HeifImport.cpp
index 3c1a52cc28..6bceea85eb 100644
--- a/plugins/impex/heif/HeifImport.cpp
+++ b/plugins/impex/heif/HeifImport.cpp
@@ -214,6 +214,12 @@ KisImportExportErrorCode HeifImport::convert(KisDocument 
*document, QIODevice *i
     HeifLock lock;
 #endif
 
+#if LIBHEIF_HAVE_VERSION(1, 20, 0)
+    using HeifStrideType = size_t;
+#else
+    using HeifStrideType = int;
+#endif
+
     // Wrap input stream into heif Reader object
     Reader_QIODevice reader(io);
 
@@ -387,8 +393,8 @@ KisImportExportErrorCode HeifImport::convert(KisDocument 
*document, QIODevice *i
 
         if (heifChroma == heif_chroma_monochrome) {
             dbgFile << "monochrome heif file, bits:" << luma;
-            int strideG = 0;
-            int strideA = 0;
+            HeifStrideType strideG = 0;
+            HeifStrideType strideA = 0;
             const uint8_t *imgG = heifimage.get_plane(heif_channel_Y, 
&strideG);
             const uint8_t *imgA =
                 heifimage.get_plane(heif_channel_Alpha, &strideA);
@@ -409,10 +415,10 @@ KisImportExportErrorCode HeifImport::convert(KisDocument 
*document, QIODevice *i
         } else if (heifChroma == heif_chroma_444) {
             dbgFile << "planar heif file, bits:" << luma;
 
-            int strideR = 0;
-            int strideG = 0;
-            int strideB = 0;
-            int strideA = 0;
+            HeifStrideType strideR = 0;
+            HeifStrideType strideG = 0;
+            HeifStrideType strideB = 0;
+            HeifStrideType strideA = 0;
             const uint8_t* imgR = heifimage.get_plane(heif_channel_R, 
&strideR);
             const uint8_t* imgG = heifimage.get_plane(heif_channel_G, 
&strideG);
             const uint8_t* imgB = heifimage.get_plane(heif_channel_B, 
&strideB);
@@ -439,7 +445,7 @@ KisImportExportErrorCode HeifImport::convert(KisDocument 
*document, QIODevice *i
                                     displayNits,
                                     colorSpace);
         } else if (heifChroma == heif_chroma_interleaved_RGB || heifChroma == 
heif_chroma_interleaved_RGBA) {
-            int stride = 0;
+            HeifStrideType stride = 0;
             dbgFile << "interleaved SDR heif file, bits:" << luma;
 
             const uint8_t *img = heifimage.get_plane(heif_channel_interleaved, 
&stride);
@@ -461,7 +467,7 @@ KisImportExportErrorCode HeifImport::convert(KisDocument 
*document, QIODevice *i
                                       colorSpace);
 
         } else if (heifChroma == heif_chroma_interleaved_RRGGBB_LE || 
heifChroma == heif_chroma_interleaved_RRGGBBAA_LE || heifChroma == 
heif_chroma_interleaved_RRGGBB_BE || heifChroma == 
heif_chroma_interleaved_RRGGBB_BE) {
-            int stride = 0;
+            HeifStrideType stride = 0;
             dbgFile << "interleaved HDR heif file, bits:" << luma;
 
             const uint8_t *img =
-- 
2.50.0


++++++ krita-5.2.9.tar.xz -> krita-5.2.10.tar.xz ++++++
/work/SRC/openSUSE:Factory/krita/krita-5.2.9.tar.xz 
/work/SRC/openSUSE:Factory/.krita.new.7373/krita-5.2.10.tar.xz differ: char 25, 
line 1

Reply via email to