public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Prima] rawhide: Fix tests with libheif 1.23.1
@ 2026-08-10 9:02 Simone Caronni
0 siblings, 0 replies; only message in thread
From: Simone Caronni @ 2026-08-10 9:02 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Prima
Branch : rawhide
Commit : 22b89ccf109e6d4f0b9f500e203a701d2e2380f1
Author : Simone Caronni <negativo17@gmail.com>
Date : 2026-08-10T11:02:14+02:00
Stats : +34/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Prima/c/22b89ccf109e6d4f0b9f500e203a701d2e2380f1?branch=rawhide
Log:
Fix tests with libheif 1.23.1
---
diff --git a/perl-Prima-1.77-libheif-1.23.1.patch b/perl-Prima-1.77-libheif-1.23.1.patch
new file mode 100644
index 0000000..0771b4d
--- /dev/null
+++ b/perl-Prima-1.77-libheif-1.23.1.patch
@@ -0,0 +1,29 @@
+From: Simone Caronni <negativo17@gmail.com>
+Date: Mon, 10 Aug 2026 10:52:00 +0200
+Subject: [PATCH] Test HEIF lossless encoding with AOM SSIM tuning
+
+libheif 1.23.1 defaults the AOM encoder to IQ tuning. libaom rejects that
+tuning mode together with lossless encoding because IQ tuning enables chroma
+delta-Q. The test needs lossless encoding for exact pixel comparisons, so
+explicitly retain the previous SSIM tuning when AOM is the selected encoder.
+---
+ t/Image/Loader.t | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/t/Image/Loader.t b/t/Image/Loader.t
+index 6f5ca231..00e2ffe7 100644
+--- a/t/Image/Loader.t
++++ b/t/Image/Loader.t
+@@ -107,6 +107,10 @@ sub test_multiframe_codec
+ my $ok = 0;
+ my $info = Prima::Image->has_codec('HEIF') or goto FAIL;
+ goto FAIL unless length $info->{saveInput}->{encoder}; # codec cannot suggest a good plugin that can both load and save
++ # libheif 1.23.1 defaults AOM to IQ tuning, which libaom does not
++ # permit in lossless mode. Keep the old AOM tuning for this lossless test.
++ $saveopts{'aom.tune'} = 'ssim'
++ if $info->{saveInput}->{encoder} eq 'aom';
+ $ok = 1;
+ FAIL:
+ unless ($ok) {
+--
+2.51.0
diff --git a/perl-Prima.spec b/perl-Prima.spec
index 4cf261c..52de10e 100644
--- a/perl-Prima.spec
+++ b/perl-Prima.spec
@@ -36,7 +36,7 @@
Name: perl-Prima
Version: 1.77
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Perl graphic toolkit
# Copying: BSD-2-Clause text
# examples/tiger.eps: AGPL-3.0-or-later (bundled from GhostScript? CPAN RT#122271)
@@ -57,6 +57,7 @@ Summary: Perl graphic toolkit
License: BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND MIT-open-group AND HPND AND HPND-sell-variant AND TCL AND ImageMagick AND LGPL-2.0-or-later AND AGPL-3.0-or-later
URL: https://metacpan.org/dist/Prima
Source0: https://cpan.metacpan.org/authors/id/K/KA/KARASIK/Prima-%{version}.tar.gz
+Patch0: perl-Prima-1.77-libheif-1.23.1.patch
BuildRequires: coreutils
BuildRequires: findutils
%if %{with perl_Prima_enables_gtk3}
@@ -333,6 +334,9 @@ unset DISPLAY XDG_SESSION_TYPE
%{_libexecdir}/%{name}
%changelog
+* Mon Aug 10 2026 Simone Caronni <negativo17@gmail.com> - 1.77-6
+- Fix tests with libheif 1.23.1.
+
* Mon Aug 10 2026 Simone Caronni <negativo17@gmail.com> - 1.77-5
- Rebuilt for updated dependencies.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 9:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 9:02 [rpms/perl-Prima] rawhide: Fix tests with libheif 1.23.1 Simone Caronni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox