Version in base suite: 1.10.0-4 Base version: imlib2_1.10.0-4 Target version: imlib2_1.10.0-4+deb12u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/i/imlib2/imlib2_1.10.0-4.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/i/imlib2/imlib2_1.10.0-4+deb12u1.dsc changelog | 7 +++++++ patches/debian-bug-1041406.patch | 38 ++++++++++++++++++++++++++++++++++++++ patches/remove-data-dir.patch | 4 ---- patches/series | 1 + 4 files changed, 46 insertions(+), 4 deletions(-) diff -Nru imlib2-1.10.0/debian/changelog imlib2-1.10.0/debian/changelog --- imlib2-1.10.0/debian/changelog 2023-01-02 22:10:40.000000000 +0000 +++ imlib2-1.10.0/debian/changelog 2023-08-22 20:52:24.000000000 +0000 @@ -1,3 +1,10 @@ +imlib2 (1.10.0-4+deb12u1) bookworm; urgency=medium + + * Fix imlib_clone_image() no longer preserves the alpha channel flag. + (Closes: #1041406) + + -- Markus Koschany Tue, 22 Aug 2023 22:52:24 +0200 + imlib2 (1.10.0-4) unstable; urgency=medium * Really ignore libjxl-dev on s390x. diff -Nru imlib2-1.10.0/debian/patches/debian-bug-1041406.patch imlib2-1.10.0/debian/patches/debian-bug-1041406.patch --- imlib2-1.10.0/debian/patches/debian-bug-1041406.patch 1970-01-01 00:00:00.000000000 +0000 +++ imlib2-1.10.0/debian/patches/debian-bug-1041406.patch 2023-08-22 20:52:24.000000000 +0000 @@ -0,0 +1,38 @@ +From 173edae4bf72e01b0dada41a406d34f976b1fc28 Mon Sep 17 00:00:00 2001 +From: Kim Woelders +Date: Wed, 19 Jul 2023 18:11:08 +0200 +Subject: [PATCH] image: Fix preservation of alpha chanel flag in + imlib_clone_image() + +https://git.enlightenment.org/old/legacy-imlib2/issues/17: + +As per subject, the imlib_clone_image() function no longer preserves +the alpha channel value since imlib2 1.10.0. + +This bug report was initially filed by Niko Tyni in Debian's bug tracker. +If you follow the subsequent link you will also find a test program that +demonstrates the regression. + +https://bugs.debian.org/1041406 + +This upstream change is most likely the root cause of the problem + +b39d33c800 + +It looks like an oversight where other functions were adapted +to the new alpha channel implementation, but imlib_clone_image() remains +unchanged and only copies the flags and not the new alpha byte. +--- + src/lib/api.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/src/lib/api.c ++++ b/src/lib/api.c +@@ -1017,6 +1017,7 @@ imlib_clone_image(void) + return NULL; + } + memcpy(im->data, im_old->data, im->w * im->h * sizeof(uint32_t)); ++ im->has_alpha = im_old->has_alpha; + im->flags = im_old->flags; + IM_FLAG_SET(im, F_UNCACHEABLE); + im->moddate = im_old->moddate; diff -Nru imlib2-1.10.0/debian/patches/remove-data-dir.patch imlib2-1.10.0/debian/patches/remove-data-dir.patch --- imlib2-1.10.0/debian/patches/remove-data-dir.patch 2023-01-02 22:10:40.000000000 +0000 +++ imlib2-1.10.0/debian/patches/remove-data-dir.patch 2023-08-22 20:52:24.000000000 +0000 @@ -10,8 +10,6 @@ configure.ac | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) -diff --git a/Makefile.am b/Makefile.am -index 3371af3..d93301b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = foreign @@ -23,8 +21,6 @@ if BUILD_DOC SUBDIRS += doc endif -diff --git a/configure.ac b/configure.ac -index 791f44d..8df303a 100644 --- a/configure.ac +++ b/configure.ac @@ -280,9 +280,6 @@ src/modules/Makefile diff -Nru imlib2-1.10.0/debian/patches/series imlib2-1.10.0/debian/patches/series --- imlib2-1.10.0/debian/patches/series 2023-01-02 22:10:40.000000000 +0000 +++ imlib2-1.10.0/debian/patches/series 2023-08-22 20:52:24.000000000 +0000 @@ -1 +1,2 @@ remove-data-dir.patch +debian-bug-1041406.patch